Add benchmark inputs for math functions

Add benchmark inputs for inverse and hyperbolic trigonometric
functions and log.
This commit is contained in:
Siddhesh Poyarekar 2013-04-23 16:29:07 +05:30
parent 04453c5625
commit 051063c88b
11 changed files with 97 additions and 1 deletions

View File

@ -1,3 +1,17 @@
2013-05-22 Siddhesh Poyarekar <siddhesh@redhat.com>
* benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
tanh, asinh, acosh, atanh.
* benchtests/acos-inputs: New file.
* benchtests/acosh-inputs: New file.
* benchtests/asin-inputs: New file.
* benchtests/asinh-inputs: New file.
* benchtests/atanh-inputs: New file.
* benchtests/cosh-inputs: New file.
* benchtests/log-inputs: New file.
* benchtests/sinh-inputs: New file.
* benchtests/tanh-inputs: New file.
2013-05-21 Dmitry V. Levin <ldv@altlinux.org>
[BZ #15339]

View File

@ -19,7 +19,8 @@
# Makefile for benchmark tests. The only useful target here is `bench`.
subdir := benchtests
bench := exp pow rint sin cos tan atan modf
bench := exp pow log rint sin cos tan asin acos atan modf sinh cosh tanh \
asinh acosh atanh
exp-ARGLIST = double
exp-RET = double
@ -29,6 +30,10 @@ pow-ARGLIST = double:double
pow-RET = double
LDFLAGS-bench-pow = -lm
log-ARGLIST = double
log-RET = double
LDFLAGS-bench-log = -lm
rint-ARGLIST = double
rint-RET = double
LDFLAGS-bench-rint = -lm
@ -45,10 +50,42 @@ tan-ARGLIST = double
tan-RET = double
LDFLAGS-bench-tan = -lm
asin-ARGLIST = double
asin-RET = double
LDFLAGS-bench-asin = -lm
acos-ARGLIST = double
acos-RET = double
LDFLAGS-bench-acos = -lm
atan-ARGLIST = double
atan-RET = double
LDFLAGS-bench-atan = -lm
sinh-ARGLIST = double
sinh-RET = double
LDFLAGS-bench-sinh = -lm
cosh-ARGLIST = double
cosh-RET = double
LDFLAGS-bench-cosh = -lm
tanh-ARGLIST = double
tanh-RET = double
LDFLAGS-bench-tanh = -lm
asinh-ARGLIST = double
asinh-RET = double
LDFLAGS-bench-asinh = -lm
acosh-ARGLIST = double
acosh-RET = double
LDFLAGS-bench-acosh = -lm
atanh-ARGLIST = double
atanh-RET = double
LDFLAGS-bench-atanh = -lm
# Rules to build and execute the benchmarks. Do not put any benchmark

7
benchtests/acos-inputs Normal file
View File

@ -0,0 +1,7 @@
0.5
0.1
0.2
0.3
0.4
0.8
0.7

5
benchtests/acosh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5

7
benchtests/asin-inputs Normal file
View File

@ -0,0 +1,7 @@
0.5
0.1
0.2
0.3
0.4
0.8
0.7

5
benchtests/asinh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5

5
benchtests/atanh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5

5
benchtests/cosh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5

1
benchtests/log-inputs Normal file
View File

@ -0,0 +1 @@
42.0

5
benchtests/sinh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5

5
benchtests/tanh-inputs Normal file
View File

@ -0,0 +1,5 @@
0.1
0.2
0.3
0.4
0.5