typeof v try

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
typeof
if (typeof foo == 'undefined') foo = {}
ready
try
try {
 foo
} catch (e) {
 foo = {}
}
ready

Revisions

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