Browse Source

Update: Benchmarks for ragel impl.

Leonardo Di Donato 8 years ago
parent
commit
4bd18bd89d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      performance_test.go

+ 1 - 1
performance_test.go

@@ -32,7 +32,7 @@ func BenchmarkParse(b *testing.B) {
 	for ii, tt := range benchs {
 		outcome := (map[bool]string{true: "ok", false: "no"})[tt.ok]
 		b.Run(
-			fmt.Sprintf("%s/%02d/%s/", outcome, ii, rxpad(tt.in, 45)),
+			fmt.Sprintf("%s/%02d/%s/", outcome, ii, rxpad(string(tt.in), 45)),
 			func(b *testing.B) {
 				for i := 0; i < b.N; i++ {
 					Parse(tt.in)