function-test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
condition
var condition_test = 1;
var method_call = function(params) {
    console.log(params.param);
    };

if (/Android/.test(navigator.userAgent) && condition_test == 0) {
  method_call({
    param: 'called'
  });
}
ready
no condition
var condition_test = 1;
var method_call = function(params) {
    if (/Android/.test(navigator.userAgent) && condition_test == 0) {
      console.log(params.param);
    }
    };

method_call({
  param: 'called'
});
ready

Revisions

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