Skip to content

Instantly share code, notes, and snippets.

@mmalecki
Created July 3, 2013 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmalecki/92c8ab49c146fa2696b5 to your computer and use it in GitHub Desktop.
Save mmalecki/92c8ab49c146fa2696b5 to your computer and use it in GitHub Desktop.
[maciej@pc09 node (master)]$ NODE_BENCH=bench-http node benchmark/compare.js ./node-master ./node-prototypes
running ./node-master
http/chunked.js
http/client-request-body.js
http/cluster.js
http/end-vs-write-end.js
http/simple.js
running ./node-prototypes
http/chunked.js
http/client-request-body.js
http/cluster.js
http/end-vs-write-end.js
http/simple.js
http/chunked.js num=1 size=1 c=100: ./node-master: 9612.7 ./node-prototypes: 9638.6 .................................. -0.27%
http/chunked.js num=1 size=64 c=100: ./node-master: 9454.6 ./node-prototypes: 9760.8 ................................. -3.14%
http/chunked.js num=1 size=256 c=100: ./node-master: 8931.7 ./node-prototypes: 9553.8 ................................ -6.51%
http/chunked.js num=4 size=1 c=100: ./node-master: 4054 ./node-prototypes: 4583.3 ................................... -11.55%
http/chunked.js num=4 size=64 c=100: ./node-master: 4216 ./node-prototypes: 4456.3 ................................... -5.39%
http/chunked.js num=4 size=256 c=100: ./node-master: 4208.7 ./node-prototypes: 4503.6 ................................ -6.55%
http/chunked.js num=8 size=1 c=100: ./node-master: 2507.7 ./node-prototypes: 2572.4 .................................. -2.52%
http/chunked.js num=8 size=64 c=100: ./node-master: 2442.8 ./node-prototypes: 2479.4 ................................. -1.48%
http/chunked.js num=8 size=256 c=100: ./node-master: 2514.7 ./node-prototypes: 2497.7 ................................. 0.68%
http/chunked.js num=16 size=1 c=100: ./node-master: 1378.8 ./node-prototypes: 1370.7 .................................. 0.59%
http/chunked.js num=16 size=64 c=100: ./node-master: 1286.2 ./node-prototypes: 1342.3 ................................ -4.18%
http/chunked.js num=16 size=256 c=100: ./node-master: 1270 ./node-prototypes: 1332.4 ................................. -4.68%
http/client-request-body.js dur=5 type=asc bytes=32 method=write: ./node-master: 5854.7 ./node-prototypes: 6581.1 ... -11.04%
http/client-request-body.js dur=5 type=asc bytes=32 method=end : ./node-master: 5979.8 ./node-prototypes: 6199.6 .... -3.55%
http/client-request-body.js dur=5 type=asc bytes=256 method=write: ./node-master: 6011.7 ./node-prototypes: 5063.3 ... 18.73%
http/client-request-body.js dur=5 type=asc bytes=256 method=end : ./node-master: 5972 ./node-prototypes: 5301.1 ..... 12.66%
http/client-request-body.js dur=5 type=asc bytes=1024 method=write: ./node-master: 5915.2 ./node-prototypes: 5840.8 ... 1.27%
http/client-request-body.js dur=5 type=asc bytes=1024 method=end : ./node-master: 5894.9 ./node-prototypes: 5880.1 ... 0.25%
http/client-request-body.js dur=5 type=utf bytes=32 method=write: ./node-master: 5326.6 ./node-prototypes: 6251.4 ... -14.79%
http/client-request-body.js dur=5 type=utf bytes=32 method=end : ./node-master: 5936.7 ./node-prototypes: 6575.5 .... -9.71%
http/client-request-body.js dur=5 type=utf bytes=256 method=write: ./node-master: 6078.5 ./node-prototypes: 6603.1 ... -7.94%
http/client-request-body.js dur=5 type=utf bytes=256 method=end : ./node-master: 6071.1 ./node-prototypes: 6529.3 ... -7.02%
http/client-request-body.js dur=5 type=utf bytes=1024 method=write: ./node-master: 5905.2 ./node-prototypes: 6533.1 .. -9.61%
http/client-request-body.js dur=5 type=utf bytes=1024 method=end : ./node-master: 5612.2 ./node-prototypes: 6532.1 . -14.08%
http/client-request-body.js dur=5 type=buf bytes=32 method=write: ./node-master: 4758.5 ./node-prototypes: 5100.1 .... -6.70%
http/client-request-body.js dur=5 type=buf bytes=32 method=end : ./node-master: 4708.7 ./node-prototypes: 5275.5 ... -10.74%
http/client-request-body.js dur=5 type=buf bytes=256 method=write: ./node-master: 4984.1 ./node-prototypes: 5158.6 ... -3.38%
http/client-request-body.js dur=5 type=buf bytes=256 method=end : ./node-master: 5063.5 ./node-prototypes: 5273.4 ... -3.98%
http/client-request-body.js dur=5 type=buf bytes=1024 method=write: ./node-master: 4913.8 ./node-prototypes: 5197.6 .. -5.46%
http/client-request-body.js dur=5 type=buf bytes=1024 method=end : ./node-master: 4696.3 ./node-prototypes: 5174.3 .. -9.24%
http/cluster.js type=bytes length=4 c=50: ./node-master: 17973 ./node-prototypes: 18015 .............................. -0.23%
http/cluster.js type=bytes length=4 c=500: ./node-master: 14771 ./node-prototypes: 16014 ............................. -7.76%
http/cluster.js type=bytes length=1024 c=50: ./node-master: 14828 ./node-prototypes: 16734 .......................... -11.39%
http/cluster.js type=bytes length=1024 c=500: ./node-master: 14535 ./node-prototypes: 14454 ........................... 0.56%
http/cluster.js type=bytes length=102400 c=50: ./node-master: 691.45 ./node-prototypes: 664.86 ........................ 4.00%
http/cluster.js type=bytes length=102400 c=500: ./node-master: 663.34 ./node-prototypes: 626.47 ....................... 5.89%
http/cluster.js type=buffer length=4 c=50: ./node-master: 17228 ./node-prototypes: 14793 ............................. 16.46%
http/cluster.js type=buffer length=4 c=500: ./node-master: 14189 ./node-prototypes: 14713 ............................ -3.56%
http/cluster.js type=buffer length=1024 c=50: ./node-master: 16786 ./node-prototypes: 17601 .......................... -4.63%
http/cluster.js type=buffer length=1024 c=500: ./node-master: 14032 ./node-prototypes: 14755 ......................... -4.90%
http/cluster.js type=buffer length=102400 c=50: ./node-master: 12589 ./node-prototypes: 12362 ......................... 1.84%
http/cluster.js type=buffer length=102400 c=500: ./node-master: 11345 ./node-prototypes: 10928 ........................ 3.82%
http/end-vs-write-end.js type=asc kb=64 c=100 method=write: ./node-master: 3917.9 ./node-prototypes: 4120.6 .......... -4.92%
http/end-vs-write-end.js type=asc kb=64 c=100 method=end : ./node-master: 3224.4 ./node-prototypes: 3657 ........... -11.83%
http/end-vs-write-end.js type=asc kb=128 c=100 method=write: ./node-master: 2232.6 ./node-prototypes: 2258.5 ......... -1.15%
http/end-vs-write-end.js type=asc kb=128 c=100 method=end : ./node-master: 1855.3 ./node-prototypes: 1819.2 .......... 1.98%
http/end-vs-write-end.js type=asc kb=256 c=100 method=write: ./node-master: 1234.9 ./node-prototypes: 1219.3 .......... 1.28%
http/end-vs-write-end.js type=asc kb=256 c=100 method=end : ./node-master: 1002.8 ./node-prototypes: 984.38 .......... 1.87%
http/end-vs-write-end.js type=asc kb=1024 c=100 method=write: ./node-master: 242.04 ./node-prototypes: 245.17 ........ -1.28%
http/end-vs-write-end.js type=asc kb=1024 c=100 method=end : ./node-master: 287.09 ./node-prototypes: 280.85 ......... 2.22%
http/end-vs-write-end.js type=utf kb=64 c=100 method=write: ./node-master: 5242.6 ./node-prototypes: 5146 ............. 1.88%
http/end-vs-write-end.js type=utf kb=64 c=100 method=end : ./node-master: 4521.2 ./node-prototypes: 5365.5 ......... -15.74%
http/end-vs-write-end.js type=utf kb=128 c=100 method=write: ./node-master: 2428.9 ./node-prototypes: 2249.2 .......... 7.99%
http/end-vs-write-end.js type=utf kb=128 c=100 method=end : ./node-master: 2192 ./node-prototypes: 2299 ............. -4.65%
http/end-vs-write-end.js type=utf kb=256 c=100 method=write: ./node-master: 1202.3 ./node-prototypes: 1369.9 ........ -12.23%
http/end-vs-write-end.js type=utf kb=256 c=100 method=end : ./node-master: 1039.3 ./node-prototypes: 1117.2 ......... -6.97%
http/end-vs-write-end.js type=utf kb=1024 c=100 method=write: ./node-master: 331.47 ./node-prototypes: 375.86 ....... -11.81%
http/end-vs-write-end.js type=utf kb=1024 c=100 method=end : ./node-master: 304.19 ./node-prototypes: 327.26 ........ -7.05%
http/end-vs-write-end.js type=buf kb=64 c=100 method=write: ./node-master: 8934.8 ./node-prototypes: 8886.3 ........... 0.55%
http/end-vs-write-end.js type=buf kb=64 c=100 method=end : ./node-master: 9900.7 ./node-prototypes: 10425 ........... -5.03%
http/end-vs-write-end.js type=buf kb=128 c=100 method=write: ./node-master: 7127 ./node-prototypes: 7233.2 ........... -1.47%
http/end-vs-write-end.js type=buf kb=128 c=100 method=end : ./node-master: 7799.8 ./node-prototypes: 7994 ........... -2.43%
http/end-vs-write-end.js type=buf kb=256 c=100 method=write: ./node-master: 5846 ./node-prototypes: 6048.1 ........... -3.34%
http/end-vs-write-end.js type=buf kb=256 c=100 method=end : ./node-master: 6507.1 ./node-prototypes: 6675.9 ......... -2.53%
http/end-vs-write-end.js type=buf kb=1024 c=100 method=write: ./node-master: 2569.6 ./node-prototypes: 2672.7 ........ -3.86%
http/end-vs-write-end.js type=buf kb=1024 c=100 method=end : ./node-master: 2609.3 ./node-prototypes: 2708.3 ........ -3.66%
http/simple.js type=bytes length=4 c=50: ./node-master: 11561 ./node-prototypes: 10937 ................................ 5.71%
http/simple.js type=bytes length=4 c=500: ./node-master: 9727.8 ./node-prototypes: 10377 ............................. -6.26%
http/simple.js type=bytes length=1024 c=50: ./node-master: 10564 ./node-prototypes: 10803 ............................ -2.21%
http/simple.js type=bytes length=1024 c=500: ./node-master: 9514.6 ./node-prototypes: 8962.7 .......................... 6.16%
http/simple.js type=bytes length=102400 c=50: ./node-master: 418.73 ./node-prototypes: 394.34 ......................... 6.19%
http/simple.js type=bytes length=102400 c=500: ./node-master: 407.13 ./node-prototypes: 393.34 ........................ 3.51%
http/simple.js type=buffer length=4 c=50: ./node-master: 9287 ./node-prototypes: 11053 .............................. -15.98%
http/simple.js type=buffer length=4 c=500: ./node-master: 9886.1 ./node-prototypes: 9712.9 ............................ 1.78%
http/simple.js type=buffer length=1024 c=50: ./node-master: 12029 ./node-prototypes: 11526 ............................ 4.36%
http/simple.js type=buffer length=1024 c=500: ./node-master: 9941.1 ./node-prototypes: 9643.7 ......................... 3.08%
http/simple.js type=buffer length=102400 c=50: ./node-master: 9264.2 ./node-prototypes: 8629.3 ........................ 7.36%
http/simple.js type=buffer length=102400 c=500: ./node-master: 7839.3 ./node-prototypes: 7314.4 ....................... 7.18%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment