Tests:
  • 1

    AخA
     
    function t() {
      const h = {
        a: null,
        b: null,
      };
      
      h.a = Math.random();
      h.b = Math.floor(Math.random() * 1200);
      
      return h;
      
    }
  • 2

     
    function t() {
      const a = Math.random();
      const b = Math.flooe(Math.random() * 1200);
      
      return { a, b };
      
    }
  • 3

     
    function t() {
      const h = {
        a: null,
        b: null,
      };
      
      a = Math.random();
      b = Math.floor(Math.random() * 1200);
      
      return Object.assign(h, {a,b});
      
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    1
    2
    3

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Android 10; Mobile; rv:85.0) Gecko/85.0 Firefox/85.0
Firefox Mobile 85 on Android
View result in a separate tab
Test name Executions per second
1 517653984.0 Ops/sec
2 529162592.0 Ops/sec
3 532078112.0 Ops/sec