Script Preparation code:
Tests:
  • test1: php date(locutus.io)

  • test2: dayjs pattern

  • test3: momentjs pattern

  • reaplce1

  • reaplce1_1

  • reaplce1_2

  • reaplce1_3

  • reaplce2

  • reaplce2_3

  • test4: php date optimization

  • replace4

  • replace4_3

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    test1: php date(locutus.io)
    test2: dayjs pattern
    test3: momentjs pattern
    reaplce1
    reaplce1_1
    reaplce1_2
    reaplce1_3
    reaplce2
    reaplce2_3
    test4: php date optimization
    replace4
    replace4_3

    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/110.0.0.0 Safari/537.36 Edg/110.0.1587.63
Chrome 110 on Windows
View result in a separate tab
Test name Executions per second
test1: php date(locutus.io) 4350164.5 Ops/sec
test2: dayjs pattern 6022919.0 Ops/sec
test3: momentjs pattern 2650543.8 Ops/sec
reaplce1 1021804.1 Ops/sec
reaplce1_1 930802.8 Ops/sec
reaplce1_2 922573.4 Ops/sec
reaplce1_3 966256.4 Ops/sec
reaplce2 1534441.4 Ops/sec
reaplce2_3 1400723.8 Ops/sec
test4: php date optimization 7102287.5 Ops/sec
replace4 1780446.0 Ops/sec
replace4_3 1581903.9 Ops/sec