Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
shared method for poly
(version: 1)
Comparing performance of:
mono vs poly vs mono prop vs poly prop
Created:
one year ago
by:
Registered User
Jump to the latest result
Script Preparation code:
class A { constructor() { this.x = 1; this.y = 2; } get_x() { return this.x; } get_y() { return this.y; } } class B extends A { constructor() { super(); this.z = 3; } } var a = new A(); var b = new B();
Tests:
mono
a.get_x() + a.get_y()
poly
a.get_x() + b.get_y()
mono prop
a.x + a.y
poly prop
a.x + b.y
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
mono
poly
mono prop
poly prop
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!
Comments
Confirm delete:
Do you really want to delete benchmark?