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://rawgithub.com/coreyti/showdown/master/src/showdown.js"></script>
<script src="https://rawgithub.com/chjj/marked/master/lib/marked.js"></script>
<script>
var md = [
"# lol",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.Minimalist Online Markdown Editor",
"=================================",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"Getting started",
"---------------",
"",
"### How?",
"",
"Just start typing in the left panel.",
"",
"### Buttons you might want to use",
"",
"- **Quick Reference**: that's a reminder of the most basic rules of Markdown",
"- **HTML | Preview**: *HTML* to see the markup generated from your Markdown text, *Preview* to see how it looks like",
"",
"### Privacy",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"- No data is sent to any server – everything you type stays in your browser",
"- The editor automatically saves what yoyou accidentally close it. ",
" If using a public computer, either empty the left panel before leaving the editor or use your browser's privacy mode",
"",
"---",
"",
"This is the **simplest** and **slickest** online Markdown editor. ",
"Just write Markdown and see what it looks like as you type. And convert it to HTML in one click.",
"",
"- Unordered list item",
"- Unordered list item",
"",
"First line. ",
"Second line.",
"",
"This is a link to [Google](http://www.google.com)",
"",
"First line. ",
"Second line.",
"",
"First line. ",
"Second line.",
"",
"First line. ",
"Second line.",
"",
"- Unordered list item",
"- Unordered list item",
"1. Ordered list item",
"2. Ordered list item",
"",
"",
" /* This is a code block */",
"",
" /* This is a code block */",
"",
"Let's talk about `<html>`!",
"",
" /* This is a code block */",
"",
"![Valid XHTML](http://w3.org/Icons/valid-xhtml10)",
"",
"![Valid XHTML](http://w3.org/Icons/valid-xhtml10)",
"",
"```",
"![Valid XHTML](http://w3.org/Icons/valid-xhtml10)",
"```",
"",
"Let's talk about `<html>`!",
"",
"perform_complicated_task ",
"do_this_and_do_that_and_another_thing",
"",
"http://example.com",
"",
"~~Mistaken text.~~",
"",
"```ruby",
"require 'redcarpet'",
"markdown = Redcarpet.new(\"Hello World!\")",
"puts markdown.to_html",
"```",
"",
"| Left-Aligned | Center Aligned | Right Aligned |",
"| :------------ |:---------------:| -----:|",
"| col 3 is | some wordy text | $1600 |",
"| col 2 is | centered | $12 |",
"| zebra stripes | are neat | $1 |",
"",
"First Header | Second Header",
"------------- | -------------",
"Content Cell | Content Cell",
"Content Cell | Content Cell"
].join("\n"),
showdownParser = new Showdown.converter().makeHtml,
markedParserClear = marked;
markedParserClear.setOptions({
gfm: false,
tables: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: false
});
markedParserGfm = marked;
markedParserGfm.setOptions({
gfm: true,
tables: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: false
});
markedParserTables = marked;
markedParserTables.setOptions({
gfm: false,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: false
});
markedParserBreaks = marked;
markedParserBreaks.setOptions({
gfm: false,
tables: false,
breaks: true,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: false
});
markedParserPedantic = marked;
markedParserPedantic.setOptions({
gfm: false,
tables: false,
breaks: false,
pedantic: true,
sanitize: false,
smartLists: false,
smartypants: false
});
markedParserSanitize = marked;
markedParserSanitize.setOptions({
gfm: false,
tables: false,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: false,
smartypants: false
});
markedParserSmartLists = marked;
markedParserSmartLists.setOptions({
gfm: false,
tables: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false
});
markedParserSmartypants = marked;
markedParserSmartypants.setOptions({
gfm: false,
tables: false,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: true
});
markedParserAll = marked;
markedParserAll.setOptions({
gfm: true,
tables: true,
breaks: true,
pedantic: true,
sanitize: true,
smartLists: true,
smartypants: true
});
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Showdown.js |
| ready |
markedParserClear |
| ready |
markedParserGfm |
| ready |
markedParserTables |
| ready |
markedParserBreaks |
| ready |
markedParserPedantic |
| ready |
markedParserSanitize |
| ready |
markedParserSmartLists |
| ready |
markedParserSmartypants |
| ready |
markedParserAll |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.