HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
native nullish operation
169.5M/s
lodash defaulTo
133.5M/s

Fastest: native nullish operation (1.3x faster)

View exact numbers
  • native nullish operation: 169,453,296 ops/sec
  • lodash defaulTo : 133,532,864 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
    lodash defaulTo
    native nullish operation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Windows
View result in a separate tab
native nullish operation
148.2M/s
lodash defaulTo
133.5M/s
View exact numbers
Test name Executions per second
native nullish operation 148,188,384 Ops/sec
lodash defaulTo 133,532,864 Ops/sec