Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?

Results

Adding loop

coffee CLI

real	0m0.124s
user	0m0.102s
sys	0m0.022s

compiled coffeescript

real	0m0.063s
user	0m0.046s
sys	0m0.015s

equivalent javascript

real	0m0.061s
user	0m0.046s
sys	0m0.014s

HTTP

requested via ab -n 10 -c 1000 http://127.0.0.1:8080/

coffee CLI

Requests per second:    4116.40 [#/sec] (mean)
Time per request:       2.429 [ms] (mean)
Time per request:       0.243 [ms] (mean, across all concurrent requests)
Transfer rate:          458.27 [Kbytes/sec] received

compiled

Requests per second:    3828.59 [#/sec] (mean)
Time per request:       2.612 [ms] (mean)
Time per request:       0.261 [ms] (mean, across all concurrent requests)
Transfer rate:          426.23 [Kbytes/sec] received

equivalent

Requests per second:    3629.91 [#/sec] (mean)
Time per request:       2.755 [ms] (mean)
Time per request:       0.275 [ms] (mean, across all concurrent requests)
Transfer rate:          404.11 [Kbytes/sec] received

File I/O

coffee CLI

real	0m0.130s
user	0m0.106s
sys	0m0.023s

compiled

real	0m0.067s
user	0m0.051s
sys	0m0.016s

equivalent

real	0m0.067s
user	0m0.050s
sys	0m0.016s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment