Skip to content

Commit b8950c5

Browse files
committed
fix devtools timeit sorting
1 parent 0673823 commit b8950c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/test_dashboard/perf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ window.timeit = function(f, n, nchunk, arg) {
3939

4040
var first = (times[0]).toFixed(4);
4141
var last = (times[n - 1]).toFixed(4);
42-
times.sort();
42+
times.sort(function(a, b) { return a - b; });
4343
var min = (times[0]).toFixed(4);
4444
var max = (times[n - 1]).toFixed(4);
4545
var median = (times[Math.min(Math.ceil(n / 2), n - 1)]).toFixed(4);

0 commit comments

Comments
 (0)