Access to global object in ES3, ES5 and ES5-strict (v10)

Revision 10 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
global1
var global = Function('return this')();
ready
global2
var global = (function() {
  return this || (1, eval)('this');
}());
ready
global3
(function() {
  "use strict";
  var global = Function('return this')();
})();
ready
global4
(function() {
  "use strict";
  var global = (function() {
    return this || (1, eval)('this');
  }());
})();
ready

Revisions

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