Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# benchmarks of yaml libraries

```shell
% go test -bench=. -benchmem -benchtime 10000x

BenchmarkUnmarshal/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