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
const documents = [
{
amount: "100",
expectedTime: "30 minutes",
dateSigned: "2023-01-15T10:20:30.000Z"
},
{
amount: "200",
expectedTime: "45 minutes",
dateSigned: "2023-05-22T14:50:00.000Z"
},
{
amount: "150",
expectedTime: "60 minutes",
dateSigned: "2023-08-10T08:15:45.000Z"
},
{
amount: "250",
expectedTime: "90 minutes",
dateSigned: "2023-11-30T16:40:20.000Z"
},
{
amount: "300",
expectedTime: "120 minutes",
dateSigned: "2024-02-18T12:00:00.000Z"
},
{
amount: "350",
expectedTime: "150 minutes",
dateSigned: "2024-03-10T09:30:00.000Z"
},
{
amount: "400",
expectedTime: "180 minutes",
dateSigned: "2024-04-25T11:45:00.000Z"
},
{
amount: "450",
expectedTime: "210 minutes",
dateSigned: "2024-05-15T14:20:00.000Z"
},
{
amount: "500",
expectedTime: "240 minutes",
dateSigned: "2024-06-05T16:55:00.000Z"
},
{
amount: "550",
expectedTime: "270 minutes",
dateSigned: "2024-07-20T18:30:00.000Z"
}
]
const currentDate = new Date();
let hasDocumentsSignedBeforeLimitDate = false;
Ready to run.
Test | Ops/sec | |
---|---|---|
_forEach |
| ready |
for |
| ready |
for with breakers |
| ready |
for w/ breakers (improved) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.