tb

Benchmark created by Tim on


Setup

var testFunc=function(a){
    var b1=(111+222===333)&&a.a1
    var b2=(a.a2*45+1010)/17
    var b3='What do you say'+a.a3
    var b4=a.a4()
    }

Test runner

Ready to run.

Testing in
TestOps/sec
predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
ready
dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
ready
del 4 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
delete a.a1
delete a.a2
delete a.a3
delete a.a4
 
ready
del 4 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
delete a.a1
delete a.a2
delete a.a3
delete a.a4
 
ready
null 4 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
a.a1=null
a.a2=null
a.a3=null
a.a4=null
ready
null 4 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
a.a1=null
a.a2=null
a.a3=null
a.a4=null
ready
del 3 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
delete a.a1
delete a.a2
delete a.a3
 
ready
del 2 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
delete a.a1
delete a.a2

 
ready
del 1 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
delete a.a1

 
ready
del 3 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
delete a.a1
delete a.a2
delete a.a3

 
ready
del 2 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
delete a.a1
delete a.a2

 
ready
del 1 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
delete a.a1

 
ready
null 3 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
a.a1=null
a.a2=null
a.a3=null
 
ready
null 2 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
a.a1=null
a.a2=null
 
ready
null 1 predef prop
a={
a1:true,
a2:100,
a3:"Hello World",
a4:function(){var a4a="Hey";return a4a}
}
testFunc(a)
a.a1=null
ready
null 3 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
a.a1=null
a.a2=null
a.a3=null
ready
null 2 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
a.a1=null
a.a2=null
ready
null 1 dyn prop
a={}
a.a1=true
a.a2=100
a.a3="Hello World"
a.a4=function(){var a4a="Hey";return a4a}
testFunc(a)
a.a1=null
ready

Revisions

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