Tests:
  • object parameter

    x
     
    var sprite = {a:1, b:2};
    function t(a) {
      return a.a + a.b;
    }
    t(sprite);
  • argument paramater

     
    var sprite = {a:1, b:2};
    function t(a, b) {
      return a + b;
    }
    t(sprite.a, sprite.b);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    object parameter
    argument paramater

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10 on Mac OS X 10.11.6
View result in a separate tab
Test name Executions per second
object parameter 49736788.0 Ops/sec
argument paramater 58233384.0 Ops/sec