v2.0.0-beta.3
Pre-release
Pre-release
Work on performance improvement.
Execution time speedup compared to other Go TOML libraries:
Benchmark | go-toml v1 | BurntSushi/toml |
---|---|---|
Marshal/HugoFrontMatter | 2.0x | 2.0x |
Marshal/ReferenceFile/map | 1.8x | 2.0x |
Marshal/ReferenceFile/struct | 2.7x | 2.7x |
Unmarshal/HugoFrontMatter | 3.0x | 2.6x |
Unmarshal/ReferenceFile/map | 3.0x | 3.1x |
Unmarshal/ReferenceFile/struct | 5.9x | 6.6x |
See more
The table above has the results of the most common use-cases. The table below contains the results of all benchmarks, including unrealistic ones. It is provided for completeness.
Benchmark | go-toml v1 | BurntSushi/toml |
---|---|---|
Marshal/SimpleDocument/map | 1.7x | 2.1x |
Marshal/SimpleDocument/struct | 2.6x | 2.9x |
Unmarshal/SimpleDocument/map | 4.1x | 2.9x |
Unmarshal/SimpleDocument/struct | 6.3x | 4.1x |
UnmarshalDataset/example | 3.5x | 2.4x |
UnmarshalDataset/code | 2.2x | 2.8x |
UnmarshalDataset/twitter | 2.8x | 2.1x |
UnmarshalDataset/citm_catalog | 2.3x | 1.5x |
UnmarshalDataset/config | 4.2x | 3.2x |
[Geo mean] | 3.0x | 2.7x |
This table can be generated with ./ci.sh benchmark -a -html
.