Home

Handler madkins/replattr

Handlers
Bench Tests
Verify Tests
Summary Links

madkins/replattr is the madkins/flash handler setup to test slog.HandlerOptions.ReplaceAttr performance. The madkins/flash handler is first configured to generate various warnings using flash.Extras options, then several ReplaceAttr functions are used to correct the aberrant behavior. This is intended to measure the effect of ReplaceAttr usage on performance by comparison with madkins/flash

flash.Extras
madkins/flash
madkinsreplattr.Creator

Benchmark Data

Benchmark Runs Ns/Op Allocs/Op Bytes/Op MB/Sec
Attributes 576,532 2,029.00 6 508 220.27
Big Group 18,610 62,888.00 13 45,360 191.31
Disabled 318,953,740 7.65 0 0 0.00
Key Values 560,954 2,070.00 6 508 215.97
Logging 23,190 52,027.00 204 12,043 184.81
Simple 1,934,299 625.20 4 236 140.75
Simple Source 1,000,000 1,151.00 8 712 246.71
With Attrs Attributes 600,543 2,038.00 6 508 411.17
With Attrs Key Values 564,667 2,074.00 6 508 403.98
With Attrs Simple 1,897,164 632.10 4 236 757.76
With Group Attributes 581,949 2,038.00 6 508 226.71
With Group Key Values 569,724 2,080.00 6 508 222.09

Check box to see charts

Warnings

Suggested
Duplicates Duplicate field(s) found
Verify: Attribute Duplicate

map[alpha:2 charlie:3]

Verify: Attribute With Duplicate

map[alpha:2 charlie:3]