z_all_stdlib_bench_test.go 825 B

1234567891011121314151617181920212223
  1. // +build alltests
  2. // +build go1.7
  3. // +build !generated
  4. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  5. // Use of this source code is governed by a MIT license found in the LICENSE file.
  6. package codec
  7. import "testing"
  8. func benchmarkStdlibGroup(t *testing.B) {
  9. benchmarkDivider()
  10. t.Run("Benchmark__Std_Json___Encode", Benchmark__Std_Json___Encode)
  11. t.Run("Benchmark__Gob________Encode", Benchmark__Gob________Encode)
  12. // t.Run("Benchmark__Std_Xml____Encode", Benchmark__Std_Xml____Encode)
  13. benchmarkDivider()
  14. t.Run("Benchmark__Std_Json___Decode", Benchmark__Std_Json___Decode)
  15. t.Run("Benchmark__Gob________Decode", Benchmark__Gob________Decode)
  16. // t.Run("Benchmark__Std_Xml____Decode", Benchmark__Std_Xml____Decode)
  17. }
  18. func BenchmarkStdlibSuite(t *testing.B) { benchmarkSuite(t, benchmarkStdlibGroup) }