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 178,592 6,048.00 41 9,722 68.95
Big Group 2,521 409,270.00 2,783 890,609 25.74
Disabled 265,213,424 4.55 0 0 0.00
Key Values 175,852 6,021.00 41 9,722 69.25
Logging 7,371 139,041.00 867 224,864 63.29
Simple 2,446,732 504.60 6 280 164.50
Simple Source 1,000,000 1,115.00 12 848 248.42
With Attrs Attributes 120,084 8,889.00 63 14,165 73.58
With Attrs Key Values 122,040 9,170.00 63 14,166 71.21
With Attrs Simple 174,152 5,762.00 39 9,044 77.93
With Group Attributes 137,160 7,539.00 50 13,275 57.17
With Group Key Values 145,614 7,515.00 50 13,272 57.35

Check box to see charts

Warnings