Day 034 - Performance Testing


http://jsperf.com/

This site is awesome. It allows you to easily setup and run benchmark tests.

Here's difference in performance for Day-33.

http://jsperf.com/number-vs-operator

Test1 has the code using number.

Test2 has the code using operator.

number      5 + Number('5')     24,572,246      ±0.86%     10% slower
operator    5 + +'5'            27,193,087      ±0.62%     fastest