global variables (v16)

Revision 16 of this benchmark created by Emanuel Jackstare on


Preparation HTML

<script>
  var a,b='';
  function x() {
    for(a=0;a<20;a++)
      b+=a;
  }
  var e,f='';
  function z() {
    for(window.e=0;window.e<20;window.e++)
      window.f+=window.e;
  }
  function y() {
    var c,d='';
    for(c=0;c<20;c++)
      d+=c;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
global variables
x();
ready
local variables
y();
ready
global direct
window.z();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.