Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
dfdsfsdfsssddsd
(version: 0)
Comparing performance of:
sdhiaughisedfgsdfg vs Ugh
Created:
6 years ago
by:
Guest
Jump to the latest result
Tests:
sdhiaughisedfgsdfg
function Foo() { this.level0 = 0; this.level1 = 0; this.level2 = 0; this.max = 1000; } Foo.prototype.run = function() { return this._runLevel0(); } Foo.prototype._runLevel0 = function() { if (this.level0 < this.max) { this.level0 += this._runLevel1() ? 0 : 1; return true; } else { this.level0 = 0; return false; } } Foo.prototype._runLevel1 = function() { if (this.level1 < this.max) { this.level1 += this._runLevel2() ? 0 : 1; return true; } else { this.level1 = 0; return false; } } Foo.prototype._runLevel2 = function() { if (this.level3 < this.max) { this.level3 += 1; return true; } else { this.level0 = 0; return false; } } let foo = []; let instances = 300; for (let i = 0; i < instances; i++) { foo.push(new Foo()); } console.log('Starting'); let result = true; while (result) { for (let j = 0; j < instances; j++) { result = foo[j].run(); } } console.log('Done');
Ugh
let inc = 0; let Foo = function() { let self = this; let level0 = 0; let level1 = 0; let level2 = 0; let max = 1000; function run() { return runLevel0(); } function runLevel0() { if (level0 < max) { level0 += runLevel1() ? 0 : 1; return true; } else { self.level0 = 0; return false; } } function runLevel1() { if (level1 < max) { level1 += runLevel2() ? 0 : 1; return true; } else { level1 = 0; return false; } } function runLevel2() { if (level2 < max) { level2 += 1; return true; } else { level0 = 0; return false; } } return { run: run } } let foo = []; let instances = 300; for (let i = 0; i < instances; i++) { foo.push(new Foo()); } console.log('Starting'); let result = true; while (result) { for (let j = 0; j < instances; j++) { result = foo[j].run(); } } console.log('Done');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
sdhiaughisedfgsdfg
Ugh
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:
Multi attributes
Multiple Attributes
Multiple Attributes II
Multiple Attributes Performance IV
Multiple Attributes III
Comments
Confirm delete:
Do you really want to delete benchmark?