Tests:
  • a

    x
     
    let target = {};
    let key = 'something';
    for (let i = 0; i < 1000; i++) {
        Object.defineProperty(target, key + i, {value: i});
    }
  • b

     
    let target = {};
    let key = 'something';
    for (let i = 0; i < 1000; i++) {
        target[key + i] = i;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    a
    b

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 25 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0
Firefox 137 on Linux
View result in a separate tab
Test name Executions per second
a 12473.7 Ops/sec
b 16879.5 Ops/sec