Skip to content

Commit 11d4323

Browse files
committed
ci(benchmarks): deletes benchmark table before adding new result
1 parent 2731b5e commit 11d4323

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343

4444
- name: Create benchmark file
4545
run: |
46+
echo -n "" > ./packages/benchmarks/README.md
4647
node ./packages/benchmarks/benchmark-table/index.mjs >> ./packages/benchmarks/README.md
4748
4849
- name: stage changed files

packages/benchmarks/README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +0,0 @@
1-
2-
# Benchmakrs
3-
4-
The following is an automated benchmark performed on the [Divina Commedia](https://en.wikipedia.org/wiki/Divina_Commedia) dataset. <br />
5-
You can find the full dataset [here](https://github.com/nearform/lyra/blob/main/packages/benchmarks/dataset/divinaCommedia.json).
6-
7-
# Results
8-
9-
10-
| Search | Term | Properties | Typo tolerance | Time Elapsed | Results |
11-
|--------------------|---------------------------------------|------------|----------------|---------------|-------------|
12-
| **Exact search** | `"stelle"` | `["txt"]`| `N/A` | 298μs | 25 |
13-
| **Exact search** | `"stelle"` | `"*"` | `N/A` | 216μs | 25 |
14-
| **Typo tolerance** | `"stele"` | `"*"` | `1` | 2ms | 28 |
15-
| **Exact search** | `"onde si muovono a diversi porti"` | `"*"` | `N/A` | 345μs | 268 |
16-
| **Typo tolerance** | `"ode si mossero a divisi porte"` | `"*"` | `5` | 37ms | 43023 |
17-
| **Typo tolerance** | `"ode si mossero a divisi porte"` | `["txt"]`| `5` | 4ms | 7430 |
18-
19-
20-
21-
# Benchmakrs
22-
23-
The following is an automated benchmark performed on the [Divina Commedia](https://en.wikipedia.org/wiki/Divina_Commedia) dataset. <br />
24-
You can find the full dataset [here](https://github.com/nearform/lyra/blob/main/packages/benchmarks/dataset/divinaCommedia.json).
25-
26-
# Results
27-
28-
29-
| Search | Term | Properties | Typo tolerance | Time Elapsed | Results |
30-
|--------------------|---------------------------------------|------------|----------------|---------------|-------------|
31-
| **Exact search** | `"stelle"` | `["txt"]`| `N/A` | 299μs | 25 |
32-
| **Exact search** | `"stelle"` | `"*"` | `N/A` | 188μs | 25 |
33-
| **Typo tolerance** | `"stele"` | `"*"` | `1` | 2ms | 28 |
34-
| **Exact search** | `"onde si muovono a diversi porti"` | `"*"` | `N/A` | 372μs | 268 |
35-
| **Typo tolerance** | `"ode si mossero a divisi porte"` | `"*"` | `5` | 40ms | 43023 |
36-
| **Typo tolerance** | `"ode si mossero a divisi porte"` | `["txt"]`| `5` | 4ms | 7430 |
37-
38-

0 commit comments

Comments
 (0)