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

Side by Side Diff: test/js-perf-test/Lodash/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 load('super.js');
8 load('default-constructor.js');
9 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
13 load('values-lodash.js');
14 load('entries-lodash.js');
10 15
11 var success = true; 16 var success = true;
12 17
13 function PrintResult(name, result) { 18 function PrintResult(name, result) {
14 print(name + '-Classes(Score): ' + result); 19 print(name + '-Lodash(Score): ' + result);
15 } 20 }
16 21
17 22
18 function PrintError(name, error) { 23 function PrintError(name, error) {
19 PrintResult(name, error); 24 PrintResult(name, error);
20 success = false; 25 success = false;
21 } 26 }
22 27
23 28
24 BenchmarkSuite.config.doWarmup = undefined; 29 BenchmarkSuite.config.doWarmup = undefined;
25 BenchmarkSuite.config.doDeterministic = undefined; 30 BenchmarkSuite.config.doDeterministic = undefined;
26 31
27 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, 32 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
28 NotifyError: PrintError }); 33 NotifyError: PrintError });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698