Skip to content

Commit

Permalink
fix(scripts): add bench:run:simd with --experimental-wasm-simd enab…
Browse files Browse the repository at this point in the history
…led (#796)

* fix(scripts): add bench:run:simd with --experimental-wasm-simd

* docs(readme): clarify that benchmarks output have simd enabled
  • Loading branch information
trivikr committed May 9, 2021
1 parent e0f0bad commit 091a4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -19,7 +19,7 @@ npm i undici

The benchmark is a simple `hello world` [example](benchmarks/benchmark.js) using a
number of unix sockets (connections) with a pipelining depth of 10 running on Node 16.
The benchmarks have the [simd](https://github.com/WebAssembly/simd) feature enabled.
The benchmarks below have the [simd](https://github.com/WebAssembly/simd) feature enabled.

### Connections 1

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -42,7 +42,8 @@
"bench:simd": "concurrently -k -s first npm:bench:server npm:bench:run:simd",
"bench:server": "node benchmarks/server.js",
"prebench:run": "node benchmarks/wait.js",
"bench:run": "CONNECTIONS=1 node --experimental-wasm-simd benchmarks/benchmark.js && CONNECTIONS=50 node --experimental-wasm-simd benchmarks/benchmark.js",
"bench:run": "CONNECTIONS=1 node benchmarks/benchmark.js && CONNECTIONS=50 node benchmarks/benchmark.js",
"bench:run:simd": "CONNECTIONS=1 node --experimental-wasm-simd benchmarks/benchmark.js && CONNECTIONS=50 node --experimental-wasm-simd benchmarks/benchmark.js",
"serve:website": "docsify serve .",
"prepare": "husky install"
},
Expand Down

0 comments on commit 091a4a9

Please sign in to comment.