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 src="https://raw.github.com/gist/1342599/cd146576d84133ef260dca195804865e37da90ba/alea.js"></script>
<script src="https://raw.github.com/gist/1342599/76b04861a56ad22b076cf39a12fe4c91614615d7/kiss07.js"></script>
<script src="https://raw.github.com/gist/1342599/b832b0e522e72de0a932e2f4567e31336ceeec84/kybos.js"></script>
<script src="https://raw.github.com/gist/1342599/b3997929765c9f8bca5281bc0d32a753b2738eb5/lfib.js"></script>
<script src="https://raw.github.com/gist/1342599/a4a5a532601ad511a9841ab0ec60448dae4fd7c1/lfib4.js"></script>
<script src="https://raw.github.com/gist/1342599/5c6667bb9aca9228836eae19d0684647bbdc65c5/mash.js"></script>
<script src="https://raw.github.com/gist/1342599/f104ec805a7a1221fff055e6b7daaa452f86eda6/mrg32k3a.js"></script>
<script src="https://raw.github.com/gist/1342599/3a54bf50924a53154f99370e343feeddad2b601b/xorshift03.js"></script>
<script src="https://raw.github.com/chr15m/jsGameSoup/master/js/random.js"></script>
<script src="https://raw.github.com/gist/300494/f003af3e59a164330da573202f2372b94eb8ae47/mersenne-twister.js"></script>
var seed = +new Date(),
aleaGen = Alea(seed),
kiss07Gen = KISS07(seed),
kybosGen = Kybos(seed),
lfibGen = LFib(seed),
lfib4Gen = LFIB4(seed),
mrg32k3aGen = MRG32k3a(seed),
xorshift3Gen = Xorshift03(seed),
seedableRandomGen = new SeedableRandom(),
mersenneTwisterGen = new MersenneTwister()
seedableRandomGen.seed(seed);
var x = 0;
window.x = x;
Ready to run.
Test | Ops/sec | |
---|---|---|
alea |
| ready |
KISS07 |
| ready |
Kybos |
| ready |
LFib |
| ready |
LFIB4 |
| ready |
MRG32k3a |
| ready |
Xorshift3 |
| ready |
SeedableRandom |
| ready |
MersenneTwister |
| ready |
Math.random() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.