reducing variable creation

Benchmark created on


Setup

var _tmp = 0;
    
    var func1 = function() {
        _tmp++;
    }
    
    var func2 = function _() {
        _._tmp++;
    }
    func2._tmp = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
one
func1();
ready
two
func2();
ready

Revisions

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