- Merge upstream main branch - Partially merge https://github.com/WebKit/JetStream/pull/167/ to display sub-times Change-Id: I9f30772ff2d6d068b09e43df3cb57da35b231ca2 Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/6911418 Reviewed-by: Victor Gomes <victorgomes@chromium.org>
17 lines
474 B
JavaScript
17 lines
474 B
JavaScript
// Copyright 2025 the V8 project authors. All rights reserved.
|
|
// Copyright 2025 Apple Inc. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
class Benchmark {
|
|
async init() {
|
|
Module.wasmBinary = await JetStream.getBinary(JetStream.preload.wasmBinary);
|
|
}
|
|
|
|
async runIteration() {
|
|
if (!Module._main)
|
|
await setupModule(Module);
|
|
|
|
Module._main();
|
|
}
|
|
};
|