Tests:
  • class

    AخA
     
    class Trig {
        static cos(z) {
          return Math.cos(z);
        }
        static sin(z) {
          return Math.sin(z);
        }
        static tan(z) {
          return Math.tan(z);
        }
        static cosh(z) {
          return Math.cosh(z);
        }
        static sinh(z) {
          return Math.sinh(z);
        }
        static tanh(z) {
          return Math.tanh(z);
        }
        static acos(z) {
          return Math.acos(z);
        }
        static asin(z) {
          return Math.asin(z);
        }
        static atan(z) {
          return Math.atan(z);
        }
        static acosh(z) {
          return Math.acosh(z);
        }
        static asinh(z) {
          return Math.asinh(z);
        }
        static atanh(z) {
          return Math.atanh(z);
        }
    }
  • functions

    x
     
    function cos(z) {
          return Math.cos(z);
        }
        function sin(z) {
          return Math.sin(z);
        }
        function tan(z) {
          return Math.tan(z);
        }
        function cosh(z) {
          return Math.cosh(z);
        }
        function sinh(z) {
          return Math.sinh(z);
        }
        function tanh(z) {
          return Math.tanh(z);
        }
        function acos(z) {
          return Math.acos(z);
        }
        function asin(z) {
          return Math.asin(z);
        }
        function atan(z) {
          return Math.atan(z);
        }
        function acosh(z) {
          return Math.acosh(z);
        }
        function asinh(z) {
          return Math.asinh(z);
        }
        function atanh(z) {
          return Math.atanh(z);
        }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    class
    functions

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91 on Windows
View result in a separate tab
Test name Executions per second
class 298332.7 Ops/sec
functions 992537408.0 Ops/sec