[webkit-changes] [WebKit/WebKit] 7bca60: JetStream3 harness: reset seed of Math.random() on...

EWS noreply at github.com
Wed Dec 21 13:37:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7bca60ef1a1704e00bd8ca90c006793f0556cb0d
      https://github.com/WebKit/WebKit/commit/7bca60ef1a1704e00bd8ca90c006793f0556cb0d
  Author: Alexey Shvayka <ashvayka at apple.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M PerformanceTests/JetStream3/JetStreamDriver.js
    M PerformanceTests/JetStream3/simple/file-system.js

  Log Message:
  -----------
  JetStream3 harness: reset seed of Math.random() on every benchmark iteration
https://bugs.webkit.org/show_bug.cgi?id=249592

Reviewed by Yusuke Suzuki.

This change extracts Math.random() implementation, which resets its seed on every iteration,
from simple/file-system.js to be used for all other tests, including newly-added BigInt crypto
tests that heavily rely on Math.random().

* PerformanceTests/JetStream3/JetStreamDriver.js:
(prototype.get runnerCode):
(prototype.get preiterationCode):
(prototype.async run):
(AsyncBenchmark.get runnerCode.return.async doRun):
(AsyncBenchmark.prototype.get runnerCode):
(AsyncBenchmark):
* PerformanceTests/JetStream3/simple/file-system.js:
(Benchmark.prototype.async runIteration):
(Benchmark):
(resetSeed): Deleted.
(Math.random): Deleted.

Canonical link: https://commits.webkit.org/258213@main




More information about the webkit-changes mailing list