Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
eval 3176357.2 Ops/sec
new Function 7507110.0 Ops/sec
mathjs 64609.1 Ops/sec
mathjs-chain 922998.1 Ops/sec
native multiply 28904846.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • eval

  • new Function

  • mathjs

  • mathjs-chain

  • native multiply