File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ node.mixin(require("/utils.js"));
44function next ( i ) {
55 if ( i <= 0 ) return ;
66
7- var child = node . createChildProcess ( "echo hello" ) ;
7+ var child = node . createChildProcess ( "echo" , [ " hello"] ) ;
88
99 child . addListener ( "output" , function ( chunk ) {
1010 if ( chunk ) print ( chunk ) ;
Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ var benchmarks = [ "static_http_server.js"
99var benchmark_dir = node . path . dirname ( __filename ) ;
1010
1111function exec ( script , callback ) {
12- var command = ARGV [ 0 ] + " " + node . path . join ( benchmark_dir , script ) ;
1312 var start = new Date ( ) ;
14- var child = node . createChildProcess ( command ) ;
13+ var child = node . createChildProcess ( ARGV [ 0 ] , [ node . path . join ( benchmark_dir , script ) ] ) ;
1514 child . addListener ( "exit" , function ( code ) {
1615 var elapsed = new Date ( ) - start ;
1716 callback ( elapsed , code ) ;
You can’t perform that action at this time.
0 commit comments