Script Preparation code:
Tests:
  • Boolean

  • x => !!x

  • x => x

  • delete + .flat

  • own - preserve length

  • own

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Boolean
    x => !!x
    x => x
    delete + .flat
    own - preserve length
    own

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36
Chrome 88 on Mac OS X 11.1.0
View result in a separate tab
Test name Executions per second
Boolean 73819.8 Ops/sec
x => !!x 147097.1 Ops/sec
x => x 220403.5 Ops/sec
delete + .flat 4068.7 Ops/sec
own - preserve length 11103.7 Ops/sec
own 10178.0 Ops/sec