CPU Cycles, Memory Usage, Execution Time, etc.?
Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code
You could use this: http://getfirebug.com/js.html. It has a profiler for JavaScript.