All important runner changes have landed upstream. Bug: 358290763 Change-Id: Ib47f6838618e9c0081f60f3b60d52b1ce149b2af Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/7094856 Reviewed-by: Marja Hölttä <marja@chromium.org> |
||
|---|---|---|
| .. | ||
| dist | ||
| src | ||
| benchmark-node.mjs | ||
| benchmark.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| webpack.config.mjs | ||
validator.js test for JetStream
Measures the performance of the validator.js library by running the core test suite.
Build Instructions
# install required node packages.
npm ci
# build the workload, output is ./dist
npm run build
Workloads
The workload is a modified copy of the validator.js test suite.
Several files are combined together and contents copied to the runTest method.
Modifications to the original:
- Any tests that depend on node internal values have been removed.
- Date constructions with an arg-array differs between browser and thus they are replaced by direct arguments.
- Direct calls to validater.xzy() are replaced with validatorjs.xzy() to not conflict with the default argument to the mock test() method.