join/concat (v50)

Revision 50 of this benchmark created on


Description

A simpler check for testing for concat vs join outside of a loop (not building a string in a loop, typical use case would be to use a var in the string).

Test runner

Ready to run.

Testing in
TestOps/sec
escape
var content = '<article class="module confirm-info">\
<div class="module-inner">\
<div class="module-jumbotron well">\
0002354669.2 <img class="confirmation-barcode" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAAABCAYAAAC7U74fAAAKN2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAACjPnZJ3VFPZFsbPvTe90BIindCboZcA0nuTIkUQlZgECCWEkNDEhogKjCgi0mzIqIADjo6AjBVRLAwICtgHZBBQxsFRRMXyEl1rdM2b9968+f4497f22fvcc/a3ASD5BvL4abAcAKl8kTDMx52+NDqGju0FMMADDLAAgMXOEAQt8Q4HEvl5edAzJEngiyAAXg1JVwBuMnxD6HTw/0meLRCKJMeESNiKw81gS7hAwilZIoE0PiNh6qpkKcMoKQslF5SwkpQTPvPCTzmf2VXKnFQ+R8LSOws4qRwpd0l4S6aYK2EkUMKFmTxuloRvSVg3RZzKk/BraW0ql5UBAIokjYu47EQJm0uYJAwP85DwIgBwpISveNVXLOJmi6SP8kgT5Ah5CYkiuiHbiG5hb8+k+3KzUrgiESOExU5mCTl0j7RUAYufA8DnN3+SgrS3dEmTbS3sbW0ZlqYWXzXqv27+TUm9/UwvQj95BtF6vsT+Ki+tDgDmrKQ327/EVlUB0LYJAKW7X2K6+wGQlfjW2vfVe2jSeUkUiQQOZmZZWVmmPC7bVNrQP/Q/E/6GvvqfqfS4P9pD9+TGs8QpIrq0b+y0lDSxkJ4hYLG5dMafh/gfF/71PRaGceO5Qi5fUhEpmTIeP0FiN5/DE/HS+HQe/z+Z+A/L/qTPcy0Rpf4DoK40BXJ9VID82gNQFCJAYvdKXf/Dt0B8JAiRfKM0Jz7P/SdB/34qXCpdMngJn+o8wsLpbLEw8/MeSrqgAQHIAipQBhpABxgCBrAEdsARuAIv4A+CQTiIBisAGySCVCAEWSAP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/MMjR8KOdDXYNTQ0qjWWNsFN4qapo7FHb3zn+V17M6P5QAutpfgYOCY+9uT7uO+Hjgcc7zzBPNH8g94PtScpJ4taodac1pm2xLaR9uj2/lP+pzo7HDtO/mj64+HTWqdrziieKT1LOFtw9uO53HOz5wXnpy8kXBjrXNl57+LSi7e6Qrt6LwVcunLZ+/LFbrfuc1ecrpy+6nD11DXmtbbrttdbe2x6Tv5k89PJXtve1j67vvYb9jc6+hf1nx1wGbhw0/Pm5Vt+t64PLh7sH4oYuj0cOzxym3N78k7Kned3M+/O31t/H32/6IHcg4qHag/rfjb6uWXEduTMqOdoz6Mlj+6Nscee/pLxy7vxgsfkxxUTmhMNk5aTp6e8p248WfZk/Kng6fx04a/yv9Y+M3z2w2+uv/XMLJ0Zfy58/vH3khfKLw6/tH7ZORsy+/BV6qv5uaLXyq+PvGG+6X4b9XZiPusd9l3le6P3HR8CPtz/mPrx478AA5jz/B4S2xMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEJJREFUKM+9j0EKACAIBOf/n54uHUJIjaKDKLjurADOYulxZrOPt37SZnoaHAtfmxlv8tv0rbQnf79iWPA63Iwt4ACDUFepS6kMhAAAAABJRU5ErkJggg==">\
</div>\
</div>\
</article>'
ready
concatonate
var content = '<article class="module confirm-info">' +
'<div class="module-inner">' +
'<div class="module-jumbotron well">' +
'0002354669.2 <img class="confirmation-barcode" ' +
'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAAABCAYAAAC7U74f' +
'AAAKN2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAACjPnZJ3VFPZFsbPvTe90BIindCboZc' +
'A0nuTIkUQlZgECCWEkNDEhogKjCgi0mzIqIADjo6AjBVRLAwICtgHZBBQxsFRRMXyEl1rdM' +
'2b9968+f4497f22fvcc/a3ASD5BvL4abAcAKl8kTDMx52+NDqGju0FMMADDLAA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b9jc6+hf1nx1wGbhw0/Pm5Vt+t64PLh' +
'7sH4oYuj0cOzxym3N78k7Kned3M+/O31t/H32/6IHcg4qHag/rfjb6uWXEduTMqOdoz6Mlj' +
'+6Nscee/pLxy7vxgsfkxxUTmhMNk5aTp6e8p248WfZk/Kng6fx04a/yv9Y+M3z2w2+uv/XM' +
'LJ0Zfy58/vH3khfKLw6/tH7ZORsy+/BV6qv5uaLXyq+PvGG+6X4b9XZiPusd9l3le6P3HR8' +
'CPtz/mPrx478AA5jz/B4S2xMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOp' +
'gAABdvkl/FRgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEJJREFUKM+9j0EKACAIBOf/n54uH' +
'UJIjaKDKLjurADOYulxZrOPt37SZnoaHAtfmxlv8tv0rbQnf79iWPA63Iwt4ACDUFepS6kM' +
'hAAAAABJRU5ErkJggg==">' +
'</div>' +
'</div>' +
'</article>'
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.