Tests:
  • Manual assign

    AخA
     
    const a = {};
    a.b = 1;
    a.c = 1;
    a.d = 1;
    a.e = 1;
    a.f = 1;
    a.g = 1;
    a.h = 1;
    a.i = 1;
  • Object.assign

     
    const a = {};
    Object.assign(a, {
      b: 1,
      c: 1,
      d: 1,
      e: 1,
      f: 1,
      g: 1,
      h: 1,
      i: 1
    });
  • Direct

     
    const a = {
      b: 1,
      c: 1,
      d: 1,
      e: 1,
      f: 1,
      g: 1,
      h: 1,
      i: 1
    };
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Manual assign
    Object.assign
    Direct

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110 on Windows
View result in a separate tab
Test name Executions per second
Manual assign 1149072128.0 Ops/sec
Object.assign 5930204.5 Ops/sec
Direct 1161459840.0 Ops/sec