File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,11 @@ const testArr = [];
2525 * It continues to do this until durationSeconds after the startTime.
2626 */
2727function busyLoop ( durationSeconds ) {
28+ const noop = ( ) => { } ;
2829 for ( let i = 0 ; i < testArr . length ; i ++ ) {
2930 for ( let j = 0 ; j < testArr [ i ] . length ; j ++ ) {
3031 testArr [ i ] [ j ] = Math . sqrt ( j * testArr [ i ] [ j ] ) ;
32+ noop ( ) ;
3133 }
3234 }
3335 if ( Date . now ( ) - startTime < 1000 * durationSeconds ) {
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ const testArr: number[][] = [];
2727 * It continues to do this until durationSeconds after the startTime.
2828 */
2929function busyLoop ( durationSeconds : number ) {
30+ const noop = ( ) => { } ;
3031 for ( let i = 0 ; i < testArr . length ; i ++ ) {
3132 for ( let j = 0 ; j < testArr [ i ] . length ; j ++ ) {
3233 testArr [ i ] [ j ] = Math . sqrt ( j * testArr [ i ] [ j ] ) ;
34+ noop ( ) ;
3335 }
3436 }
3537 if ( Date . now ( ) - startTime < 1000 * durationSeconds ) {
Original file line number Diff line number Diff line change 5757
5858node -v
5959node --trace-warnings " $BENCHPATH " 10 $VERIFY_TIME_LINE_NUMBERS
60+ cp time.pb.gz /src/$( node -v) -time.pb.gz.
61+ cp heap.pb.gz /src/$( node -v) -heap.pb.gz.
6062
6163if [[ " $VERIFY_TIME_LINE_NUMBERS " == " true" ]]; then
6264 pprof -lines -top -nodecount=2 time.pb.gz | tee $tty | \
You can’t perform that action at this time.
0 commit comments