binascii (C) vs Brython's pure-Python binasciiComparing 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.
| Operation | Input size | wasthon med (ms) | w min | w max | Brython med (ms) | b min | b max | Speedup |
|---|