Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Benchmark test for sqrt function.
  • Loading branch information
Steve Ellcey committed Dec 2, 2013
1 parent 639a0ef commit fe7da22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchtests/Makefile
Expand Up @@ -21,7 +21,7 @@

subdir := benchtests
bench := acos acosh asin asinh atan atanh cos cosh exp log modf pow rint sin \
sincos sinh tan tanh
sincos sinh sqrt tan tanh

# String function benchmarks.
string-bench := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \
Expand Down Expand Up @@ -49,6 +49,7 @@ LDLIBS-bench-pow = -lm
LDLIBS-bench-rint = -lm
LDLIBS-bench-sin = -lm
LDLIBS-bench-sinh = -lm
LDLIBS-bench-sqrt = -lm
LDLIBS-bench-tan = -lm
LDLIBS-bench-tanh = -lm
LDLIBS-bench-sincos = -lm
Expand Down
10 changes: 10 additions & 0 deletions benchtests/sqrt-inputs
@@ -0,0 +1,10 @@
## args: double
## ret: double
## includes: math.h
0.25
0.75
2.0
4.0
2209.0
6642.25
15190.5625

0 comments on commit fe7da22

Please sign in to comment.