File tree 5 files changed +0
-41
lines changed
5 files changed +0
-41
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
- const v8 = require ( 'v8' ) ;
5
4
const Readable = require ( 'stream' ) . Readable ;
6
5
7
6
const bench = common . createBenchmark ( main , {
@@ -15,13 +14,6 @@ function main(conf) {
15
14
function noop ( ) { }
16
15
s . _read = noop ;
17
16
18
- // Force optimization before starting the benchmark
19
- s . push ( b ) ;
20
- v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
21
- eval ( '%OptimizeFunctionOnNextCall(s.read)' ) ;
22
- s . push ( b ) ;
23
- while ( s . read ( 128 ) ) ;
24
-
25
17
bench . start ( ) ;
26
18
for ( var k = 0 ; k < n ; ++ k ) {
27
19
for ( var i = 0 ; i < 1e4 ; ++ i )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
- const v8 = require ( 'v8' ) ;
5
4
const Readable = require ( 'stream' ) . Readable ;
6
5
7
6
const bench = common . createBenchmark ( main , {
@@ -15,13 +14,6 @@ function main(conf) {
15
14
function noop ( ) { }
16
15
s . _read = noop ;
17
16
18
- // Force optimization before starting the benchmark
19
- s . push ( b ) ;
20
- v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
21
- eval ( '%OptimizeFunctionOnNextCall(s.read)' ) ;
22
- s . push ( b ) ;
23
- while ( s . read ( 106 ) ) ;
24
-
25
17
bench . start ( ) ;
26
18
for ( var k = 0 ; k < n ; ++ k ) {
27
19
for ( var i = 0 ; i < 1e4 ; ++ i )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
- const v8 = require ( 'v8' ) ;
5
4
const Readable = require ( 'stream' ) . Readable ;
6
5
7
6
const bench = common . createBenchmark ( main , {
@@ -15,14 +14,6 @@ function main(conf) {
15
14
function noop ( ) { }
16
15
s . _read = noop ;
17
16
18
- // Force optimization before starting the benchmark
19
- s . push ( b ) ;
20
- v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
21
- eval ( '%OptimizeFunctionOnNextCall(s.push)' ) ;
22
- eval ( '%OptimizeFunctionOnNextCall(s.read)' ) ;
23
- s . push ( b ) ;
24
- while ( s . read ( 32 ) ) ;
25
-
26
17
bench . start ( ) ;
27
18
for ( var k = 0 ; k < n ; ++ k ) {
28
19
for ( var i = 0 ; i < 1e4 ; ++ i )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
- const v8 = require ( 'v8' ) ;
5
4
const Readable = require ( 'stream' ) . Readable ;
6
5
7
6
const bench = common . createBenchmark ( main , {
@@ -15,13 +14,6 @@ function main(conf) {
15
14
function noop ( ) { }
16
15
s . _read = noop ;
17
16
18
- // Force optimization before starting the benchmark
19
- s . push ( b ) ;
20
- v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
21
- eval ( '%OptimizeFunctionOnNextCall(s.read)' ) ;
22
- s . push ( b ) ;
23
- while ( s . read ( ) ) ;
24
-
25
17
bench . start ( ) ;
26
18
for ( var k = 0 ; k < n ; ++ k ) {
27
19
for ( var i = 0 ; i < 1e4 ; ++ i )
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
- const v8 = require ( 'v8' ) ;
5
4
const Readable = require ( 'stream' ) . Readable ;
6
5
7
6
const bench = common . createBenchmark ( main , {
@@ -15,13 +14,6 @@ function main(conf) {
15
14
function noop ( ) { }
16
15
s . _read = noop ;
17
16
18
- // Force optimization before starting the benchmark
19
- s . push ( b ) ;
20
- v8 . setFlagsFromString ( '--allow_natives_syntax' ) ;
21
- eval ( '%OptimizeFunctionOnNextCall(s.read)' ) ;
22
- s . push ( b ) ;
23
- while ( s . read ( 12 ) ) ;
24
-
25
17
bench . start ( ) ;
26
18
for ( var k = 0 ; k < n ; ++ k ) {
27
19
for ( var i = 0 ; i < 1e4 ; ++ i )
You can’t perform that action at this time.
0 commit comments