Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
static class vs functions
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Goanna/6.8 Firefox/128.0 PaleMoon/33.9.1
Browser:
Pale Moon (Firefox Variant) 33
Operating system:
Windows
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
class
61636.6 Ops/sec
functions
2139480960.0 Ops/sec
Tests:
class
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
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); }