HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
lodash capitalize
8.9M/s
my own capalize
8.6M/s
View exact numbers
  • lodash capitalize: 8,870,134 ops/sec
  • my own capalize: 8,619,137 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 capitalize
    my own capalize

    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/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Chrome 134 on Windows
View result in a separate tab
my own capalize
23.6M/s
lodash capitalize
15.6M/s
View exact numbers
Test name Executions per second
my own capalize 23,586,286 Ops/sec
lodash capitalize 15,585,363 Ops/sec