FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/benchmark/process_loop.js at master · afri/node · GitHub
afri
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
2
Star
10
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
benchmark
/
process_loop.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (14 loc) · 375 Bytes
Breadcrumbs
node
/
benchmark
/
process_loop.js
Copy path
File metadata and controls
19 lines (14 loc) · 375 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var
util
=
require
(
"util"
)
,
childProcess
=
require
(
"child_process"
)
;
function
next
(
i
)
{
if
(
i
<=
0
)
return
;
var
child
=
childProcess
.
spawn
(
"echo"
,
[
"hello"
]
)
;
child
.
stdout
.
addListener
(
"data"
,
function
(
chunk
)
{
util
.
print
(
chunk
)
;
}
)
;
child
.
addListener
(
"exit"
,
function
(
code
)
{
if
(
code
!=
0
)
process
.
exit
(
-
1
)
;
next
(
i
-
1
)
;
}
)
;
}
next
(
500
)
;
Back
|
FazBrowse Home
|
New Git URL