2014-10-09 12:41:36 +00: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-10-17 09:11:21 +00:00
|
|
|
load('../base.js');
|
2014-10-29 10:18:16 +00:00
|
|
|
load('common.js');
|
2014-10-09 12:41:36 +00:00
|
|
|
load('map.js');
|
|
|
|
load('set.js');
|
|
|
|
load('weakmap.js');
|
|
|
|
load('weakset.js');
|
|
|
|
|
|
|
|
|
|
|
|
var success = true;
|
|
|
|
|
|
|
|
function PrintResult(name, result) {
|
|
|
|
print(name + '-Collections(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 });
|