Performance Testing in JavaScript