File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 33// toggle them one by one
44// then delete them one by one
55
6- // do not run when testing in PhantomJS
7- if ( window . location . search === '?benchmark=1' ) {
8- runBenchmark ( )
9- }
6+ ( function ( ) {
107
11- function runBenchmark ( ) {
8+ var benchSetting = window . location . search . match ( / \b b e n c h m a r k = ( \d + ) / )
9+ if ( ! benchSetting ) return
1210
13- var itemsToAdd = 200 ,
11+ var itemsToAdd = + benchSetting [ 1 ] ,
1412 now = window . performance && window . performance . now
1513 ? function ( ) { return window . performance . now ( ) ; }
1614 : Date . now ,
@@ -74,4 +72,4 @@ function runBenchmark () {
7472 }
7573 } , 0 )
7674
77- }
75+ } ) ( )
Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ var utils = module.exports = {
187187 warn : function ( ) {
188188 if ( ! config . silent && console ) {
189189 console . warn ( join . call ( arguments , ' ' ) )
190+ if ( config . debug ) {
191+ console . trace ( )
192+ }
190193 }
191194 } ,
192195
You can’t perform that action at this time.
0 commit comments