File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -41,22 +41,9 @@ export function bindAction(selector: string, callback: () => void) {
4141
4242export function profile ( create : ( ) => void , destroy : ( ) => void , name : string ) {
4343 return function ( ) {
44- window . console . profile ( name + ' w GC' ) ;
44+ window . console . profile ( name ) ;
4545 let duration = 0 ;
4646 let count = 0 ;
47- while ( count ++ < 150 ) {
48- ( < any > window ) [ 'gc' ] ( ) ;
49- const start = window . performance . now ( ) ;
50- create ( ) ;
51- duration += window . performance . now ( ) - start ;
52- destroy ( ) ;
53- }
54- window . console . profileEnd ( ) ;
55- window . console . log ( `Iterations: ${ count } ; time: ${ duration / count } ms / iteration` ) ;
56-
57- window . console . profile ( name + ' w/o GC' ) ;
58- duration = 0 ;
59- count = 0 ;
6047 while ( count ++ < 150 ) {
6148 const start = window . performance . now ( ) ;
6249 create ( ) ;
You can’t perform that action at this time.
0 commit comments