← back to index

Wasthon — binascii (C) vs Brython's pure-Python binascii

Comparing wasthon's C binascii against Brython's pure-Python fallback on the four most-used codecs (hex, base64, CRC32). Each timing is the median of 10 runs after 2 warmup passes; payloads are non-degenerate (crypto-random bytes) and sized so individual runs sit well above timer granularity. Brython's pure-Python crc32 crashes on bytes input (a bug: it calls ord(int)) — reported as N/A.

OperationInput size wasthon med (ms)w minw max Brython med (ms)b minb max Speedup

Log