Skip to content

Commit aa32ee0

Browse files
author
Brian Vaughn
committed
Added benchmarks for js-search (latest and local) and Lunr
1 parent b1afa43 commit aa32ee0

File tree

9 files changed

+4054
-0
lines changed

9 files changed

+4054
-0
lines changed

.flowconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[ignore]
2+
<PROJECT_ROOT>/benchmarks/.*
3+
14
[options]
25
unsafe.enable_getters_and_setters=true

benchmarks/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
/.bower
3+
/.idea
4+
/bower_components
5+
/node_modules
6+
/npm-debug.log
7+
/dist

benchmarks/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
These benchmark tests measure real usage of js-search.
2+
They enable simple performance comparisons between the latest released build and the local build.
3+
To run a benchmark:
4+
5+
```bash
6+
cd /path/to/js-search
7+
yarn install
8+
9+
# Build local js-search (to incorporate any changes you've made)
10+
npm run build
11+
12+
cd ./benchmarks
13+
yarn install
14+
15+
# Run a benchmark of your choice
16+
node ./regression-test.js
17+
```

0 commit comments

Comments
 (0)