IF Vs || inline equal

Benchmark created by Ali on


Test runner

Ready to run.

Testing in
TestOps/sec
IF
var a='asd';
var b='zxczxc';
var c
var e

if (a)
{
e=a
}
if (b)
{
e=b
}
if (c)
{
e=c
}
ready
Inline
var a="asd",b="zxczxc",c,e;a&&(e=a),b&&(e=b),c&&(e=c)
ready

Revisions

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