Run details:
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
Windows
Desktop
one year ago
Test name Executions per second
test1: php date(locutus.io) 4314103.0 Ops/sec
test2: dayjs pattern 6138306.0 Ops/sec
test3: momentjs pattern 2684309.2 Ops/sec
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


;