var vs novar vs explicit global (v2)

Revision 2 of this benchmark created by Milan Adamovsky on


Test runner

Ready to run.

Testing in
TestOps/sec
var
var a = 'abc';
ready
novar
a = 'abc';
ready
explicit global
window.a = 'abc';
ready
novar number
a = 123;
ready
var number
var a = 123;
ready
explicit number
window.a = 123;
ready

Revisions

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