String comparison

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
plain equal
'blag' == 'blag'
ready
plain not equal
'blag' == 'zang'
ready
fallback equal
'blag' == 'blag' || decodeURIComponent('blag') == decodeURIComponent('blag')
ready
fallback not equal
'blag' == 'zang' || decodeURIComponent('blag') == decodeURIComponent('zang')
ready
fallback equal decodable
'blag' == '%20blag' || decodeURIComponent('blag') == decodeURIComponent('%20blag')
ready
always decode equal
decodeURIComponent('blag') == decodeURIComponent('blag')
ready
always decode not equal
decodeURIComponent('blag') == decodeURIComponent('zang')
ready
always decode equal decodable
decodeURIComponent('blag') == decodeURIComponent('%20blag')
ready

Revisions

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