From: Brad Fitzpatrick Date: Thu, 29 Aug 2013 20:55:30 +0000 (-0700) Subject: regexp: fix a benchmark case X-Git-Tag: go1.2rc2~385 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c4aa9c5c4ef32cdc65d29ac7e7cfa96fdbf7d394;p=gostls13.git regexp: fix a benchmark case I noticed that this one benchmark in particular was very noisy. Looking into it, I saw that the table was wrong and inconsistent with the lines above and below. R=golang-dev, crawshaw CC=golang-dev https://golang.org/cl/13393045 --- diff --git a/src/pkg/regexp/exec_test.go b/src/pkg/regexp/exec_test.go index 555e06e826..70d069c061 100644 --- a/src/pkg/regexp/exec_test.go +++ b/src/pkg/regexp/exec_test.go @@ -689,7 +689,7 @@ func BenchmarkMatchEasy1_1K(b *testing.B) { benchmark(b, easy1, 1<<10) } func BenchmarkMatchEasy1_32K(b *testing.B) { benchmark(b, easy1, 32<<10) } func BenchmarkMatchEasy1_1M(b *testing.B) { benchmark(b, easy1, 1<<20) } func BenchmarkMatchEasy1_32M(b *testing.B) { benchmark(b, easy1, 32<<20) } -func BenchmarkMatchMedium_32(b *testing.B) { benchmark(b, medium, 1<<0) } +func BenchmarkMatchMedium_32(b *testing.B) { benchmark(b, medium, 32<<0) } func BenchmarkMatchMedium_1K(b *testing.B) { benchmark(b, medium, 1<<10) } func BenchmarkMatchMedium_32K(b *testing.B) { benchmark(b, medium, 32<<10) } func BenchmarkMatchMedium_1M(b *testing.B) { benchmark(b, medium, 1<<20) }