Analyze the performance of a block of JavaScript code