Benchmarking JavaScript

JavaScript is everywhere. JavaScript VMs improve by leaps and bounds. Performance graphs are breaking through the ceilings of expectations. And yet from time to time we still find ourselves wondering whether ‘===’ is faster than ‘==’.

What is the right way to approach this question? Is this the question you should be asking to begin with? We will take a look at some microbenchmarks written by JS developers and discover a violent clash between XIX century approach to benchmarking and XXI century virtual machines.