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
let hit = {
id: '05211755-30',
score: 0.5,
document: { text: 'hello world', embedding: [ 1, 2, 3, 4, 4 ], number: 2 }
}
let searchResult = {
count: 20,
elapsed: { raw: 979855, formatted: '979μs' },
hits: [{
id: '05211755-29',
score: 0.5,
document: { text: 'hello world', embedding: [ 0, 41, 10, 39, 12 ], number: 1 }
},
]
};
let vectorProperties = []
for (let i = 0; i< 1000;i++) {
vectorProperties.push('embedding')
}
for (let i = 0; i< 1000;i++) {
searchResult.hits.push(hit)
}
Ready to run.
Test | Ops/sec | |
---|---|---|
old |
| ready |
new |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.