Rename the Edit benchmarks
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 18 Feb 2020 08:44:55 +0000 (09:44 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 18 Feb 2020 08:45:21 +0000 (09:45 +0100)
To make them easier to filter out.

hugolib/site_benchmark_new_test.go

index a78df7ee9b522e8b0525fcd5164cd96278d13530..0fa6e991288088df31e920ce32f81e5da7f9564d 100644 (file)
@@ -386,7 +386,7 @@ func BenchmarkSiteNew(b *testing.B) {
                for _, bm := range benchmarks {
                        name := bm.name
                        if edit {
-                               name += "/Edit"
+                               name = "Edit_" + name
                        }
                        b.Run(name, func(b *testing.B) {
                                sites := make([]*sitesBuilder, b.N)