coercion

Benchmark created by Tony on


Description

Test if coercion is faster or slower

Test runner

Ready to run.

Testing in
TestOps/sec
empty string
if (!"") {
  true;
}
ready
empty string comparison
if ("" != true) {
  true;
}
ready
null
if (!null) {
  true;
}
ready
null comparison
if (null != true) {
  true;
}
ready
empty string equality
if ("" !== true) {
  true;
}
ready
null equality
if (null !== true) {
  true;
}
ready

Revisions

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