Setup

This setup function should return the stuff you need in the tests. Anything returned will be available via the DATA variable inside the test cases. Running the setup function is not part of the benchmark and it's run separately for each test case. To learn more, check out this more advanced example .

Dependencies

Global dependencies are available in the setup function and every test case.

Test cases

Ops/s:
?
Dependencies
Ops/s:
?
Dependencies
Ops/s:
?
Dependencies

Results

Find 99
Ops/s: ?
Average run time: ?

Find 199
Ops/s: ?
Average run time: ?

Find 499
Ops/s: ?
Average run time: ?

Note: No statistical analysis is used to validate the results. The tests are run in parallel (unless disabled) for 3 seconds (with a 500ms warmup) and then operations per second are calculated.

Each test runs in a separate web worker. This means that the actual ops/s might be higher in a real-world scenario, but the relative difference between the tests should be accurate.