Script Preparation code:
AخA
 
var data = {
    id: 1,
    a: 1,
    b: '',
    c: '',
    d: false,
    e: '',
    f: 1,
    g: {
        h: 1,
        i: 'Dannag'
    },
    k: 1,
    l: 1,
}
Tests:
  • Property access

     
    let result = 0;
    for (const property in data) {
      if (typeof data[property] === 'number' && Number.isInteger(data[property])) {
        result += data[property];
      }
    }
  • Pointer

     
    let result = 0;
    for (const property in data) {
      const value = data[property]; 
      if (typeof value === 'number' && Number.isInteger(value)) {
        result += value;
      }
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Property access
    Pointer

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114 on Linux
View result in a separate tab
Test name Executions per second
Property access 527483.3 Ops/sec
Pointer 805046.2 Ops/sec