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
<script src="https://cdn.jsdelivr.net/npm/string-strip-html/dist/string-strip-html.umd.js"></script>
const { stripHtml } = stringStripHtml;
const html = "<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><title>Basic HTML Example</title></head><body><h1>This is a Heading</h1><p>This is a paragraph of text. It can contain multiple lines.</p><p>This is another paragraph.</p><a href='https://www.example.com'>This is a link to example.com</a><img src='image.jpg'alt='An example image'><ul><li>Item one</li><li>Item two</li><li>Item three</li></ul><ol> <li>First item</li><li>Second item</li> </ol><pre>This is preformatted text.It preserves spaces and line breaks.</pre><br><hr> <small>This is small text.</small><p><b>This is bold text.</b></p><p><i>This is italic text.</i></p><p><strong>This is strong text.</strong></p> <p><em>This is emphasized text.</em></p> <p><mark>This is marked text.</mark></p></body></html>';"Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Without \n regex | | ready |
| With \n regex | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.