82061d6ab3
Short living closures are very common in Node.js. This benchmark tracks progress as we move the optimizations that are currently only behind --mark_shared_functions_for_tier_up to the default settings. BUG=v8:5512 Committed: https://crrev.com/f277da2a00cfd27d44a33a70213a65bd82d0bc95 Review-Url: https://codereview.chromium.org/2525053002 Cr-Original-Commit-Position: refs/heads/master@{#41246} Cr-Commit-Position: refs/heads/master@{#41487}
27 lines
611 B
JavaScript
27 lines
611 B
JavaScript
// Copyright 2015 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.
|
|
|
|
|
|
load('../base.js');
|
|
load('closures.js');
|
|
|
|
var success = true;
|
|
|
|
function PrintResult(name, result) {
|
|
print(name + '-Closures(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 });
|