Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Testsasd21
(version: 0)
d21d12d12
Comparing performance of:
trim vs replaceAll
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
acceptEncodingHeader = 'gzip, deflate, br'
Tests:
trim
const acceptableEncodings = new Set(acceptEncodingHeader.toLowerCase().split(',').map(str => str.trim()))
replaceAll
const acceptableEncodings = new Set(acceptEncodingHeader.toLowerCase().replaceAll(' ', '').split(','))
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
trim
replaceAll
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:
compression libraries
zlib compatible compression libraries comparison
js compression (inflateRaw) libraries
zlib compatible compression libraries comparison - pako vs fflate
Comments
Confirm delete:
Do you really want to delete benchmark?