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

Side by Side Diff: test/js-perf-test/Object/run.js

Issue 1746383003: [js-perf-test] add microbenchmarks for Object.values(), Object.entries() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 5
6 load('../base.js'); 6 load('../base.js');
7
8 // Provided for comparison against native implementations.
9 // Generated via `lodash includes=values,toPairs`, using
10 // https://www.npmjs.com/package/lodash-cli
11 load('lodash.custom.js');
12
7 load('assign.js'); 13 load('assign.js');
14 load('values-lodash.js');
15 load('values.js');
16 load('entries-lodash.js');
17 load('entries.js');
8 18
9 var success = true; 19 var success = true;
10 20
11 function PrintResult(name, result) { 21 function PrintResult(name, result) {
12 print(name + '-Object(Score): ' + result); 22 print(name + '-Object(Score): ' + result);
13 } 23 }
14 24
15 25
16 function PrintError(name, error) { 26 function PrintError(name, error) {
17 PrintResult(name, error); 27 PrintResult(name, error);
18 success = false; 28 success = false;
19 } 29 }
20 30
21 31
22 BenchmarkSuite.config.doWarmup = undefined; 32 BenchmarkSuite.config.doWarmup = undefined;
23 BenchmarkSuite.config.doDeterministic = undefined; 33 BenchmarkSuite.config.doDeterministic = undefined;
24 34
25 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, 35 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
26 NotifyError: PrintError }); 36 NotifyError: PrintError });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698