Test Failed
Pull Request — master (#119)
by Jordan
06:20
created

DecimalTrigBasicBench   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 25
c 1
b 0
f 0
dl 0
loc 73
rs 10
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A benchCos() 0 4 1
A benchCsc() 0 4 1
A benchTanh() 0 4 1
A benchSinh() 0 4 1
A benchCosh() 0 4 1
A benchCoth() 0 4 1
A benchCsch() 0 4 1
A benchSech() 0 4 1
A benchCot() 0 4 1
A benchTan() 0 4 1
A benchSec() 0 4 1
A benchSin() 0 4 1
1
<?php
2
3
4
namespace Samsara\Fermat\Values;
5
6
class DecimalTrigBasicBench
7
{
8
9
    public function benchSin()
10
    {
11
        $obj = new ImmutableDecimal(1);
12
        $obj->sin();
13
    }
14
15
    public function benchCos()
16
    {
17
        $obj = new ImmutableDecimal(1);
18
        $obj->cos();
19
    }
20
21
    public function benchTan()
22
    {
23
        $obj = new ImmutableDecimal(1);
24
        $obj->tan();
25
    }
26
27
    public function benchSec()
28
    {
29
        $obj = new ImmutableDecimal(1);
30
        $obj->sec();
31
    }
32
33
    public function benchCsc()
34
    {
35
        $obj = new ImmutableDecimal(1);
36
        $obj->csc();
37
    }
38
39
    public function benchCot()
40
    {
41
        $obj = new ImmutableDecimal(1);
42
        $obj->cot();
43
    }
44
45
    public function benchSinh()
46
    {
47
        $obj = new ImmutableDecimal(1);
48
        $obj->sinh();
49
    }
50
51
    public function benchCosh()
52
    {
53
        $obj = new ImmutableDecimal(1);
54
        $obj->cosh();
55
    }
56
57
    public function benchTanh()
58
    {
59
        $obj = new ImmutableDecimal(1);
60
        $obj->tanh();
61
    }
62
63
    public function benchSech()
64
    {
65
        $obj = new ImmutableDecimal(1);
66
        $obj->sech();
67
    }
68
69
    public function benchCsch()
70
    {
71
        $obj = new ImmutableDecimal(1);
72
        $obj->csch();
73
    }
74
75
    public function benchCoth()
76
    {
77
        $obj = new ImmutableDecimal(1);
78
        $obj->coth();
79
    }
80
81
}