toLowerCase vs toLocaleLowerCase

Benchmark created on


Setup

const shortString = "Hello World!";
const longString = "The quick brown fox jumps over the lazy dog.".repeat(1000);

Test runner

Ready to run.

Testing in
TestOps/sec
toLocaleLowerCase
shortString.toLocaleLowerCase();
longString.toLocaleLowerCase();
ready
toLowerCase
shortString.toLowerCase();
longString.toLowerCase();
ready

Revisions

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