Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
prototype function
(version: 0)
Comparing performance of:
c1.test(); vs c2.test();
Created:
9 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
function s(obj){} function C1() { this.c = 0; } C1.prototype.test = function () { this.c++; } function C2() { this.c = 0; this.test = function () { this.c++; } } var c1 = new C1(); var c2 = new C2();
Tests:
c1.test();
c1.test();
c2.test();
c2.test();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
c1.test();
c2.test();
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Fat Arrow
Fat Arrow
prototype function
Test checking of literal object types - v2
Comments
Confirm delete:
Do you really want to delete benchmark?