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 item = { name: 'item', unitPrice: 123, imageHost: 'https://google.com', imagePath: '/image.png' }
const fn1 = ({ name, unitPrice: price, imageHost, imagePath }) => ({
name,
price,
image: `https://${imageHost}${imagePath}`,
})
const fn2 = (item) => ({
name: item.name,
price: item.unitPrice,
image: `https://${item.imageHost}${item.imagePath}`,
})
const fn3 = ({ name, unitPrice: price, imageHost, imagePath }) => ({
name,
price,
image: 'https://' + imageHost + imagePath,
})
Ready to run.
Test | Ops/sec | |
---|---|---|
fn1 |
| ready |
fn2 |
| ready |
fn3 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.