v8/test/js-perf-test/BigInt/run.js

32 lines
688 B
JavaScript
Raw Normal View History

// Copyright 2019 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";
load('../base.js');
load('test-config.js');
load('to-boolean.js');
load('add.js');
load('as-uint-n.js');
var success = true;
function PrintResult(name, result) {
print(name + '-BigInt(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 });