Skip to content

Instantly share code, notes, and snippets.

@andrewthad
Created January 16, 2020 11:55
Show Gist options
  • Save andrewthad/7ac93112f46ead24484fa7ff1330f9fe to your computer and use it in GitHub Desktop.
Save andrewthad/7ac93112f46ead24484fa7ff1330f9fe to your computer and use it in GitHub Desktop.
Base64 Benchmark Suite
benchmarked encode/base64-bytestring/25
time 161.7 ns (152.6 ns .. 168.1 ns)
0.980 R² (0.944 R² .. 0.998 R²)
mean 178.6 ns (169.1 ns .. 216.5 ns)
std dev 55.41 ns (14.38 ns .. 113.1 ns)
variance introduced by outliers: 95% (severely inflated)
benchmarked encode/base64-bytestring/100
time 232.1 ns (228.7 ns .. 234.8 ns)
0.999 R² (0.998 R² .. 0.999 R²)
mean 227.5 ns (226.0 ns .. 229.3 ns)
std dev 5.340 ns (3.947 ns .. 7.026 ns)
benchmarked encode/base64-bytestring/1000
time 1.179 μs (1.141 μs .. 1.244 μs)
0.977 R² (0.939 R² .. 0.998 R²)
mean 1.136 μs (1.117 μs .. 1.171 μs)
std dev 85.13 ns (46.85 ns .. 156.0 ns)
variance introduced by outliers: 47% (moderately inflated)
benchmarked encode/base64-bytestring/10000
time 8.146 μs (7.917 μs .. 8.331 μs)
0.995 R² (0.991 R² .. 0.998 R²)
mean 8.052 μs (7.968 μs .. 8.229 μs)
std dev 362.6 ns (213.2 ns .. 685.7 ns)
variance introduced by outliers: 24% (moderately inflated)
benchmarked encode/base64-bytestring/100000
time 88.97 μs (81.65 μs .. 97.63 μs)
0.975 R² (0.964 R² .. 0.993 R²)
mean 81.23 μs (80.15 μs .. 83.57 μs)
std dev 5.050 μs (3.380 μs .. 7.824 μs)
variance introduced by outliers: 38% (moderately inflated)
benchmarked encode/base64/25
time 52.48 ns (49.26 ns .. 56.25 ns)
0.952 R² (0.911 R² .. 0.975 R²)
mean 67.08 ns (62.86 ns .. 73.32 ns)
std dev 18.92 ns (14.16 ns .. 25.18 ns)
variance introduced by outliers: 95% (severely inflated)
benchmarked encode/base64/100
time 107.8 ns (103.2 ns .. 112.2 ns)
0.980 R² (0.952 R² .. 0.997 R²)
mean 108.6 ns (106.6 ns .. 116.7 ns)
std dev 12.95 ns (6.296 ns .. 24.81 ns)
variance introduced by outliers: 70% (severely inflated)
benchmarked encode/base64/1000
time 819.2 ns (784.9 ns .. 876.6 ns)
0.981 R² (0.965 R² .. 0.993 R²)
mean 806.1 ns (793.4 ns .. 824.6 ns)
std dev 54.65 ns (37.45 ns .. 71.70 ns)
variance introduced by outliers: 41% (moderately inflated)
benchmarked encode/base64/10000
time 7.692 μs (6.865 μs .. 8.600 μs)
0.960 R² (0.938 R² .. 0.997 R²)
mean 7.264 μs (7.146 μs .. 7.499 μs)
std dev 591.6 ns (357.0 ns .. 874.0 ns)
variance introduced by outliers: 51% (severely inflated)
benchmarked encode/base64/100000
time 80.45 μs (72.30 μs .. 87.10 μs)
0.965 R² (0.953 R² .. 0.985 R²)
mean 70.43 μs (69.25 μs .. 73.21 μs)
std dev 5.567 μs (3.546 μs .. 8.094 μs)
variance introduced by outliers: 50% (moderately inflated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment