Files
Kmake/deps/v8/test/js-perf-test/Operators/run.js
2026-05-26 23:36:42 -07:00

29 lines
658 B
JavaScript

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
"use strict";
d8.file.execute('../base.js');
d8.file.execute('abstract-equality.js');
var success = true;
function PrintResult(name, result) {
print(`Operators-${name}(Score): ${result}`);
}
function PrintError(name, error) {
PrintResult(name, error);
success = false;
}
BenchmarkSuite.config.doWarmup = undefined;
BenchmarkSuite.config.doDeterministic = undefined;
BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
NotifyError: PrintError });