summaryrefslogtreecommitdiff
path: root/json/json_test.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-13 21:20:41 +1000
committerAdam Scarr <adam@vektah.net>2017-08-13 21:20:41 +1000
commit139e7606f4ab68b469438956c378745f51f7b65b (patch)
tree2eaa9cb87e008ecaffefc01c5da933f1ea9852dd /json/json_test.go
parent1c37779bd46d988c9e7b4bdb846b9daa89856b7c (diff)
Update benchmarks
Diffstat (limited to 'json/json_test.go')
-rw-r--r--json/json_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/json/json_test.go b/json/json_test.go
index f020a40..13f2e40 100644
--- a/json/json_test.go
+++ b/json/json_test.go
@@ -4,6 +4,8 @@ import (
stdlibJson "encoding/json"
"testing"
+ "os"
+
parsecJson "github.com/prataprc/goparsec/json"
"github.com/stretchr/testify/require"
"github.com/vektah/goparsify"
@@ -53,6 +55,7 @@ func BenchmarkUnmarshalParsec(b *testing.B) {
}
func BenchmarkUnmarshalParsify(b *testing.B) {
+ goparsify.EnableLogging(os.Stdout)
for i := 0; i < b.N; i++ {
_, err := Unmarshal(benchmarkString)
require.NoError(b, err)