Home

Handler veqryn/dedup/Overwrite

Handlers
Bench Tests
Verify Tests
Summary Links

veqryn/dedup provides a variety of slog.Handler options for deduplicating the keys: overwriting, ignoring, appending, and incrementing.

veqryn/dedup

Benchmark Data

Benchmark Runs Ns/Op Allocs/Op Bytes/Op MB/Sec
Attributes 174,375 6,381.00 41 9,725 65.51
Big Group 1,110 953,425.00 6,021 2,032,487 23.79
Disabled 276,120,013 4.33 0 0 0.00
Key Values 163,837 6,297.00 41 9,726 66.38
Logging 7,192 144,735.00 867 224,707 60.79
Simple 2,430,026 528.00 6 280 157.20
Simple Source 1,000,000 1,074.00 12 848 257.90
With Attrs Attributes 118,394 9,304.00 63 14,166 70.51
With Attrs Key Values 122,448 9,311.00 63 14,167 70.45
With Attrs Simple 173,163 6,071.00 39 9,049 74.13
With Group Attributes 136,819 7,859.00 50 13,271 54.97
With Group Key Values 141,794 7,830.00 50 13,271 55.17

Check box to see charts

Warnings