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
TaffyDB as well as LinqJs offer some added functionalities for javascript-arrays. Here is the performance-comparison!
<script src="//cdnjs.cloudflare.com/ajax/libs/linq.js/2.2.0.2/linq.min.js"></script>
<script src="http://f0e43e0449ff85b5a83a-8d88610b03123726d01e576fafeaf9d4.r60.cf2.rackcdn.com/taffy-min.js"></script>
var entries = 1000;
var range = 100;
var taffyData = TAFFY([]);
for (var i = 0; i < entries; i++) {
taffyData.insert({
id: i,
value: i + ""
});
}
var linqArray = [];
for (var i = 0; i < entries; i++) {
linqArray.push({
id: i,
value: i + ""
});
}
var linqData = Enumerable.From(linqArray);
Ready to run.
Test | Ops/sec | |
---|---|---|
TaffyDB add records |
| ready |
LinqJS add records |
| ready |
TaffyDB find by id |
| ready |
Linq find by id |
| ready |
TaffyDB get range |
| ready |
Linq get range |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.