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
Find translation of field
<script>
function findTranslation (data, i18nLanguage) {
//to map backend response
const languageID = i18nLanguage === 'en' ? 1 : '2';
if ( data.length > 0) {
const record = data.filter((item: any)=> item.language_id === languageID);
if (record.length > 0) {
return record[0]?.name;
}
else return null;
}
}
let data=[];
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
TEST 1 |
| ready |
TEST 2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.