Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Cache toLowerCase() for string compare
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Browser:
Chrome 143
Operating system:
Windows
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
lowerCase
155903920.0 Ops/sec
cache
153746672.0 Ops/sec
cache Indexed
158372224.0 Ops/sec
input
155742496.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var input = "Hello" var value = input.toLowerCase() var variable0 = "heLLo"; var variable1 = "Hell0"; var cache0 = variable0.toLowerCase() var cache1 = variable1.toLowerCase() var cache = { variable0: variable0.toLowerCase(), variable1: variable1.toLowerCase() }
Tests:
lowerCase
value == variable0.toLowerCase() value == variable1.toLowerCase()
cache
value == cache0 value == cache1
cache Indexed
value == cache.variable0 value == cache.variable1
input
input.toLowerCase() == variable0.toLowerCase() input.toLowerCase() == variable1.toLowerCase()