Browse Source

Update benchmark paths

master
Futago-za Ryuu 2 years ago
parent
commit
0253215c24
5 changed files with 5 additions and 8 deletions
  1. +1
    -1
      package.json
  2. +1
    -1
      tools/benchmark/README.md
  3. +2
    -3
      tools/benchmark/browser.stub.js
  4. +0
    -2
      tools/benchmark/index.js
  5. +1
    -1
      tools/benchmark/runner.js

+ 1
- 1
package.json View File

@ -9,7 +9,7 @@
"scripts": {
"lint": "eslint --ext .js,.vue . docs/.vuepress",
"test": "nyc mocha --recursive",
"benchmark": "node tools/benchmark/node",
"benchmark": "node tools/benchmark",
"build-docs": "vuepress build docs",
"watch-docs": "vuepress dev docs",
"build-parser": "pegjs -c src/pegjs.config.js",


+ 1
- 1
tools/benchmark/README.md View File

@ -3,5 +3,5 @@ This directory contains the benchmark suite that measures the speed of parsers g
From the root of the repository:
```sh
node tools/benchmark/node
node tools/benchmark
```

tools/benchmark/browser.js → tools/benchmark/browser.stub.js View File


tools/benchmark/node.js → tools/benchmark/index.js View File


+ 1
- 1
tools/benchmark/runner.js View File

@ -85,7 +85,7 @@ const Runner = {
callbacks.testStart( benchmark, test );
const input = callbacks.readFile( "benchmark/" + benchmark.id + "/" + test.file );
const input = callbacks.readFile( "tools/benchmark/" + benchmark.id + "/" + test.file );
let parseTime = 0;
for ( let i = 0; i < runCount; i++ ) {


Loading…
Cancel
Save