toUpperCase

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Build fn
const functionArgs = ['value']
const functionBody = 'return value[0].toUpperCase()'
const fn = new Function(...functionArgs, functionBody)

console.log(fn('Hello'))
ready
Native
function fn(value) {
  return value[0].toUpperCase()
}

console.log(fn('Hello'))
ready

Revisions

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