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
Snarkdown is fast.
<!-- snarkdown -->
<script src="https://rawgit.com/developit/snarkdown/master/snarkdown.js"></script>
<!-- commonmark.js -->
<script src="https://spec.commonmark.org/js/commonmark.js"></script>
<script>
function _commonmark(md) {
var parsed = _commonmark.reader.parse(md);
return _commonmark.writer.render(parsed);
}
_commonmark.writer = new commonmark.HtmlRenderer();
_commonmark.reader = new commonmark.Parser();
</script>
<textarea id="md" readonly>
Markdown Parser
===============
*[Snarkdown](http://github.com/developit/snarkdown)* is __easy__ to `use`.
[Example Link](#example)
Two newlines creates a line break.
Or, end a line with two spaces.
Just like that!
Code & Poetry
-------------
You can also indent
blocks to display
code or poetry.
Indented code/poetry blocks
can be hard-wrapped.
*Or, wrap your code in three backticks:*
```JavaScript
function codeBlocks() {
return 'Can be inserted';
}
```
### Block Quotes
> You can insert quotes by
> preceeding each line with `>`.
>
> Blockquotes can also contain line
> breaks.
## Lists
- Unordered
* Lists
+ Of mixed type
1. Ordered
2. Lists
4. Numbers are ignored
</textarea>
var md = document.getElementById('md').value,
html;
Ready to run.
Test | Ops/sec | |
---|---|---|
Snarkdown |
| ready |
CommonMark |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.