HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.0/moment.min.js'></script>
Tests:
  • Moment

     
    moment().add(1, 'd');
  • Native

     
    new Date(new Date(new Date().toISOString()).getDate() + 1).toISOString();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Moment
    Native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118 on Linux
View result in a separate tab
Test name Executions per second
Moment 616712.4 Ops/sec
Native 297247.9 Ops/sec