projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3761be3
)
bench: Remove settimeout (Covered by misc/timeout.js)
author
isaacs
<i@izs.me>
Tue, 12 Feb 2013 07:03:42 +0000
(23:03 -0800)
committer
isaacs
<i@izs.me>
Tue, 19 Feb 2013 22:14:35 +0000
(14:14 -0800)
benchmark/settimeout.js
[deleted file]
patch
|
blob
|
history
diff --git
a/benchmark/settimeout.js
b/benchmark/settimeout.js
deleted file mode 100644
(file)
index
dd52dc9
..0000000
--- a/
benchmark/settimeout.js
+++ /dev/null
@@
-1,15
+0,0 @@
-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();