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

Score: 92.46
Benchmark Runs Ns/Op Allocs/Op Bytes/Op MB/Sec Score
Attributes 589,468 2,079.00 6 508 215.51 94.42
Big Group 6,196 169,215.00 17 153,190 176.02 79.89
Disabled 322,678,004 3.72 0 0 0.00 96.86
Key Values 520,245 2,066.00 6 508 216.87 94.63
Logging 23,217 52,432.00 204 12,043 183.32 91.88
Simple 1,912,872 625.00 4 236 140.81 85.11
Simple Source 1,000,000 1,156.00 8 712 245.76 85.27
With Attrs Attributes 600,363 2,050.00 6 508 409.76 96.47
With Attrs Key Values 553,526 2,082.00 6 508 403.50 96.50
With Attrs Simple 1,881,225 636.40 4 236 754.27 96.77
With Group Attributes 584,409 2,053.00 6 508 225.56 95.91
With Group Key Values 561,156 2,104.00 6 508 220.08 95.84

Benchmark Charts

madkins/replattr Ns/Op madkins/replattr Allocs/Op
madkins/replattr Bytes/Op madkins/replattr GB/Sec

Warnings

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

map[alpha:2 charlie:3]

Verify: Attribute With Duplicate

map[alpha:2 charlie:3]