Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test he vs current
(version: 5)
Comparing performance of:
current vs stripHtml and decode vs current clean text already vs stripHtml and decode clean text already
Created:
3 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/string-strip-html/dist/string-strip-html.umd.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
Tests:
current
var input = 'C&C Music Factory'; var doc = new DOMParser().parseFromString(input, 'text/html'); var res = _.get(doc, 'documentElement.textContent');
stripHtml and decode
var input = 'C&C Music Factory'; const result = stringStripHtml.stripHtml(input, {stripTogetherWithTheirContents: []}).result
current clean text already
var input = 'C Music Factory'; var doc = new DOMParser().parseFromString(input, 'text/html'); var res = _.get(doc, 'documentElement.textContent');
stripHtml and decode clean text already
var input = 'C Music Factory'; const result = stringStripHtml.stripHtml(input, {stripTogetherWithTheirContents: []}).result
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
current
stripHtml and decode
current clean text already
stripHtml and decode clean text already
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
lodash merge vs object.assign vs spread 4
Equals vs underscore vs lodash
Equals vs underscore vs lodash part 2
Underscore equal vs Lodash equal vs ===
Underscore equal vs Lodash equal vs === (version: 1)
Comments
Confirm delete:
Do you really want to delete benchmark?