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

Side by Side Diff: test/js-perf-test/TypedArrays/copywithin.js

Issue 2691423003: [tests] Add js-perf-test for %TypedArray%.prototype.sort (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « test/js-perf-test/JSTests.json ('k') | test/js-perf-test/TypedArrays/sort.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 new BenchmarkSuite('CopyWithin', [1000], [ 5 new BenchmarkSuite('CopyWithin', [1000], [
6 new Benchmark('CopyWithin-Large', false, false, 0, 6 new Benchmark('CopyWithin-Large', false, false, 0,
7 CopyWithinLarge, CopyWithinLargeSetup, CopyWithinLargeTearDown), 7 CopyWithinLarge, CopyWithinLargeSetup, CopyWithinLargeTearDown),
8 ]); 8 ]);
9 9
10 var initialLargeFloat64Array = new Array(10000); 10 var initialLargeFloat64Array = new Array(10000);
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 function CopyWithinLargeTearDown() { 25 function CopyWithinLargeTearDown() {
26 for (var i = 0; i < 5000; ++i) { 26 for (var i = 0; i < 5000; ++i) {
27 if (largeFloat64Array[i + 5000] !== i) { 27 if (largeFloat64Array[i + 5000] !== i) {
28 throw new TypeError("Unexpected result!\n" + largeFloat64Array); 28 throw new TypeError("Unexpected result!\n" + largeFloat64Array);
29 } 29 }
30 } 30 }
31 largeFloat64Array = void 0; 31 largeFloat64Array = void 0;
32 } 32 }
OLDNEW
« no previous file with comments | « test/js-perf-test/JSTests.json ('k') | test/js-perf-test/TypedArrays/sort.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698