Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raschmitt/json-benchmarks
Benchmark the encoding/decoding in go
https://github.com/raschmitt/json-benchmarks
Last synced: about 1 month ago
JSON representation
Benchmark the encoding/decoding in go
- Host: GitHub
- URL: https://github.com/raschmitt/json-benchmarks
- Owner: raschmitt
- Created: 2020-04-05T01:14:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T02:39:53.000Z (over 4 years ago)
- Last Synced: 2023-03-10T02:24:28.711Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-benchmarks ![Go](https://github.com/raschmitt/json-benchmarks/workflows/Go/badge.svg?branch=master)
Repository dedicated to benchmark the encoding/decoding of jsons in go with the following packages:
- [encoding/json](https://golang.org/pkg/encoding/json/)
- [easyjson](https://godoc.org/github.com/mailru/easyjson)## Tests
### Assertion
To run assertion tests run:
`go test -v`
### Assertion
To run benchmark tests run:
`go test -bench=.`
## References
- [How to Test in Go](https://semaphoreci.com/community/tutorials/how-to-test-in-go)
- [How to write benchmarks in Go](https://dave.cheney.net/2013/06/30/how-to-write-benchmarks-in-go)