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
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
<p>7</p>
<p>8</p>
<p>9</p>
<p>10</p>
<p>11</p>
<p>12</p>
<p>13</p>
<p>14</p>
<p>15</p>
<p>16</p>
<p>17</p>
<p>18</p>
<p>19</p>
<p>20</p>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script>
var jq161 = jQuery.noConflict(true);
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
var jq182 = jQuery.noConflict(true);
jq182.fn.newEq = function( i ) {
var len = this.length,
j = i < 0 ? +i + len : +i;
return this.pushStack( j >= 0 && j < len && [ this[j] ] );
};
jq182.fn.simpleEq = function( i ) {
if (i < 0) i+= len;
return this.pushStack([this[i]]);
};
</script>
var grafs161 = jq161("p"),
grafs182 = jq182("p"),
grafsNew = jq182("p"),
grafsSimple = jq182("p");
Ready to run.
Test | Ops/sec | |
---|---|---|
1.6.1 .eq() |
| ready |
1.6.1 rewrap |
| ready |
1.8.2 .eq() |
| ready |
1.8.2 rewrap |
| ready |
New .eq() |
| ready |
simple |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.