Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Intl.Collator.compare() vs Intl.Collator.compare({numeric: true})
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Numeric: true
10.5M/s
Numeric: false
10.3M/s
View exact numbers
Test name
Executions per second
✓
Numeric: true
10,482,727 Ops/sec
Numeric: false
10,337,891 Ops/sec
Script Preparation code:
var a = "FOO BAR"; var b = "foo bar"; var nonNumeric = new Intl.Collator(undefined, { sensitivity: 'base', numeric: false, }); var numeric = new Intl.Collator(undefined, { sensitivity: 'base', numeric: true, });
Tests:
Numeric: false
nonNumeric.compare(a, b) === 0
Numeric: true
numeric.compare(a, b) === 0