mirror-jetstream/validatorjs
Camillo Bruni 0368cebd22 Reset main-custom branch to upstream/main
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>
2025-10-29 02:20:40 -07:00
..
dist Reset main-custom branch to upstream/main 2025-10-29 02:20:40 -07:00
src Merge latest main-branch changes 2025-10-08 04:06:38 -07:00
benchmark-node.mjs Merge latest main-branch changes 2025-10-08 04:06:38 -07:00
benchmark.js Merge latest main-branch changes 2025-10-08 04:06:38 -07:00
package-lock.json Reset main-custom branch to upstream/main 2025-10-29 02:20:40 -07:00
package.json Reset main-custom branch to upstream/main 2025-10-29 02:20:40 -07:00
README.md Merge latest main-branch changes 2025-10-08 04:06:38 -07:00
webpack.config.mjs Reset main-custom branch to upstream/main 2025-10-29 02:20:40 -07:00

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.