Script Preparation code:
AخA
 
var dateStr = "2021-08-10T06:00:00.000Z"
Tests:
  • split

     
    [yyyy,mm,dd,hh,mi] = dateStr.split(/[/:\-T]/)
    const result =`${dd}/${mm}/${yyyy}, ${hh}:${mi}`
  • Date toLocaleString

     
    const result = new Date(dateStr).toLocaleString("en-GB")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    split
    Date toLocaleString

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month 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
Test name Executions per second
split 486875.7 Ops/sec
Date toLocaleString 237853.8 Ops/sec