z_all_x_bench_gen_test.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // +build alltests
  2. // +build go1.7
  3. // +build x
  4. // +build generated
  5. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  6. // Use of this source code is governed by a MIT license found in the LICENSE file.
  7. package codec
  8. // see notes in z_all_bench_test.go
  9. import "testing"
  10. func benchmarkCodecXGenGroup(t *testing.B) {
  11. benchmarkDivider()
  12. t.Run("Benchmark__Msgpack____Encode", Benchmark__Msgpack____Encode)
  13. t.Run("Benchmark__Binc_______Encode", Benchmark__Binc_______Encode)
  14. t.Run("Benchmark__Simple_____Encode", Benchmark__Simple_____Encode)
  15. t.Run("Benchmark__Cbor_______Encode", Benchmark__Cbor_______Encode)
  16. t.Run("Benchmark__Json_______Encode", Benchmark__Json_______Encode)
  17. t.Run("Benchmark__Msgp_______Encode", Benchmark__Msgp_______Encode)
  18. t.Run("Benchmark__Easyjson___Encode", Benchmark__Easyjson___Encode)
  19. t.Run("Benchmark__Ffjson_____Encode", Benchmark__Ffjson_____Encode)
  20. benchmarkDivider()
  21. t.Run("Benchmark__Msgpack____Decode", Benchmark__Msgpack____Decode)
  22. t.Run("Benchmark__Binc_______Decode", Benchmark__Binc_______Decode)
  23. t.Run("Benchmark__Simple_____Decode", Benchmark__Simple_____Decode)
  24. t.Run("Benchmark__Cbor_______Decode", Benchmark__Cbor_______Decode)
  25. t.Run("Benchmark__Json_______Decode", Benchmark__Json_______Decode)
  26. t.Run("Benchmark__Msgp_______Decode", Benchmark__Msgp_______Decode)
  27. t.Run("Benchmark__Easyjson___Decode", Benchmark__Easyjson___Decode)
  28. t.Run("Benchmark__Ffjson_____Decode", Benchmark__Ffjson_____Decode)
  29. }
  30. func BenchmarkCodecXGenSuite(t *testing.B) { benchmarkSuite(t, benchmarkCodecXGenGroup) }