Permalink
Browse files

[test] house cleaning, benchmark files are now .tmp

  • Loading branch information...
1 parent 0bb4a0e commit 755c28118f054f297bd2408a54a1f8fc5024a0cc @jamesonjlee jamesonjlee committed Jun 29, 2011
Showing with 9 additions and 91 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 test/newtest.bash
  3. +0 −9 test/newtest.txt
  4. +4 −4 test/test.bash
  5. +0 −74 test/tmp.txt
View
@@ -7,6 +7,7 @@ node_modules
npm-debug.log
*.out
*.o
+*.tmp
View
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
-if [ -f newtest.txt ]
+if [ -f newtest.tmp ]
then
- rm -f newtest.txt
+ rm -f newtest.tmp
fi
for i in 'benchmark-EE2C.js' 'benchmark-EE2D.js' 'benchmark-EE2B.js'
do
- nodeunit benchmarks/$i | sed '/32mOK/d' | sed '/^$/d' | sed 's/\[1m//g' | sed 's/\[22m//g' >> newtest.txt
+ nodeunit benchmarks/$i | sed '/32mOK/d' | sed '/^$/d' | sed 's/\[1m//g' | sed 's/\[22m//g' >> newtest.tmp
done
-less newtest.txt
+less newtest.tmp
View
@@ -1,9 +0,0 @@
-benchmark-EE2C.js
-EE2_1: 459ms
-✔ Add 10000 listener, emit 300 times
-benchmark-EE2D.js
-EE2_3: 442ms
-✔ Add 10000 listener, emit 300 times
-benchmark-EE2B.js
-EE2_1: 401ms
-✔ Add 10000 listener, emit 300 times
View
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
-if [ -f tmp.txt ]
+if [ -f tmp.tmp ]
then
- rm -f tmp.txt
+ rm -f tmp.tmp
fi
stuff=`LS ./benchmarks/*.js`
for i in $stuff
do
- nodeunit $i | sed '/32mOK/d' | sed '/^$/d' | sed 's/\[1m//g' | sed 's/\[22m//g' >> tmp.txt
+ nodeunit $i | sed '/32mOK/d' | sed '/^$/d' | sed 's/\[1m//g' | sed 's/\[22m//g' >> tmp.tmp
done
-less tmp.txt
+less tmp.tmp
View
@@ -1,74 +0,0 @@
-benchmark-EE-1.js
-EE_1: 35ms
-✔ Add 10000 listener, emit 300 times with EE
-benchmark-EE-2.js
-EE_2: 96ms
-✔ Ultra hard 10K events test with 30K emits, for comparison using EE
-benchmark-EE-3.js
-EE_3: 1066ms
-✔ 100K events test with 300K emits on EE without namespacing
-benchmark-EE2-1.js
-EE2_1: 77ms
-✔ Add 10000 listener, emit 300 times
-benchmark-EE2-2.js
-EE2_2: 187ms
-✔ Ultra hard 10K events test with 30K emits on EE2 without namespacing
-benchmark-EE2-3.js
-EE2_3: 1993ms
-✔ 100K events test with 300K emits on EE2 without namespacing
-benchmark-EE2-4.js
-EE2_4: 5939ms
-✔ 100K events with 5 listeners, test with 1.5M emits on EE2 without namespacing
-benchmark-EE2-general.js
-t0: 98ms
-✔ 0. force JIT to get hot 10000 + 2300 emits
-t1: 5ms
-✔ 1. add 1000 listener, emit 3 times
-t2: 5ms
-✔ 2. add 1000 listener, emit 30 times
-t3: 53ms
-✔ 3. add 10000 listener, emit 30 times
-t6: 628ms
-✔ 6. ultra hard 10K events test with 30K emits
-benchmark-EE2B.js
-EE2_1: 31ms
-✖ Add 10000 listener, emit 300 times
-Error: Expected 300 assertions, 0 ran
- at Object.done (/usr/local/lib/node_modules/nodeunit/lib/types.js:119:25)
- at Object.<anonymous> (/Users/paolo/workroot/git/EventEmitter2/test/benchmarks/benchmark-EE2B.js:32:10)
- at /Users/paolo/.node_libraries/.npm/nodeunit/0.5.1/package/lib/core.js:189:16
- at Object.runTest (/usr/local/lib/node_modules/nodeunit/lib/core.js:54:9)
- at /usr/local/lib/node_modules/nodeunit/lib/core.js:91:21
- at /usr/local/lib/node_modules/nodeunit/deps/async.js:508:13
- at /usr/local/lib/node_modules/nodeunit/deps/async.js:118:13
- at /usr/local/lib/node_modules/nodeunit/deps/async.js:134:9
- at /usr/local/lib/node_modules/nodeunit/deps/async.js:507:9
- at Object.concatSeries (/usr/local/lib/node_modules/nodeunit/deps/async.js:147:23)
-FAILURES: 1/1 assertions failed (65ms)
-benchmark-EE2C.js
-EE2_1: 33ms
-✔ Add 10000 listener, emit 300 times
-benchmark-EETmpVar-1.js
-EETmpVar_1: 34ms
-✔ Add 10000 listener, emit 300 times with EE
-benchmark-EETmpVar-2.js
-EETmpVar_2: 93ms
-✔ Ultra hard 10K events test with 30K emits, for comparison using EE
-benchmark-EETmpVar-3.js
-EETmpVar_3: 1024ms
-✔ 100K events test with 300K emits on TmpVar
-benchmark-EETmpVar-4.js
-EETmpVar_4: 4791ms
-✔ 100K events with 5 listeners with 1.5M emits on TmpVar
-benchmark-EEWolfy-1.js
-EEWolfy_1: 34ms
-✔ Add 10000 listener, emit 300 times with EE
-benchmark-EEWolfy-2.js
-EEWolfy_2: 94ms
-✔ Ultra hard 10K events test with 30K emits, for comparison using EE
-benchmark-EEWolfy-3.js
-EEWolfy_3: 1168ms
-✔ 100K events test with 300K emits on Wolfy87
-benchmark-EEWolfy-4.js
-EEWolfy_4: 4838ms
-✔ 100K events with 5 listeners doign 1.5M emits on Wolfy87

0 comments on commit 755c281

Please sign in to comment.