tile38/pkg/controller/json_test.go
Josh Baker 7e9871bb69 Refactor project layout
Move internal and support packages to pkg directory
2018-04-19 08:43:32 -07:00

21 lines
302 B
Go

package controller
import (
"encoding/json"
"testing"
)
func BenchmarkJSONString(t *testing.B) {
var s = "the need for mead"
for i := 0; i < t.N; i++ {
jsonString(s)
}
}
func BenchmarkJSONMarshal(t *testing.B) {
var s = "the need for mead"
for i := 0; i < t.N; i++ {
json.Marshal(s)
}
}