locally scoping global non-native functions

Benchmark created by chris on


Description

Probably been done a thousand times

Preparation HTML

<script>
  var global = function() {
   parseInt("dsjadalk", 2)
   parseInt("sada", 5)
   parseInt("sadasdasfafa", 10)
  
  }
  
  var normal = function() {
   global("dsjadalk", 2)
   global("sada", 5)
   global("sadasdasfafa", 10)
  }
  var scoped = function() {
   var parseInt = self.global;
   parseInt("dsjadalk", 2)
   parseInt("sada", 5)
   parseInt("sadasdasfafa", 10)
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
normal
normal()
ready
scoped
scoped()
ready

Revisions

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