Skip to content

chore: remove unnecessary variable #11

chore: remove unnecessary variable

chore: remove unnecessary variable #11

GitHub Actions / benchdiff-result succeeded Apr 30, 2024 in 0s

Benchdiff Results

Benchmark Command: go test ./... -run ^ -bench . -count 5 -benchtime 100ms -cpu 1,2 -benchmem

HEAD sha: d94060a

Base sha: 71966cb

Degraded: false

Details

pkg: github.com/elastic/go-docappender/v2
goos: linux
goarch: amd64

name old time/op (ns/op) ± new time/op (ns/op) ± delta ±
Appender/NoCompression 869.3 2% 900.56 4% ~ (p=0.056 n=5+5)
Appender/NoCompression-2 553.02 18% 560.82 10% ~ (p=0.595 n=5+5)
Appender/NoCompressionScaling 915.52 3% 908.6 4% ~ (p=0.841 n=5+5)
Appender/NoCompressionScaling-2 603.56 15% 551.5 6% ~ (p=0.222 n=5+5)
Appender/BestSpeed 891.7 1% 918.34 6% ~ (p=0.056 n=5+5)
Appender/BestSpeed-2 768.32 11% 802.68 11% ~ (p=0.548 n=5+5)
Appender/BestSpeedScaling 902.32 1% 912.04 1% ~ (p=0.222 n=5+5)
Appender/BestSpeedScaling-2 819.38 12% 733.9 3% -10.43% (p=0.032 n=5+5)
Appender/DefaultCompression 889.58 1% 912.74 3% +2.60% (p=0.040 n=5+5)
Appender/DefaultCompression-2 765.34 9% 760 4% ~ (p=1.000 n=5+5)
Appender/DefaultCompressionScaling 898.68 1% 931.86 1% +3.69% (p=0.008 n=5+5)
Appender/DefaultCompressionScaling-2 836.98 11% 788.08 12% ~ (p=0.310 n=5+5)
Appender/BestCompression 1513.2 1% 1545.8 1% +2.15% (p=0.008 n=5+5)
Appender/BestCompression-2 1452.6 7% 1442.8 8% ~ (p=0.841 n=5+5)
Appender/BestCompressionScaling 1534.6 0% 1572 1% +2.44% (p=0.008 n=5+5)
Appender/BestCompressionScaling-2 1344.8 3% 1488.8 6% +10.71% (p=0.008 n=5+5)
AppenderError 7118.8 2% 7046.2 4% ~ (p=0.690 n=5+5)
AppenderError-2 4313 21% 4466.4 18% ~ (p=0.548 n=5+5)
name old speed (MB/s) ± new speed (MB/s) ± delta ±
Appender/NoCompression 148.448 2% 143.336 4% ~ (p=0.056 n=5+5)
Appender/NoCompression-2 235.13 16% 230.742 10% ~ (p=0.548 n=5+5)
Appender/NoCompressionScaling 140.956 3% 142.084 4% ~ (p=0.841 n=5+5)
Appender/NoCompressionScaling-2 215.59 14% 234.172 6% ~ (p=0.222 n=5+5)
Appender/BestSpeed 144.678 1% 140.61 6% ~ (p=0.056 n=5+5)
Appender/BestSpeed-2 168.928 12% 161.91 12% ~ (p=0.548 n=5+5)
Appender/BestSpeedScaling 142.978 1% 141.448 1% ~ (p=0.222 n=5+5)
Appender/BestSpeedScaling-2 158.33 11% 175.822 3% +11.05% (p=0.032 n=5+5)
Appender/DefaultCompression 145.026 1% 141.376 3% -2.52% (p=0.040 n=5+5)
Appender/DefaultCompression-2 169.066 8% 169.876 4% ~ (p=1.000 n=5+5)
Appender/DefaultCompressionScaling 143.546 1% 138.44 1% -3.56% (p=0.008 n=5+5)
Appender/DefaultCompressionScaling-2 155.038 11% 164.376 11% ~ (p=0.310 n=5+5)
Appender/BestCompression 85.262 1% 83.44 1% -2.14% (p=0.008 n=5+5)
Appender/BestCompression-2 89.102 8% 89.704 7% ~ (p=0.841 n=5+5)
Appender/BestCompressionScaling 84.064 0% 82.066 1% -2.38% (p=0.008 n=5+5)
Appender/BestCompressionScaling-2 95.972 3% 86.838 6% -9.52% (p=0.008 n=5+5)
AppenderError 18.124 2% 18.326 4% ~ (p=0.690 n=5+5)
AppenderError-2 30.334 18% 29.122 16% ~ (p=0.548 n=5+5)
name old alloc/op (B/op) ± new alloc/op (B/op) ± delta ±
Appender/NoCompression 511.2 2% 515.6 7% ~ (p=0.587 n=5+5)
Appender/NoCompression-2 392 6% 406.2 9% ~ (p=0.214 n=5+5)
Appender/NoCompressionScaling 516.2 4% 501.2 5% ~ (p=0.222 n=5+5)
Appender/NoCompressionScaling-2 415.8 7% 403 5% ~ (p=0.548 n=5+5)
Appender/BestSpeed 276.6 2% 280.2 7% ~ (p=0.810 n=5+5)
Appender/BestSpeed-2 273.6 8% 274.8 5% ~ (p=0.563 n=5+5)
Appender/BestSpeedScaling 275.6 1% 277.8 1% ~ (p=0.206 n=5+5)
Appender/BestSpeedScaling-2 278.4 7% 273.8 8% ~ (p=0.206 n=5+5)
Appender/DefaultCompression 278.6 1% 286 3% ~ (p=0.056 n=5+5)
Appender/DefaultCompression-2 278.6 7% 283.2 4% ~ (p=0.730 n=5+5)
Appender/DefaultCompressionScaling 279.4 1% 282 0% +0.93% (p=0.024 n=5+5)
Appender/DefaultCompressionScaling-2 280.6 7% 275.6 6% ~ (p=0.968 n=5+5)
Appender/BestCompression 288.6 0% 291 0% +0.83% (p=0.016 n=5+4)
Appender/BestCompression-2 298.2 2% 293.8 6% ~ (p=0.603 n=5+5)
Appender/BestCompressionScaling 289.2 1% 290.6 1% ~ (p=0.135 n=5+5)
Appender/BestCompressionScaling-2 292.2 6% 297.4 3% ~ (p=0.341 n=5+5)
AppenderError 4097.6 4% 4089.6 8% ~ (p=0.548 n=5+5)
AppenderError-2 4077.2 3% 4104.6 4% ~ (p=1.000 n=5+5)
name old allocs/op (allocs/op) ± new allocs/op (allocs/op) ± delta ±
Appender/NoCompression 8 0% 8 0% ~ (all equal)
Appender/NoCompression-2 8 0% 8 0% ~ (all equal)
Appender/NoCompressionScaling 8 0% 8 0% ~ (all equal)
Appender/NoCompressionScaling-2 8 0% 8 0% ~ (all equal)
Appender/BestSpeed 8 0% 8 0% ~ (all equal)
Appender/BestSpeed-2 8 0% 8 0% ~ (all equal)
Appender/BestSpeedScaling 8 0% 8 0% ~ (all equal)
Appender/BestSpeedScaling-2 8 0% 8 0% ~ (all equal)
Appender/DefaultCompression 8 0% 8 0% ~ (all equal)
Appender/DefaultCompression-2 8 0% 8 0% ~ (all equal)
Appender/DefaultCompressionScaling 8 0% 8 0% ~ (all equal)
Appender/DefaultCompressionScaling-2 8 0% 8 0% ~ (all equal)
Appender/BestCompression 8 0% 8 0% ~ (all equal)
Appender/BestCompression-2 8 0% 8 0% ~ (all equal)
Appender/BestCompressionScaling 8 0% 8 0% ~ (all equal)
Appender/BestCompressionScaling-2 8 0% 8 0% ~ (all equal)
AppenderError 53 0% 53 0% ~ (all equal)
AppenderError-2 53 0% 53 0% ~ (all equal)