ternary operator vs. if statement (v9)

Revision 9 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
ternary operator
window && alert(true);
ready
if statement
if (window) alert(true);
ready

Revisions

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