Test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Test 1
const gg = "application/json";
for (let i = 0; i < 50000; i++) {
	console.log(gg.indexOf("application/json") !== -1)
}
ready
Test 2
const gg = "application/json";
for (let i = 0; i < 50000; i++) {
	console.log(gg[0] === "a")
}
ready

Revisions

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