Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: test/js-perf-test/SixSpeed/spread/spread.js

Issue 2674873002: [Test] Update all SixSpeed tests to run in separate processes. (Closed)
Patch Set: Rebase on master and track Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/js-perf-test/SixSpeed/spread/run.js ('k') | test/js-perf-test/SixSpeed/super_spread/run.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/SixSpeed/spread/spread.js
diff --git a/test/js-perf-test/SixSpeed/spread/spread.js b/test/js-perf-test/SixSpeed/spread/spread.js
deleted file mode 100644
index 7c5f40b42765dc676c24dea86ffeb4325d89cc60..0000000000000000000000000000000000000000
--- a/test/js-perf-test/SixSpeed/spread/spread.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2016 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.
-
-// This benchmark is based on the six-speed benchmark build output.
-// Copyright 2014 Kevin Decker <https://github.com/kpdecker/six-speed/>
-
-
-new BenchmarkSuite('Spread-ES5', [1000], [
- new Benchmark('ES5', false, false, 0, ES5),
-]);
-
-new BenchmarkSuite('Spread-Traceur', [1000], [
- new Benchmark('Traceur', false, false, 0, Traceur),
-]);
-
-new BenchmarkSuite('Spread-ES6', [1000], [
- new Benchmark('ES6', false, false, 0, ES6),
-]);
-
-// ----------------------------------------------------------------------------
-// Benchmark: ES5
-// ----------------------------------------------------------------------------
-
-function ES5() {
- "use strict";
- return Math.max.apply(Math, [1,2,3]);
-}
-
-// ----------------------------------------------------------------------------
-// Benchmark: Traceur
-// ----------------------------------------------------------------------------
-
-function checkObjectCoercible(v) {
- "use strict";
- if (v === null || v === undefined) {
- throw new $TypeError('Value cannot be converted to an Object');
- }
- return v;
-}
-
-function spread() {
- "use strict";
- var rv = [],
- j = 0,
- iterResult;
- for (var i = 0; i < arguments.length; i++) {
- var valueToSpread = checkObjectCoercible(arguments[i]);
- if (typeof valueToSpread[Symbol.iterator] !== 'function') {
- throw new TypeError('Cannot spread non-iterable object.');
- }
- var iter = valueToSpread[Symbol.iterator]();
- while (!(iterResult = iter.next()).done) {
- rv[j++] = iterResult.value;
- }
- }
- return rv;
-}
-
-function Traceur() {
- "use strict";
- var $__0;
- return ($__0 = Math).max.apply($__0, spread([1, 2, 3]));
-}
-
-// ----------------------------------------------------------------------------
-// Benchmark: ES6
-// ----------------------------------------------------------------------------
-
-function ES6() {
- "use strict";
- return Math.max(...[1,2,3]);
-}
« no previous file with comments | « test/js-perf-test/SixSpeed/spread/run.js ('k') | test/js-perf-test/SixSpeed/super_spread/run.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698