namespaces

JavaScript performance comparison

Test case created by Ben Brunton

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
namespaced stuff
var App = {};

App.obj = {
    something:"",
    somethingElse:""
};

App.arr = ["something", "somethingElse"];

App.arrObj = [
{something:'something'},
{something:'something'}
];

App.test = true;
App.test2 = false;
App.test3 = "";
App.test4 = -1;

delete App.obj.something;
 
pending…
global stuff
var obj = {
    something:"",
    somethingElse:""
};

var arr = ["something", "somethingElse"];
var arrObj = [
{something:'something'},
{something:'something'}
];

var test = true;
var test2 = false;
var test3 = "";
var test4 = -1;

delete obj.something;
pending…

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

Compare results of other browsers

0 comments

Add a comment