Skip to content

Latest commit

 

History

History
51 lines (49 loc) · 4.81 KB

Test_BenchMark_Win_12900H.md

File metadata and controls

51 lines (49 loc) · 4.81 KB

GFloat Test And BenchMark

  • Test time : Sun Oct 23 14:01:00 2022
Operation System C++ Compiler version CPU Base Frequency
Windows 64-bit Visual Studio :1931 12th Gen Intel(R) Core(TM) i9-12900H 2.92 GHz or 2.9 GHz
  • Performance: float vs GFloat, Call 1000000 times
  • Error : the relative error between cmath (double) and GFloat Math
Function input data range avg relative error max relative error max abs error float vs GFloat float / GFloat
Add [ -10000.0, 10000.0] 0.000004 % 0.000024 % 0.003906 0.50 vs 5.95 (ms) 0.08
Sub [ -10000.0, 10000.0] 0.000004 % 0.000024 % 0.003906 0.47 vs 6.03 (ms) 0.08
Mul [ -10000.0, 10000.0] 0.000009 % 0.000024 % 16.000000 0.45 vs 1.19 (ms) 0.37
Div [ -10000.0, 10000.0] 0.000009 % 0.000024 % 0.031250 0.73 vs 2.32 (ms) 0.31
Ceil [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 6.37 vs 2.46 (ms) 2.59
Floor [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 6.44 vs 2.07 (ms) 3.11
Whole [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.42 vs 4.13 (ms) 0.10
WholeFrac [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.35 vs 6.71 (ms) 0.05
Fraction [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.34 vs 4.35 (ms) 0.08
-() [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.34 vs 0.94 (ms) 0.36
>() [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.42 vs 3.79 (ms) 0.11
<() [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.43 vs 7.61 (ms) 0.06
>=() [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.46 vs 7.43 (ms) 0.06
<=() [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.61 vs 4.33 (ms) 0.14
Abs [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.35 vs 4.88 (ms) 0.07
Normalize32 [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.35 vs 0.93 (ms) 0.37
Normalize64 [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.34 vs 0.89 (ms) 0.38
FromInt [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.42 vs 1.11 (ms) 0.38
Fromfloat [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 0.33 vs 0.47 (ms) 0.70
CeilToInt [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 5.66 vs 2.45 (ms) 2.31
FloorToInt [ -10000.0, 10000.0] 0.000000 % 0.000000 % 0.000000 6.65 vs 2.32 (ms) 2.86
Sin [ -10000.0, 10000.0] 0.000099 % 4.559921 % 0.000005 7.69 vs 6.73 (ms) 1.14
Cos [ -10000.0, 10000.0] 0.001805 % 0.122642 % 0.000028 8.21 vs 9.00 (ms) 0.91
Tan [ -10000.0, 10000.0] 0.001776 % 4.562861 % 83.726562 8.09 vs 15.87 (ms) 0.51
ASin [ -1.0, 1.0] 0.031373 % 100.000000 % 0.049958 6.94 vs 9.66 (ms) 0.72
ACos [ -1.0, 1.0] 0.117627 % 98.413861 % 0.049958 6.99 vs 13.53 (ms) 0.52
ATan [ -10000.0, 10000.0] 0.003567 % 0.036536 % 0.000166 8.57 vs 15.85 (ms) 0.54
ATan(10,x) [ -10000.0, 10000.0] 0.006190 % 0.021383 % 0.000166 10.84 vs 19.26 (ms) 0.56
ATan(x,10) [ -10000.0, 10000.0] 0.007318 % 0.230349 % 0.000166 10.72 vs 19.72 (ms) 0.54
Sqrt [ 0.0, 10000.0] 0.000034 % 0.000072 % 0.000061 0.63 vs 9.78 (ms) 0.06
InvSqrt [ 0.0, 10000.0] 0.000026 % 0.000062 % 0.000183 1.21 vs 7.58 (ms) 0.16
Exp [ -20.0, 20.0] 0.001689 % 0.050400 % 19056.000000 2.00 vs 8.75 (ms) 0.23
Pow2 [ -30.0, 30.0] 0.001820 % 0.050354 % 72448.000000 4.96 vs 5.99 (ms) 0.83
Log_e [ 0.0, 10000.0] 0.001206 % 86.225453 % 0.000031 2.67 vs 3.78 (ms) 0.71
Log_2 [ 0.0, 10000.0] 0.001206 % 86.225884 % 0.000043 19.78 vs 3.61 (ms) 5.49
Log_10 [ 0.0, 10000.0] 0.001206 % 86.224927 % 0.000013 2.93 vs 3.92 (ms) 0.75
Pow(1.7,x) [ -30.0, 30.0] 0.003042 % 0.049457 % 2121.500000 5.44 vs 18.85 (ms) 0.29
Pow(x,1.7) [ 0.6, 20.0] 0.006756 % 0.055199 % 0.015030 5.60 vs 19.13 (ms) 0.29
Fmod(x,1.7) [ -10000.0, 10000.0] 0.230497 % 99374.274554 % 1.699998 8.71 vs 11.31 (ms) 0.77
Fmod(1.7,x) [ -10000.0, 10000.0] 0.000582 % 46.261917 % 0.000001 3.59 vs 7.70 (ms) 0.47