FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/benchmark/process_loop.js at master · cramforce/node · GitHub
cramforce
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
1
Star
13
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
20 lines (16 loc) · 456 Bytes
Breadcrumbs
node
/
benchmark
/
process_loop.js
Copy path
File metadata and controls
20 lines (16 loc) · 456 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
20
var
path
=
require
(
"path"
)
;
libDir
=
path
.
join
(
path
.
dirname
(
__filename
)
,
"../lib"
)
;
require
.
paths
.
unshift
(
libDir
)
;
process
.
mixin
(
require
(
"sys"
)
)
;
function
next
(
i
)
{
if
(
i
<=
0
)
return
;
var
child
=
process
.
createChildProcess
(
"echo"
,
[
"hello"
]
)
;
child
.
addListener
(
"output"
,
function
(
chunk
)
{
if
(
chunk
)
print
(
chunk
)
;
}
)
;
child
.
addListener
(
"exit"
,
function
(
code
)
{
if
(
code
!=
0
)
process
.
exit
(
-
1
)
;
next
(
i
-
1
)
;
}
)
;
}
next
(
500
)
;
Back
|
FazBrowse Home
|
New Git URL