node/deps/v8/test/js-perf-test/Strings/run.js

28 lines
617 B
JavaScript
Raw Normal View History

2014-10-10 18:49:02 +08:00
// Copyright 2014 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.
2014-11-14 07:52:27 +08:00
load('../base.js');
load('harmony-string.js');
2014-10-10 18:49:02 +08:00
var success = true;
function PrintResult(name, result) {
2014-11-14 07:52:27 +08:00
print(name + '-Strings(Score): ' + result);
2014-10-10 18:49:02 +08:00
}
function PrintError(name, error) {
PrintResult(name, error);
success = false;
}
BenchmarkSuite.config.doWarmup = undefined;
BenchmarkSuite.config.doDeterministic = undefined;
BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
NotifyError: PrintError });