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
For shorter words, no \b is better than some: https://jsperf.app/kelizi , or so I guess. So now here's a real word "неземной" + a real text.
Compare \b[Нн]еземной\b (strict whole-word match) vs [Нн]еземной (substring match) in a dictionary entry.
// Preparation JS
const text = `
Значение слова «неземной»
НЕЗЕМНО́Й, -а́я, -о́е.
1. Находящийся вне Земли... неземные тела...
2. Трад.-поэт. Потусторонний... неземной...
|| перен. Чуждый всего... неземного...
Источник: Словарь русского языка...
НЕЗЕМНО'Й, а́я, о́е... некто неземной...
`;Ready to run.
| Test | Ops/sec | |
|---|---|---|
| With word boundaries | | ready |
| Without word boundaries | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.