From 3fccfb8a80804ff1269af71f0a43c8934ca36c92 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 7 Nov 2025 10:05:56 -0800 Subject: [PATCH] Update benchmark table formatting in README --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6d129585..9a09d163 100644 --- a/README.md +++ b/README.md @@ -216,26 +216,26 @@ in the following tables. **Optimized build (-O3)** -| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB | -|---------------|-----------------|----------------------|--------------------| -| printf | 1.6 | 54 | 50 | -| IOStreams | 28.4 | 98 | 84 | -| fmt 1122268 | 5.0 | 54 | 50 | -| tinyformat | 32.6 | 164 | 136 | -| Boost Format | 55.0 | 530 | 317 | +| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB | +|-----------------|-----------------|----------------------|--------------------| +| printf | 1.6 | 54 | 50 | +| IOStreams | 28.4 | 98 | 84 | +| {fmt} `1122268` | 5.0 | 54 | 50 | +| tinyformat | 32.6 | 164 | 136 | +| Boost Format | 55.0 | 530 | 317 | {fmt} is fast to compile and is comparable to `printf` in terms of per-call binary size (within a rounding error on this system). **Non-optimized build** -| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB | -|---------------|-----------------|----------------------|--------------------| -| printf | 1.4 | 54 | 50 | -| IOStreams | 27.0 | 88 | 68 | -| {fmt} 1122268 | 4.7 | 87 | 84 | -| tinyformat | 28.1 | 185 | 145 | -| Boost Format | 38.9 | 678 | 381 | +| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB | +|-----------------|-----------------|----------------------|--------------------| +| printf | 1.4 | 54 | 50 | +| IOStreams | 27.0 | 88 | 68 | +| {fmt} `1122268` | 4.7 | 87 | 84 | +| tinyformat | 28.1 | 185 | 145 | +| Boost Format | 38.9 | 678 | 381 | `libc`, `lib(std)c++`, and `libfmt` are all linked as shared libraries to compare formatting function overhead only. Boost Format is a