Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimization: merge SizeComputer specializations + add new ones
> cmake -B build -DBUILD_BENCH=ON -DCMAKE_BUILD_TYPE=Release && cmake --build build -j$(nproc) && build/src/bench/bench_bitcoin -filter='SizeComputerBlock|SerializeBlock|DeserializeBlock' --min-time=10000 > C compiler ............................ AppleClang 16.0.0.16000026 | ns/block | block/s | err% | total | benchmark |--------------------:|--------------------:|--------:|----------:|:---------- | 888,859.82 | 1,125.04 | 0.4% | 10.87 | `DeserializeBlock` | 168,502.88 | 5,934.62 | 0.1% | 10.99 | `SerializeBlock` | 10,200.88 | 98,030.75 | 0.1% | 11.00 | `SizeComputerBlock` > C++ compiler .......................... GNU 13.3.0 | ns/block | block/s | err% | ins/block | cyc/block | IPC | bra/block | miss% | total | benchmark |--------------------:|--------------------:|--------:|----------------:|----------------:|-------:|---------------:|--------:|----------:|:---------- | 4,460,428.52 | 224.19 | 0.0% | 53,692,507.13 | 16,015,347.97 | 3.353 | 2,410,105.48 | 0.5% | 11.01 | `DeserializeBlock` | 568,283.85 | 1,759.68 | 0.0% | 7,386,775.59 | 2,039,964.80 | 3.621 | 1,385,368.57 | 0.5% | 11.00 | `SerializeBlock` | 25,773.15 | 38,800.07 | 0.0% | 172,750.03 | 92,549.31 | 1.867 | 42,131.03 | 1.7% | 11.00 | `SizeComputerBlock`
- Loading branch information