summaryrefslogtreecommitdiff
path: root/src/pkg/math/all_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/all_test.go')
-rw-r--r--src/pkg/math/all_test.go18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/pkg/math/all_test.go b/src/pkg/math/all_test.go
index 9a4801b00..18a3f1b31 100644
--- a/src/pkg/math/all_test.go
+++ b/src/pkg/math/all_test.go
@@ -2343,9 +2343,9 @@ func BenchmarkExp2(b *testing.B) {
}
}
-func BenchmarkFloor(b *testing.B) {
+func BenchmarkFabs(b *testing.B) {
for i := 0; i < b.N; i++ {
- Floor(.5)
+ Fabs(.5)
}
}
@@ -2355,6 +2355,12 @@ func BenchmarkFdim(b *testing.B) {
}
}
+func BenchmarkFloor(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ Floor(.5)
+ }
+}
+
func BenchmarkFmax(b *testing.B) {
for i := 0; i < b.N; i++ {
Fmax(10, 3)
@@ -2445,15 +2451,15 @@ func BenchmarkLogb(b *testing.B) {
}
}
-func BenchmarkLog10(b *testing.B) {
+func BenchmarkLog1p(b *testing.B) {
for i := 0; i < b.N; i++ {
- Log10(.5)
+ Log1p(.5)
}
}
-func BenchmarkLog1p(b *testing.B) {
+func BenchmarkLog10(b *testing.B) {
for i := 0; i < b.N; i++ {
- Log1p(.5)
+ Log10(.5)
}
}