Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svilgelm/yaml-benchmarks
The benchmarks of yaml libs for Go
https://github.com/svilgelm/yaml-benchmarks
Last synced: 4 days ago
JSON representation
The benchmarks of yaml libs for Go
- Host: GitHub
- URL: https://github.com/svilgelm/yaml-benchmarks
- Owner: SVilgelm
- License: mit
- Created: 2022-02-01T18:12:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T22:58:43.000Z (over 2 years ago)
- Last Synced: 2024-12-24T08:16:16.032Z (11 days ago)
- Language: Go
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# benchmarks of yaml libraries
```shell
% go test -bench=. -benchmem -benchtime 10000xBenchmarkUnmarshal/json-16 10000 21107 ns/op 9263 B/op 188 allocs/op
BenchmarkUnmarshal/yaml.V2-16 10000 83208 ns/op 40298 B/op 683 allocs/op
BenchmarkUnmarshal/yaml.V3-16 10000 95817 ns/op 48549 B/op 761 allocs/op
BenchmarkUnmarshal/ghodss-16 10000 126235 ns/op 60254 B/op 1072 allocs/op
BenchmarkUnmarshal/k8s-16 10000 128281 ns/op 62656 B/op 1080 allocs/op
BenchmarkUnmarshal/k8s:_Number-16 10000 133754 ns/op 62691 B/op 1080 allocs/op
BenchmarkUnmarshal/invopop-16 10000 141098 ns/op 64318 B/op 1122 allocs/op
BenchmarkUnmarshal/goccy-16 10000 205752 ns/op 308235 B/op 2461 allocs/op
```## libraries
* v1.0.0
* v1.9.5
* v2.4.0
* v3.0.1
* v1.3.0
* v0.1.0