Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Chrome 61
Windows
Other
7 years ago
Test name Executions per second
Trunc Mat 1109931.1 Ops/sec
Trunc 2994319.8 Ops/sec
dosDecimales 4500434.5 Ops/sec
trunc_fixed 2513560.8 Ops/sec
trunc_pows 1303626.4 Ops/sec
quick_pows 4068440.2 Ops/sec
Script Preparation code:
Tests:
  • Trunc Mat

  • Trunc

  • dosDecimales

  • trunc_fixed

  • trunc_pows

  • quick_pows