bson_test.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (C) MongoDB, Inc. 2017-present.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  6. package benchmark
  7. import "testing"
  8. // func BenchmarkBSONFullReaderDecoding(b *testing.B) { WrapCase(BSONFullReaderDecoding)(b) }
  9. func BenchmarkBSONFlatDocumentEncoding(b *testing.B) { WrapCase(BSONFlatDocumentEncoding)(b) }
  10. func BenchmarkBSONFlatDocumentDecodingLazy(b *testing.B) { WrapCase(BSONFlatDocumentDecodingLazy)(b) }
  11. func BenchmarkBSONFlatDocumentDecoding(b *testing.B) { WrapCase(BSONFlatDocumentDecoding)(b) }
  12. func BenchmarkBSONDeepDocumentEncoding(b *testing.B) { WrapCase(BSONDeepDocumentEncoding)(b) }
  13. func BenchmarkBSONDeepDocumentDecodingLazy(b *testing.B) { WrapCase(BSONDeepDocumentDecodingLazy)(b) }
  14. func BenchmarkBSONDeepDocumentDecoding(b *testing.B) { WrapCase(BSONDeepDocumentDecoding)(b) }
  15. // func BenchmarkBSONFullDocumentEncoding(b *testing.B) { WrapCase(BSONFullDocumentEncoding)(b) }
  16. // func BenchmarkBSONFullDocumentDecodingLazy(b *testing.B) { WrapCase(BSONFullDocumentDecodingLazy)(b) }
  17. // func BenchmarkBSONFullDocumentDecoding(b *testing.B) { WrapCase(BSONFullDocumentDecoding)(b) }
  18. func BenchmarkBSONFlatMapDecoding(b *testing.B) { WrapCase(BSONFlatMapDecoding)(b) }
  19. func BenchmarkBSONFlatMapEncoding(b *testing.B) { WrapCase(BSONFlatMapEncoding)(b) }
  20. func BenchmarkBSONDeepMapDecoding(b *testing.B) { WrapCase(BSONDeepMapDecoding)(b) }
  21. func BenchmarkBSONDeepMapEncoding(b *testing.B) { WrapCase(BSONDeepMapEncoding)(b) }
  22. // func BenchmarkBSONFullMapDecoding(b *testing.B) { WrapCase(BSONFullMapDecoding)(b) }
  23. // func BenchmarkBSONFullMapEncoding(b *testing.B) { WrapCase(BSONFullMapEncoding)(b) }
  24. func BenchmarkBSONFlatStructDecoding(b *testing.B) { WrapCase(BSONFlatStructDecoding)(b) }
  25. func BenchmarkBSONFlatStructTagsDecoding(b *testing.B) { WrapCase(BSONFlatStructTagsDecoding)(b) }
  26. func BenchmarkBSONFlatStructEncoding(b *testing.B) { WrapCase(BSONFlatStructEncoding)(b) }
  27. func BenchmarkBSONFlatStructTagsEncoding(b *testing.B) { WrapCase(BSONFlatStructTagsEncoding)(b) }