Object instantiation speed

JavaScript performance comparison

Test case created by Maxim Dikun

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  var BaseClass=function(){};
  BaseClass.prototype.method1=function(){return 1}
  BaseClass.prototype.method2=function(){return 2}
  BaseClass.prototype.method3=function(){return 3}
  BaseClass.prototype.method4=function(){return 4}
  BaseClass.prototype.method5=function(){return 5}
  BaseClass.prototype.method6=function(){return 6}
  BaseClass.prototype.method7=function(){return 7}
  BaseClass.prototype.method8=function(){return 8}
  BaseClass.prototype.method9=function(){return 9}
  BaseClass.prototype.method10=function(){return 10}
  BaseClass.prototype.method11=function(){return 11}
  BaseClass.prototype.method12=function(){return 12}
  BaseClass.prototype.method13=function(){return 13}
  BaseClass.prototype.method14=function(){return 14}
  BaseClass.prototype.method15=function(){return 15}
  BaseClass.prototype.method16=function(){return 16}
  BaseClass.prototype.method17=function(){return 17}
  BaseClass.prototype.method18=function(){return 18}
  BaseClass.prototype.method19=function(){return 19}
  BaseClass.prototype.method20=function(){return 20}
  BaseClass.prototype.method21=function(){return 21}
  BaseClass.prototype.method22=function(){return 22}
  BaseClass.prototype.method23=function(){return 23}
  BaseClass.prototype.method24=function(){return 24}
  BaseClass.prototype.method25=function(){return 25}
  BaseClass.prototype.method26=function(){return 26}
  BaseClass.prototype.method27=function(){return 27}
  BaseClass.prototype.method28=function(){return 28}
  BaseClass.prototype.method29=function(){return 29}
  BaseClass.prototype.method30=function(){return 30}
  BaseClass.prototype.method31=function(){return 31}
  BaseClass.prototype.method32=function(){return 32}
  BaseClass.prototype.method33=function(){return 33}
  BaseClass.prototype.method34=function(){return 34}
  BaseClass.prototype.method35=function(){return 35}
  BaseClass.prototype.method36=function(){return 36}
  BaseClass.prototype.method37=function(){return 37}
  BaseClass.prototype.method38=function(){return 38}
  BaseClass.prototype.method39=function(){return 39}
  BaseClass.prototype.method40=function(){return 40}
  BaseClass.prototype.method41=function(){return 41}
  BaseClass.prototype.method42=function(){return 42}
  BaseClass.prototype.method43=function(){return 43}
  BaseClass.prototype.method44=function(){return 44}
  BaseClass.prototype.method45=function(){return 45}
  BaseClass.prototype.method46=function(){return 46}
  BaseClass.prototype.method47=function(){return 47}
  BaseClass.prototype.method48=function(){return 48}
  BaseClass.prototype.method49=function(){return 49}
  BaseClass.prototype.method50=function(){return 50}
  BaseClass.prototype.method51=function(){return 51}
  BaseClass.prototype.method52=function(){return 52}
  BaseClass.prototype.method53=function(){return 53}
  BaseClass.prototype.method54=function(){return 54}
  BaseClass.prototype.method55=function(){return 55}
  BaseClass.prototype.method56=function(){return 56}
  BaseClass.prototype.method57=function(){return 57}
  BaseClass.prototype.method58=function(){return 58}
  BaseClass.prototype.method59=function(){return 59}
  BaseClass.prototype.method60=function(){return 60}
  BaseClass.prototype.method61=function(){return 61}
  BaseClass.prototype.method62=function(){return 62}
  BaseClass.prototype.method63=function(){return 63}
  BaseClass.prototype.method64=function(){return 64}
  BaseClass.prototype.method65=function(){return 65}
  BaseClass.prototype.method66=function(){return 66}
  BaseClass.prototype.method67=function(){return 67}
  BaseClass.prototype.method68=function(){return 68}
  BaseClass.prototype.method69=function(){return 69}
  BaseClass.prototype.method70=function(){return 70}
  BaseClass.prototype.method71=function(){return 71}
  BaseClass.prototype.method72=function(){return 72}
  BaseClass.prototype.method73=function(){return 73}
  BaseClass.prototype.method74=function(){return 74}
  BaseClass.prototype.method75=function(){return 75}
  BaseClass.prototype.method76=function(){return 76}
  BaseClass.prototype.method77=function(){return 77}
  BaseClass.prototype.method78=function(){return 78}
  BaseClass.prototype.method79=function(){return 79}
  BaseClass.prototype.method80=function(){return 80}
  BaseClass.prototype.method81=function(){return 81}
  BaseClass.prototype.method82=function(){return 82}
  BaseClass.prototype.method83=function(){return 83}
  BaseClass.prototype.method84=function(){return 84}
  BaseClass.prototype.method85=function(){return 85}
  BaseClass.prototype.method86=function(){return 86}
  BaseClass.prototype.method87=function(){return 87}
  BaseClass.prototype.method88=function(){return 88}
  BaseClass.prototype.method89=function(){return 89}
  BaseClass.prototype.method90=function(){return 90}
  BaseClass.prototype.method91=function(){return 91}
  BaseClass.prototype.method92=function(){return 92}
  BaseClass.prototype.method93=function(){return 93}
  BaseClass.prototype.method94=function(){return 94}
  BaseClass.prototype.method95=function(){return 95}
  BaseClass.prototype.method96=function(){return 96}
  BaseClass.prototype.method97=function(){return 97}
  BaseClass.prototype.method98=function(){return 98}
  BaseClass.prototype.method99=function(){return 99}
  BaseClass.prototype.method100=function(){return 100}
  
  var ChildClass1=function(){
  	this.method101=function(){return 101}
  	this.method102=function(){return 102}
  	this.method103=function(){return 103}
  	this.method104=function(){return 104}
  	this.method105=function(){return 105}
  	this.method106=function(){return 106}
  	this.method107=function(){return 107}
  	this.method108=function(){return 108}
  	this.method109=function(){return 109}
  	this.method110=function(){return 110}
  	this.method111=function(){return 111}
  	this.method112=function(){return 112}
  	this.method113=function(){return 113}
  	this.method114=function(){return 114}
  	this.method115=function(){return 115}
  	this.method116=function(){return 116}
  	this.method117=function(){return 117}
  	this.method118=function(){return 118}
  	this.method119=function(){return 119}
  	this.method120=function(){return 120}
  	this.method121=function(){return 121}
  	this.method122=function(){return 122}
  	this.method123=function(){return 123}
  	this.method124=function(){return 124}
  	this.method125=function(){return 125}
  	this.method126=function(){return 126}
  	this.method127=function(){return 127}
  	this.method128=function(){return 128}
  	this.method129=function(){return 129}
  	this.method130=function(){return 130}
  	this.method131=function(){return 131}
  	this.method132=function(){return 132}
  	this.method133=function(){return 133}
  	this.method134=function(){return 134}
  	this.method135=function(){return 135}
  	this.method136=function(){return 136}
  	this.method137=function(){return 137}
  	this.method138=function(){return 138}
  	this.method139=function(){return 139}
  	this.method140=function(){return 140}
  	this.method141=function(){return 141}
  	this.method142=function(){return 142}
  	this.method143=function(){return 143}
  	this.method144=function(){return 144}
  	this.method145=function(){return 145}
  	this.method146=function(){return 146}
  	this.method147=function(){return 147}
  	this.method148=function(){return 148}
  	this.method149=function(){return 149}
  	this.method150=function(){return 150}
  	this.method151=function(){return 151}
  	this.method152=function(){return 152}
  	this.method153=function(){return 153}
  	this.method154=function(){return 154}
  	this.method155=function(){return 155}
  	this.method156=function(){return 156}
  	this.method157=function(){return 157}
  	this.method158=function(){return 158}
  	this.method159=function(){return 159}
  	this.method160=function(){return 160}
  	this.method161=function(){return 161}
  	this.method162=function(){return 162}
  	this.method163=function(){return 163}
  	this.method164=function(){return 164}
  	this.method165=function(){return 165}
  	this.method166=function(){return 166}
  	this.method167=function(){return 167}
  	this.method168=function(){return 168}
  	this.method169=function(){return 169}
  	this.method170=function(){return 170}
  	this.method171=function(){return 171}
  	this.method172=function(){return 172}
  	this.method173=function(){return 173}
  	this.method174=function(){return 174}
  	this.method175=function(){return 175}
  	this.method176=function(){return 176}
  	this.method177=function(){return 177}
  	this.method178=function(){return 178}
  	this.method179=function(){return 179}
  	this.method180=function(){return 180}
  	this.method181=function(){return 181}
  	this.method182=function(){return 182}
  	this.method183=function(){return 183}
  	this.method184=function(){return 184}
  	this.method185=function(){return 185}
  	this.method186=function(){return 186}
  	this.method187=function(){return 187}
  	this.method188=function(){return 188}
  	this.method189=function(){return 189}
  	this.method190=function(){return 190}
  	this.method191=function(){return 191}
  	this.method192=function(){return 192}
  	this.method193=function(){return 193}
  	this.method194=function(){return 194}
  	this.method195=function(){return 195}
  	this.method196=function(){return 196}
  	this.method197=function(){return 197}
  	this.method198=function(){return 198}
  	this.method199=function(){return 199}
  	this.method200=function(){return 200}
  }
  
  var ChildClass2=function(){}
  for(var p in BaseClass.prototype){if(BaseClass.prototype.hasOwnProperty(p)){ChildClass2.prototype[p]=BaseClass.prototype[p]}}
  ChildClass2.prototype.method201=function(){return 201}
  ChildClass2.prototype.method202=function(){return 202}
  ChildClass2.prototype.method203=function(){return 203}
  ChildClass2.prototype.method204=function(){return 204}
  ChildClass2.prototype.method205=function(){return 205}
  ChildClass2.prototype.method206=function(){return 206}
  ChildClass2.prototype.method207=function(){return 207}
  ChildClass2.prototype.method208=function(){return 208}
  ChildClass2.prototype.method209=function(){return 209}
  ChildClass2.prototype.method210=function(){return 210}
  ChildClass2.prototype.method211=function(){return 211}
  ChildClass2.prototype.method212=function(){return 212}
  ChildClass2.prototype.method213=function(){return 213}
  ChildClass2.prototype.method214=function(){return 214}
  ChildClass2.prototype.method215=function(){return 215}
  ChildClass2.prototype.method216=function(){return 216}
  ChildClass2.prototype.method217=function(){return 217}
  ChildClass2.prototype.method218=function(){return 218}
  ChildClass2.prototype.method219=function(){return 219}
  ChildClass2.prototype.method220=function(){return 220}
  ChildClass2.prototype.method221=function(){return 221}
  ChildClass2.prototype.method222=function(){return 222}
  ChildClass2.prototype.method223=function(){return 223}
  ChildClass2.prototype.method224=function(){return 224}
  ChildClass2.prototype.method225=function(){return 225}
  ChildClass2.prototype.method226=function(){return 226}
  ChildClass2.prototype.method227=function(){return 227}
  ChildClass2.prototype.method228=function(){return 228}
  ChildClass2.prototype.method229=function(){return 229}
  ChildClass2.prototype.method230=function(){return 230}
  ChildClass2.prototype.method231=function(){return 231}
  ChildClass2.prototype.method232=function(){return 232}
  ChildClass2.prototype.method233=function(){return 233}
  ChildClass2.prototype.method234=function(){return 234}
  ChildClass2.prototype.method235=function(){return 235}
  ChildClass2.prototype.method236=function(){return 236}
  ChildClass2.prototype.method237=function(){return 237}
  ChildClass2.prototype.method238=function(){return 238}
  ChildClass2.prototype.method239=function(){return 239}
  ChildClass2.prototype.method240=function(){return 240}
  ChildClass2.prototype.method241=function(){return 241}
  ChildClass2.prototype.method242=function(){return 242}
  ChildClass2.prototype.method243=function(){return 243}
  ChildClass2.prototype.method244=function(){return 244}
  ChildClass2.prototype.method245=function(){return 245}
  ChildClass2.prototype.method246=function(){return 246}
  ChildClass2.prototype.method247=function(){return 247}
  ChildClass2.prototype.method248=function(){return 248}
  ChildClass2.prototype.method249=function(){return 249}
  ChildClass2.prototype.method250=function(){return 250}
  ChildClass2.prototype.method251=function(){return 251}
  ChildClass2.prototype.method252=function(){return 252}
  ChildClass2.prototype.method253=function(){return 253}
  ChildClass2.prototype.method254=function(){return 254}
  ChildClass2.prototype.method255=function(){return 255}
  ChildClass2.prototype.method256=function(){return 256}
  ChildClass2.prototype.method257=function(){return 257}
  ChildClass2.prototype.method258=function(){return 258}
  ChildClass2.prototype.method259=function(){return 259}
  ChildClass2.prototype.method260=function(){return 260}
  ChildClass2.prototype.method261=function(){return 261}
  ChildClass2.prototype.method262=function(){return 262}
  ChildClass2.prototype.method263=function(){return 263}
  ChildClass2.prototype.method264=function(){return 264}
  ChildClass2.prototype.method265=function(){return 265}
  ChildClass2.prototype.method266=function(){return 266}
  ChildClass2.prototype.method267=function(){return 267}
  ChildClass2.prototype.method268=function(){return 268}
  ChildClass2.prototype.method269=function(){return 269}
  ChildClass2.prototype.method270=function(){return 270}
  ChildClass2.prototype.method271=function(){return 271}
  ChildClass2.prototype.method272=function(){return 272}
  ChildClass2.prototype.method273=function(){return 273}
  ChildClass2.prototype.method274=function(){return 274}
  ChildClass2.prototype.method275=function(){return 275}
  ChildClass2.prototype.method276=function(){return 276}
  ChildClass2.prototype.method277=function(){return 277}
  ChildClass2.prototype.method278=function(){return 278}
  ChildClass2.prototype.method279=function(){return 279}
  ChildClass2.prototype.method280=function(){return 280}
  ChildClass2.prototype.method281=function(){return 281}
  ChildClass2.prototype.method282=function(){return 282}
  ChildClass2.prototype.method283=function(){return 283}
  ChildClass2.prototype.method284=function(){return 284}
  ChildClass2.prototype.method285=function(){return 285}
  ChildClass2.prototype.method286=function(){return 286}
  ChildClass2.prototype.method287=function(){return 287}
  ChildClass2.prototype.method288=function(){return 288}
  ChildClass2.prototype.method289=function(){return 289}
  ChildClass2.prototype.method290=function(){return 290}
  ChildClass2.prototype.method291=function(){return 291}
  ChildClass2.prototype.method292=function(){return 292}
  ChildClass2.prototype.method293=function(){return 293}
  ChildClass2.prototype.method294=function(){return 294}
  ChildClass2.prototype.method295=function(){return 295}
  ChildClass2.prototype.method296=function(){return 296}
  ChildClass2.prototype.method297=function(){return 297}
  ChildClass2.prototype.method298=function(){return 298}
  ChildClass2.prototype.method299=function(){return 299}
  ChildClass2.prototype.method300=function(){return 300}
  
  var ChildClass3=function(){}
  var tmpCtor=function(){};
  tmpCtor.prototype=BaseClass.prototype;
  ChildClass3.prototype=new tmpCtor();
  ChildClass3.prototype.method301=function(){return 301}
  ChildClass3.prototype.method302=function(){return 302}
  ChildClass3.prototype.method303=function(){return 303}
  ChildClass3.prototype.method304=function(){return 304}
  ChildClass3.prototype.method305=function(){return 305}
  ChildClass3.prototype.method306=function(){return 306}
  ChildClass3.prototype.method307=function(){return 307}
  ChildClass3.prototype.method308=function(){return 308}
  ChildClass3.prototype.method309=function(){return 309}
  ChildClass3.prototype.method310=function(){return 310}
  ChildClass3.prototype.method311=function(){return 311}
  ChildClass3.prototype.method312=function(){return 312}
  ChildClass3.prototype.method313=function(){return 313}
  ChildClass3.prototype.method314=function(){return 314}
  ChildClass3.prototype.method315=function(){return 315}
  ChildClass3.prototype.method316=function(){return 316}
  ChildClass3.prototype.method317=function(){return 317}
  ChildClass3.prototype.method318=function(){return 318}
  ChildClass3.prototype.method319=function(){return 319}
  ChildClass3.prototype.method320=function(){return 320}
  ChildClass3.prototype.method321=function(){return 321}
  ChildClass3.prototype.method322=function(){return 322}
  ChildClass3.prototype.method323=function(){return 323}
  ChildClass3.prototype.method324=function(){return 324}
  ChildClass3.prototype.method325=function(){return 325}
  ChildClass3.prototype.method326=function(){return 326}
  ChildClass3.prototype.method327=function(){return 327}
  ChildClass3.prototype.method328=function(){return 328}
  ChildClass3.prototype.method329=function(){return 329}
  ChildClass3.prototype.method330=function(){return 330}
  ChildClass3.prototype.method331=function(){return 331}
  ChildClass3.prototype.method332=function(){return 332}
  ChildClass3.prototype.method333=function(){return 333}
  ChildClass3.prototype.method334=function(){return 334}
  ChildClass3.prototype.method335=function(){return 335}
  ChildClass3.prototype.method336=function(){return 336}
  ChildClass3.prototype.method337=function(){return 337}
  ChildClass3.prototype.method338=function(){return 338}
  ChildClass3.prototype.method339=function(){return 339}
  ChildClass3.prototype.method340=function(){return 340}
  ChildClass3.prototype.method341=function(){return 341}
  ChildClass3.prototype.method342=function(){return 342}
  ChildClass3.prototype.method343=function(){return 343}
  ChildClass3.prototype.method344=function(){return 344}
  ChildClass3.prototype.method345=function(){return 345}
  ChildClass3.prototype.method346=function(){return 346}
  ChildClass3.prototype.method347=function(){return 347}
  ChildClass3.prototype.method348=function(){return 348}
  ChildClass3.prototype.method349=function(){return 349}
  ChildClass3.prototype.method350=function(){return 350}
  ChildClass3.prototype.method351=function(){return 351}
  ChildClass3.prototype.method352=function(){return 352}
  ChildClass3.prototype.method353=function(){return 353}
  ChildClass3.prototype.method354=function(){return 354}
  ChildClass3.prototype.method355=function(){return 355}
  ChildClass3.prototype.method356=function(){return 356}
  ChildClass3.prototype.method357=function(){return 357}
  ChildClass3.prototype.method358=function(){return 358}
  ChildClass3.prototype.method359=function(){return 359}
  ChildClass3.prototype.method360=function(){return 360}
  ChildClass3.prototype.method361=function(){return 361}
  ChildClass3.prototype.method362=function(){return 362}
  ChildClass3.prototype.method363=function(){return 363}
  ChildClass3.prototype.method364=function(){return 364}
  ChildClass3.prototype.method365=function(){return 365}
  ChildClass3.prototype.method366=function(){return 366}
  ChildClass3.prototype.method367=function(){return 367}
  ChildClass3.prototype.method368=function(){return 368}
  ChildClass3.prototype.method369=function(){return 369}
  ChildClass3.prototype.method370=function(){return 370}
  ChildClass3.prototype.method371=function(){return 371}
  ChildClass3.prototype.method372=function(){return 372}
  ChildClass3.prototype.method373=function(){return 373}
  ChildClass3.prototype.method374=function(){return 374}
  ChildClass3.prototype.method375=function(){return 375}
  ChildClass3.prototype.method376=function(){return 376}
  ChildClass3.prototype.method377=function(){return 377}
  ChildClass3.prototype.method378=function(){return 378}
  ChildClass3.prototype.method379=function(){return 379}
  ChildClass3.prototype.method380=function(){return 380}
  ChildClass3.prototype.method381=function(){return 381}
  ChildClass3.prototype.method382=function(){return 382}
  ChildClass3.prototype.method383=function(){return 383}
  ChildClass3.prototype.method384=function(){return 384}
  ChildClass3.prototype.method385=function(){return 385}
  ChildClass3.prototype.method386=function(){return 386}
  ChildClass3.prototype.method387=function(){return 387}
  ChildClass3.prototype.method388=function(){return 388}
  ChildClass3.prototype.method389=function(){return 389}
  ChildClass3.prototype.method390=function(){return 390}
  ChildClass3.prototype.method391=function(){return 391}
  ChildClass3.prototype.method392=function(){return 392}
  ChildClass3.prototype.method393=function(){return 393}
  ChildClass3.prototype.method394=function(){return 394}
  ChildClass3.prototype.method395=function(){return 395}
  ChildClass3.prototype.method396=function(){return 396}
  ChildClass3.prototype.method397=function(){return 397}
  ChildClass3.prototype.method398=function(){return 398}
  ChildClass3.prototype.method399=function(){return 399}
  ChildClass3.prototype.method400=function(){return 400}
  
  var ChildClass4=function(){}
  ChildClass4.prototype=Object.create(BaseClass.prototype);
  ChildClass4.prototype.method401=function(){return 401}
  ChildClass4.prototype.method402=function(){return 402}
  ChildClass4.prototype.method403=function(){return 403}
  ChildClass4.prototype.method404=function(){return 404}
  ChildClass4.prototype.method405=function(){return 405}
  ChildClass4.prototype.method406=function(){return 406}
  ChildClass4.prototype.method407=function(){return 407}
  ChildClass4.prototype.method408=function(){return 408}
  ChildClass4.prototype.method409=function(){return 409}
  ChildClass4.prototype.method410=function(){return 410}
  ChildClass4.prototype.method411=function(){return 411}
  ChildClass4.prototype.method412=function(){return 412}
  ChildClass4.prototype.method413=function(){return 413}
  ChildClass4.prototype.method414=function(){return 414}
  ChildClass4.prototype.method415=function(){return 415}
  ChildClass4.prototype.method416=function(){return 416}
  ChildClass4.prototype.method417=function(){return 417}
  ChildClass4.prototype.method418=function(){return 418}
  ChildClass4.prototype.method419=function(){return 419}
  ChildClass4.prototype.method420=function(){return 420}
  ChildClass4.prototype.method421=function(){return 421}
  ChildClass4.prototype.method422=function(){return 422}
  ChildClass4.prototype.method423=function(){return 423}
  ChildClass4.prototype.method424=function(){return 424}
  ChildClass4.prototype.method425=function(){return 425}
  ChildClass4.prototype.method426=function(){return 426}
  ChildClass4.prototype.method427=function(){return 427}
  ChildClass4.prototype.method428=function(){return 428}
  ChildClass4.prototype.method429=function(){return 429}
  ChildClass4.prototype.method430=function(){return 430}
  ChildClass4.prototype.method431=function(){return 431}
  ChildClass4.prototype.method432=function(){return 432}
  ChildClass4.prototype.method433=function(){return 433}
  ChildClass4.prototype.method434=function(){return 434}
  ChildClass4.prototype.method435=function(){return 435}
  ChildClass4.prototype.method436=function(){return 436}
  ChildClass4.prototype.method437=function(){return 437}
  ChildClass4.prototype.method438=function(){return 438}
  ChildClass4.prototype.method439=function(){return 439}
  ChildClass4.prototype.method440=function(){return 440}
  ChildClass4.prototype.method441=function(){return 441}
  ChildClass4.prototype.method442=function(){return 442}
  ChildClass4.prototype.method443=function(){return 443}
  ChildClass4.prototype.method444=function(){return 444}
  ChildClass4.prototype.method445=function(){return 445}
  ChildClass4.prototype.method446=function(){return 446}
  ChildClass4.prototype.method447=function(){return 447}
  ChildClass4.prototype.method448=function(){return 448}
  ChildClass4.prototype.method449=function(){return 449}
  ChildClass4.prototype.method450=function(){return 450}
  ChildClass4.prototype.method451=function(){return 451}
  ChildClass4.prototype.method452=function(){return 452}
  ChildClass4.prototype.method453=function(){return 453}
  ChildClass4.prototype.method454=function(){return 454}
  ChildClass4.prototype.method455=function(){return 455}
  ChildClass4.prototype.method456=function(){return 456}
  ChildClass4.prototype.method457=function(){return 457}
  ChildClass4.prototype.method458=function(){return 458}
  ChildClass4.prototype.method459=function(){return 459}
  ChildClass4.prototype.method460=function(){return 460}
  ChildClass4.prototype.method461=function(){return 461}
  ChildClass4.prototype.method462=function(){return 462}
  ChildClass4.prototype.method463=function(){return 463}
  ChildClass4.prototype.method464=function(){return 464}
  ChildClass4.prototype.method465=function(){return 465}
  ChildClass4.prototype.method466=function(){return 466}
  ChildClass4.prototype.method467=function(){return 467}
  ChildClass4.prototype.method468=function(){return 468}
  ChildClass4.prototype.method469=function(){return 469}
  ChildClass4.prototype.method470=function(){return 470}
  ChildClass4.prototype.method471=function(){return 471}
  ChildClass4.prototype.method472=function(){return 472}
  ChildClass4.prototype.method473=function(){return 473}
  ChildClass4.prototype.method474=function(){return 474}
  ChildClass4.prototype.method475=function(){return 475}
  ChildClass4.prototype.method476=function(){return 476}
  ChildClass4.prototype.method477=function(){return 477}
  ChildClass4.prototype.method478=function(){return 478}
  ChildClass4.prototype.method479=function(){return 479}
  ChildClass4.prototype.method480=function(){return 480}
  ChildClass4.prototype.method481=function(){return 481}
  ChildClass4.prototype.method482=function(){return 482}
  ChildClass4.prototype.method483=function(){return 483}
  ChildClass4.prototype.method484=function(){return 484}
  ChildClass4.prototype.method485=function(){return 485}
  ChildClass4.prototype.method486=function(){return 486}
  ChildClass4.prototype.method487=function(){return 487}
  ChildClass4.prototype.method488=function(){return 488}
  ChildClass4.prototype.method489=function(){return 489}
  ChildClass4.prototype.method490=function(){return 490}
  ChildClass4.prototype.method491=function(){return 491}
  ChildClass4.prototype.method492=function(){return 492}
  ChildClass4.prototype.method493=function(){return 493}
  ChildClass4.prototype.method494=function(){return 494}
  ChildClass4.prototype.method495=function(){return 495}
  ChildClass4.prototype.method496=function(){return 496}
  ChildClass4.prototype.method497=function(){return 497}
  ChildClass4.prototype.method498=function(){return 498}
  ChildClass4.prototype.method499=function(){return 499}
  ChildClass4.prototype.method500=function(){return 500}
  
  var ChildClass5=function(){}
  ChildClass5.prototype.__proto__=BaseClass.prototype;
  ChildClass5.prototype.method501=function(){return 501}
  ChildClass5.prototype.method502=function(){return 502}
  ChildClass5.prototype.method503=function(){return 503}
  ChildClass5.prototype.method504=function(){return 504}
  ChildClass5.prototype.method505=function(){return 505}
  ChildClass5.prototype.method506=function(){return 506}
  ChildClass5.prototype.method507=function(){return 507}
  ChildClass5.prototype.method508=function(){return 508}
  ChildClass5.prototype.method509=function(){return 509}
  ChildClass5.prototype.method510=function(){return 510}
  ChildClass5.prototype.method511=function(){return 511}
  ChildClass5.prototype.method512=function(){return 512}
  ChildClass5.prototype.method513=function(){return 513}
  ChildClass5.prototype.method514=function(){return 514}
  ChildClass5.prototype.method515=function(){return 515}
  ChildClass5.prototype.method516=function(){return 516}
  ChildClass5.prototype.method517=function(){return 517}
  ChildClass5.prototype.method518=function(){return 518}
  ChildClass5.prototype.method519=function(){return 519}
  ChildClass5.prototype.method520=function(){return 520}
  ChildClass5.prototype.method521=function(){return 521}
  ChildClass5.prototype.method522=function(){return 522}
  ChildClass5.prototype.method523=function(){return 523}
  ChildClass5.prototype.method524=function(){return 524}
  ChildClass5.prototype.method525=function(){return 525}
  ChildClass5.prototype.method526=function(){return 526}
  ChildClass5.prototype.method527=function(){return 527}
  ChildClass5.prototype.method528=function(){return 528}
  ChildClass5.prototype.method529=function(){return 529}
  ChildClass5.prototype.method530=function(){return 530}
  ChildClass5.prototype.method531=function(){return 531}
  ChildClass5.prototype.method532=function(){return 532}
  ChildClass5.prototype.method533=function(){return 533}
  ChildClass5.prototype.method534=function(){return 534}
  ChildClass5.prototype.method535=function(){return 535}
  ChildClass5.prototype.method536=function(){return 536}
  ChildClass5.prototype.method537=function(){return 537}
  ChildClass5.prototype.method538=function(){return 538}
  ChildClass5.prototype.method539=function(){return 539}
  ChildClass5.prototype.method540=function(){return 540}
  ChildClass5.prototype.method541=function(){return 541}
  ChildClass5.prototype.method542=function(){return 542}
  ChildClass5.prototype.method543=function(){return 543}
  ChildClass5.prototype.method544=function(){return 544}
  ChildClass5.prototype.method545=function(){return 545}
  ChildClass5.prototype.method546=function(){return 546}
  ChildClass5.prototype.method547=function(){return 547}
  ChildClass5.prototype.method548=function(){return 548}
  ChildClass5.prototype.method549=function(){return 549}
  ChildClass5.prototype.method550=function(){return 550}
  ChildClass5.prototype.method551=function(){return 551}
  ChildClass5.prototype.method552=function(){return 552}
  ChildClass5.prototype.method553=function(){return 553}
  ChildClass5.prototype.method554=function(){return 554}
  ChildClass5.prototype.method555=function(){return 555}
  ChildClass5.prototype.method556=function(){return 556}
  ChildClass5.prototype.method557=function(){return 557}
  ChildClass5.prototype.method558=function(){return 558}
  ChildClass5.prototype.method559=function(){return 559}
  ChildClass5.prototype.method560=function(){return 560}
  ChildClass5.prototype.method561=function(){return 561}
  ChildClass5.prototype.method562=function(){return 562}
  ChildClass5.prototype.method563=function(){return 563}
  ChildClass5.prototype.method564=function(){return 564}
  ChildClass5.prototype.method565=function(){return 565}
  ChildClass5.prototype.method566=function(){return 566}
  ChildClass5.prototype.method567=function(){return 567}
  ChildClass5.prototype.method568=function(){return 568}
  ChildClass5.prototype.method569=function(){return 569}
  ChildClass5.prototype.method570=function(){return 570}
  ChildClass5.prototype.method571=function(){return 571}
  ChildClass5.prototype.method572=function(){return 572}
  ChildClass5.prototype.method573=function(){return 573}
  ChildClass5.prototype.method574=function(){return 574}
  ChildClass5.prototype.method575=function(){return 575}
  ChildClass5.prototype.method576=function(){return 576}
  ChildClass5.prototype.method577=function(){return 577}
  ChildClass5.prototype.method578=function(){return 578}
  ChildClass5.prototype.method579=function(){return 579}
  ChildClass5.prototype.method580=function(){return 580}
  ChildClass5.prototype.method581=function(){return 581}
  ChildClass5.prototype.method582=function(){return 582}
  ChildClass5.prototype.method583=function(){return 583}
  ChildClass5.prototype.method584=function(){return 584}
  ChildClass5.prototype.method585=function(){return 585}
  ChildClass5.prototype.method586=function(){return 586}
  ChildClass5.prototype.method587=function(){return 587}
  ChildClass5.prototype.method588=function(){return 588}
  ChildClass5.prototype.method589=function(){return 589}
  ChildClass5.prototype.method590=function(){return 590}
  ChildClass5.prototype.method591=function(){return 591}
  ChildClass5.prototype.method592=function(){return 592}
  ChildClass5.prototype.method593=function(){return 593}
  ChildClass5.prototype.method594=function(){return 594}
  ChildClass5.prototype.method595=function(){return 595}
  ChildClass5.prototype.method596=function(){return 596}
  ChildClass5.prototype.method597=function(){return 597}
  ChildClass5.prototype.method598=function(){return 598}
  ChildClass5.prototype.method599=function(){return 599}
  ChildClass5.prototype.method600=function(){return 600}
  

};
</script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Inside constructor
var a = new ChildClass1();
pending…
Copy prototype with for
var a = new ChildClass2();
pending…
With temp Ctor
var a = new ChildClass3();
pending…
Object.create
var a = new ChildClass4();
pending…
__proto__
var a = new ChildClass5();
pending…

Compare results of other browsers

Revisions

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

0 Comments