FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/benchmark/settimeout.js at master · r2d2coder/node · GitHub
r2d2coder
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
/
settimeout.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (15 loc) · 364 Bytes
Breadcrumbs
node
/
benchmark
/
settimeout.js
Copy path
File metadata and controls
15 lines (15 loc) · 364 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
console
.
log
(
"wait..."
)
;
var
done
=
0
;
var
N
=
5000000
;
var
begin
=
new
Date
(
)
;
for
(
var
i
=
0
;
i
<
N
;
i
++
)
{
setTimeout
(
function
(
)
{
if
(
++
done
==
N
)
{
var
end
=
new
Date
(
)
;
console
.
log
(
"smaller is better"
)
;
console
.
log
(
"startup: %d"
,
start
-
begin
)
;
console
.
log
(
"done: %d"
,
end
-
start
)
;
}
}
,
1000
)
;
}
var
start
=
new
Date
(
)
;
Back
|
FazBrowse Home
|
New Git URL