Stackoverflow - eval vs script
JavaScript performance comparison
Info
http://stackoverflow.com/q/8380204/918414
Preparation code
<script>
Benchmark.prototype.setup = function() {
<div id="hello"></div>
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
eval |
|
pending… |
script |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments