Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Reverse array comparison (short) 41767.4 Ops/sec
For loop early exit (short) 47084.6 Ops/sec
Reverse array comparison (long) 75462.4 Ops/sec
For loop early exit (long) 89476.1 Ops/sec
Smallest solution (short) 42897.4 Ops/sec
Smallest solution (long) 83139.5 Ops/sec
Tests:
  • Reverse array comparison (short)

  • For loop early exit (short)

  • Reverse array comparison (long)

  • For loop early exit (long)

  • Smallest solution (short)

  • Smallest solution (long)