Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
closure get
28.2M/s
symbol incr
28.0M/s
closure incr
27.6M/s
weakmap get
13.1M/s
weakmap incr
8.4M/s

Fastest: closure get (3.4x faster)

View exact numbers
  • closure get: 28,150,444 ops/sec
  • symbol incr: 28,029,070 ops/sec
  • closure incr: 27,556,226 ops/sec
  • weakmap get: 13,089,012 ops/sec
  • weakmap incr: 8,385,952 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    closure get
    weakmap get
    closure incr
    weakmap incr
    symbol incr

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Mac OS X 10.15.7
View result in a separate tab
closure get
100.6M/s
symbol incr
98.4M/s
closure incr
90.4M/s
weakmap get
55.1M/s
weakmap incr
39.7M/s
View exact numbers
Test name Executions per second
closure get 100,550,352 Ops/sec
symbol incr 98,401,080 Ops/sec
closure incr 90,378,728 Ops/sec
weakmap get 55,057,148 Ops/sec
weakmap incr 39,708,256 Ops/sec