Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
Chrome 124
Windows
Desktop
8 months ago
Test name Executions per second
eval 3150822.2 Ops/sec
new Function 15910396.0 Ops/sec
mathjs 603780.9 Ops/sec
mathjs-chain 5333667.5 Ops/sec
native multiply 136988688.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • eval

  • new Function

  • mathjs

  • mathjs-chain

  • native multiply