Skip to content

Commit

Permalink
benchmark table in readme (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong authored Mar 17, 2024
1 parent 8ac351f commit f4d346e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ becoming coupled to a particular configuration source.
The following [benchmarks](benchmark) compare the performance of konf with [spf13/viper](https://github.com/spf13/viper) and
[knadh/koanf](https://github.com/knadh/koanf), which are inspiration of konf.

```
| | Unmarshal (ns/op) | Unmarshal (allocs/op) | Get (ns/op) | Get (allocs/op) |
|:------|------------------:|----------------------:|------------:|----------------:|
| Konf | 41.09 | 4 | 16.71 | 1 |
| Viper | 614.8 | 22 | 104.9 | 3 |
| Koanf | 15949 | 657 | 7.898 | 1 |
```
| | Unmarshal (ns/op) | Unmarshal (allocs/op) | Get (ns/op) | Get (allocs/op) |
|:------|---------------------:|-------------------------:|---------------:|--------------------:|
| Konf | __41.09__ | __4__ | 16.71 | __1__ |
| Viper | 614.8 | 22 | 104.9 | 3 |
| Koanf | 15949 | 657 | __7.898__ | __1__ |

## Usage

Expand Down

1 comment on commit f4d346e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: f4d346e Previous: beef991 Ratio
BenchmarkLoad 306.4 ns/op 872 B/op 6 allocs/op 487.3 ns/op 0.63
BenchmarkLoad - ns/op 306.4 ns/op
BenchmarkLoad - B/op 872 B/op
BenchmarkLoad - allocs/op 6 allocs/op
BenchmarkGet 222.4 ns/op 64 B/op 5 allocs/op 200.7 ns/op 1.11
BenchmarkGet - ns/op 222.4 ns/op
BenchmarkGet - B/op 64 B/op
BenchmarkGet - allocs/op 5 allocs/op
BenchmarkUnmarshal 204.7 ns/op 48 B/op 4 allocs/op 174.5 ns/op 1.17
BenchmarkUnmarshal - ns/op 204.7 ns/op
BenchmarkUnmarshal - B/op 48 B/op
BenchmarkUnmarshal - allocs/op 4 allocs/op

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.