to lower case

Benchmark created on


Setup

var companySearched = "SoMeThIng WiTh UppErCase"
var companies = new Array(100).fill('foo')

Test runner

Ready to run.

Testing in
TestOps/sec
inside iteration
companies.filter(c => {
	return c == companySearched.toLowerCase();
})
ready
before iteration
const companySearchedLower = companySearched.toLowerCase()
companies.filter(c => {
	return c == companySearchedLower;
})
ready

Revisions

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