fix: TypeError in HexBytes.__new__ if called from subclass
#10
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Sep 30, 2025 in 0s
Performance Gate Passed
Summary
⚡ 29 improvements
✅ 590 untouched
Benchmarks breakdown
| Benchmark | BASE |
HEAD |
Change | |
|---|---|---|---|---|
| ⚡ | test_faster_hexbytes_repr[0-9] |
266.3 µs | 98.6 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[4-byte pattern] |
691.9 µs | 245.7 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[all byte values] |
692.2 µs | 245.7 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[alternating 0x00/0xff] |
360.1 µs | 130.7 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[alternating 0xaa/0x55] |
360.2 µs | 130.7 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[ascii sentence] |
323.7 µs | 118.4 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b''] |
213.1 µs | 80.8 µs | ×2.6 |
| ⚡ | test_faster_hexbytes_repr[b'\\x00'*32] |
304.4 µs | 111.6 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\x00\\xff\\x00\\xff'] |
256 µs | 95.1 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\x01'*100] |
421.9 µs | 152.3 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[b'\\x01'*2048] |
3.8 ms | 1.3 ms | ×2.9 |
| ⚡ | test_faster_hexbytes_repr[b'\\x01\\x02\\x03'] |
254.6 µs | 94.5 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\x10\\x20\\x30\\x40\\x50'] |
257.9 µs | 95.7 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\x7f'*8] |
263 µs | 97.4 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\x80'*8] |
262.8 µs | 97.5 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\xde\\xad\\xbe\\xef'] |
256.3 µs | 95.1 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[b'\\xff'*64] |
360.1 µs | 130.7 µs | ×2.8 |
| ⚡ | test_faster_hexbytes_repr[b'a'*1024] |
2,056.8 µs | 720.6 µs | ×2.9 |
| ⚡ | test_faster_hexbytes_repr[b'abc'] |
254.6 µs | 94.5 µs | ×2.7 |
| ⚡ | test_faster_hexbytes_repr[long alternating] |
2,056.9 µs | 719.9 µs | ×2.9 |
| ... | ... | ... | ... | ... |
ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.
Loading