Avatar for the mayeut user
mayeut
pybase64
BlogDocsChangelog

feat: add `canonical` parameter to `b64decode` to reject non-canonical padding bits

#1017
Comparing
canonical
(
9e0f3cf
) with
master
(
76015ae
)
CodSpeed Performance Gauge
0%
Untouched
48

Benchmarks

48 total
test_encoding[1-SSSE3]
tests/test_benchmark.py
CodSpeed Performance Gauge
+1%
78.6 µs77.9 µs
test_encoding[1-SSE42]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
76.2 µs76.2 µs
test_encoding[1048576-C]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_decoding[1-SSE41]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
80 µs80 µs
test_encoding[536870912-AVX2]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
664.9 ms664.9 ms
test_decoding[536870912-SSE41]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
931.4 ms931.4 ms
test_encoding[536870912-SSSE3]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
808.5 ms808.5 ms
test_encoding[536870912-AVX]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
758.8 ms758.8 ms
test_encoding[536870912-SSE42]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
808.5 ms808.5 ms
test_decoding[536870912-C]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.6 s1.6 s
test_encoding[536870912-C]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_decoding[536870912-AVX]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
858.4 ms858.4 ms
test_encoding[536870912-SSE41]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
808.5 ms808.5 ms
test_decoding[536870912-SSSE3]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
931.4 ms931.4 ms
test_decoding[536870912-SSE42]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
931.4 ms931.4 ms
test_decoding[536870912-AVX2]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
706.1 ms706.1 ms
test_encoding[1048576-AVX]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_encoding[1048576-SSE42]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_encoding[1048576-SSE41]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_decoding[1048576-C]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_encoding[1048576-SSSE3]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_encoding[1048576-AVX2]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_decoding[1048576-AVX]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_decoding[1048576-AVX2]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_decoding[1048576-SSE42]
tests/test_benchmark.py
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms

Commits

Click on a commit to change the comparison range
Base
master
76015ae
-0.14%
feat: add `canonical` parameter to `b64decode` to reject non-canonical padding bits
9e0f3cf
4 days ago
by mayeut
© 2026 CodSpeed Technology
Home Terms Privacy Docs