Script Preparation code:
AخA
 
function calc(x, y, z) {
    return Math.sqrt(x**2 + y**2 + z**2);
}
Tests:
  • Normal

    x
     
    for (var i = 0; i < 100; i++) {
      var a = 1;
      var b = 2;
      var c = 2.1;
      calc(a, b, c);
    }
  • Normal 2

     
    for (var i = 0; i < 100; i++) {
    var a = 1,
        b = 2,
        c = 2.1;
      calc(a, b, c);
    }
  • Associative array

     
    for (var i = 0; i < 100; i++) {
      var t = {
        a: 1,
        b: 2,
        c: 2.1
      }
      calc(t.a, t.b, t.c);
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Normal
    Normal 2
    Associative array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2025 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36
Chrome 64 on Linux
View result in a separate tab
Test name Executions per second
Normal 41839.4 Ops/sec
Normal 2 45047.2 Ops/sec
Associative array 46040.7 Ops/sec