Reland: Add IdleHint function

The initial version of this CL was reverted because the CLI version
wasn't working. This now seems to be working locally in the browser
and through CLI.

The difference now is that we set idleHint also on the Realm we create
for running benchmarks in (globalThis.top.idleHint).

Change-Id: I7f66cf9d376d491085a11aa304cad9bffcc17904
Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/7481050
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Patrick Thier <pthier@chromium.org>
2 files changed
tree: 819cb783ec08f0caa5b7fda3c68e25c836c2971a
  1. ARES-6/
  2. cdjs/
  3. code-load/
  4. LuaJSFight/
  5. Octane/
  6. RexBench/
  7. SeaMonster/
  8. simple/
  9. SunSpider/
  10. wasm/
  11. web-tooling-benchmark/
  12. worker/
  13. WSL/
  14. .gitignore
  15. __init__.py
  16. cli.js
  17. clouds.svg
  18. in-depth.html
  19. index.html
  20. JetStream.css
  21. JetStream2Logo.svg
  22. JetStreamDriver.js
  23. jetstreams.svg
  24. LICENSE
  25. RAMification.py
  26. README.md
  27. wasm-cli.js
  28. watch-cli.js
README.md

JetStream Clone

This is a clone from the upstream (webkit repository)[https://github.com/WebKit/WebKit/tree/main/Websites/browserbench.org/JetStream2.2]

It contains additional changes to help with investigation:

  • Added --help command line support
  • Additional performance mark and measure calls
  • Use performance.mark instead of Date.now
  • Additional URL params to configure iterationCount and worstCaseCount
  • Pass iterationCount Benchmark.validate, needed for UniPoker
  • Print Score and time for metrics
  • Customized file-prefetcher to support runner WorkerTests in d8