BobTheBuidler
faster-hexbytes
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: use librt StringWriter for faster hex formatting
#107
Closed
Comparing
perf/librt-string-writer-formatting
(
29765f9
) with
master
(
76d75cf
)
CodSpeed Performance Gauge
-14%
Regression
58
Untouched
565
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Untouched
623 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-17%
653 µs
787.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-17%
685.3 µs
826.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[mixed pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-16%
2 ms
2.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[mixed pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-16%
2 ms
2.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[4-byte pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
2.3 ms
2.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[all byte values]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
2.3 ms
2.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[all byte values]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
2.3 ms
2.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[4-byte pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
2.3 ms
2.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[0-9]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
850.7 µs
1,003.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[single 0xff]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
800.1 µs
943.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[multiples of 0x10]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
850.7 µs
1,003.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[single null byte]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
800.2 µs
943.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[palindrome numeric]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
822 µs
968.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\x10\\x20\\x30\\x40\\x50']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
822.2 µs
968.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'\\xde\\xad\\xbe\\xef']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
848.5 µs
996.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'\\x00\\xff\\x00\\xff']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
848.6 µs
996.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\xde\\xad\\xbe\\xef']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
816.2 µs
957.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\x00\\xff\\x00\\xff']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
816.4 µs
957.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'\\x80'*8]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
871.2 µs
1,020.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'\\x7f'*8]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
871.3 µs
1,020.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\x80'*8]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
839 µs
981.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\x7f'*8]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-15%
839.1 µs
981.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'\\x01\\x02\\x03']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-14%
843.2 µs
986 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_repr[b'abc']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-14%
843.2 µs
985.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_to_0x_hex[b'\\x01\\x02\\x03']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
-14%
811 µs
947.8 µs
1
2
3
4
5
...
25
Commits
Click on a commit to change the comparison range
Base
master
76d75cf
-14.12%
perf: use librt StringWriter for faster hex formatting
29765f9
3 days ago
by codex
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs