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
<script>
if( true || !('registerElement' in document &&
'import' in document.createElement('link') &&
'content' in document.createElement('template'))){
document.write('<script src="http://rawgit.com/webcomponents/webcomponentsjs/0.5.5/webcomponents-lite.js"><\/script>');
}
</script>
<link href="http://rawgit.com/polymer/polymer/0.8-preview/polymer.html" rel="import">
<script src="http://dragon.ak.fbcdn.net/hphotos-ak-xfa1/t39.3284-6/11057105_812918198743996_1292411012_n.js"></script>
<dom-module id='my-polymer-el'>
<template>Polymer <span>{{text}}</span></template>
</dom-module>
<script>
Polymer({
is:'my-polymer-el',
properties:{
text:String
}
});
</script>
<my-polymer-el id='myPolymerEl'></my-polymer-el>
<div id='reactContainer'></div>
<script>
myPolymerEl.text = 'init';
var MyReactEl = React.createClass({
render:function(){
return React.createElement('span', null, 'ReactJS '+this.props.text);
}
});
React.render(
React.createElement(MyReactEl, {text:'init'}),
reactContainer
);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Polymer |
| ready |
React |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.