2017-01-26 11:31:05 +00:00
|
|
|
// Copyright 2017 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.
|
|
|
|
|
2017-02-06 10:19:24 +00:00
|
|
|
load('../base.js');
|
2017-02-03 14:07:16 +00:00
|
|
|
load(arguments[0] + '.js');
|
2017-01-26 11:31:05 +00:00
|
|
|
|
|
|
|
var success = true;
|
|
|
|
|
|
|
|
function PrintResult(name, result) {
|
|
|
|
print(name + '(Score): ' + result);
|
|
|
|
}
|
|
|
|
|
|
|
|
function PrintError(name, error) {
|
|
|
|
PrintResult(name, error);
|
|
|
|
success = false;
|
|
|
|
}
|
|
|
|
|
2017-01-30 13:58:57 +00:00
|
|
|
BenchmarkSuite.config.doWarmup = true;
|
2017-01-26 11:31:05 +00:00
|
|
|
BenchmarkSuite.config.doDeterministic = undefined;
|
|
|
|
|
|
|
|
BenchmarkSuite.RunSuites({NotifyResult: PrintResult, NotifyError: PrintError});
|