jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Testing widely used inheritance libraries against Fiber.js and native javascript
<script>
this.Tk = {
compose: function(base, definition) {
if (arguments.length < 2) {
definition = base;
base = {};
} else {
base = base.__base__;
}
definition = definition(base);
var properties = Object.keys(base);
var i = 0;
var property;
var length = properties.length;
for (; i < length; i++) {
property = properties[i];
if (definition.hasOwnProperty(property) === true) {
continue;
}
definition[property] = base[property];
}
function Struct() {
var instance = Object.create(definition);
if (definition.hasOwnProperty('init')) {
instance.init.apply(null, arguments);
}
return instance;
}
Struct.__base__ = definition;
return Struct;
}
};
</script>
<script src="http://kiro.me/temp/fiber.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Fiber.js |
| ready |
Fiber.js (rewrite) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.