mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-24 19:29:47 +01:00
Update benchmark table formatting in README
This commit is contained in:
28
README.md
28
README.md
@@ -216,26 +216,26 @@ in the following tables.
|
|||||||
|
|
||||||
**Optimized build (-O3)**
|
**Optimized build (-O3)**
|
||||||
|
|
||||||
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
|
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
|
||||||
|---------------|-----------------|----------------------|--------------------|
|
|-----------------|-----------------|----------------------|--------------------|
|
||||||
| printf | 1.6 | 54 | 50 |
|
| printf | 1.6 | 54 | 50 |
|
||||||
| IOStreams | 28.4 | 98 | 84 |
|
| IOStreams | 28.4 | 98 | 84 |
|
||||||
| fmt 1122268 | 5.0 | 54 | 50 |
|
| {fmt} `1122268` | 5.0 | 54 | 50 |
|
||||||
| tinyformat | 32.6 | 164 | 136 |
|
| tinyformat | 32.6 | 164 | 136 |
|
||||||
| Boost Format | 55.0 | 530 | 317 |
|
| Boost Format | 55.0 | 530 | 317 |
|
||||||
|
|
||||||
{fmt} is fast to compile and is comparable to `printf` in terms of per-call
|
{fmt} is fast to compile and is comparable to `printf` in terms of per-call
|
||||||
binary size (within a rounding error on this system).
|
binary size (within a rounding error on this system).
|
||||||
|
|
||||||
**Non-optimized build**
|
**Non-optimized build**
|
||||||
|
|
||||||
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
|
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
|
||||||
|---------------|-----------------|----------------------|--------------------|
|
|-----------------|-----------------|----------------------|--------------------|
|
||||||
| printf | 1.4 | 54 | 50 |
|
| printf | 1.4 | 54 | 50 |
|
||||||
| IOStreams | 27.0 | 88 | 68 |
|
| IOStreams | 27.0 | 88 | 68 |
|
||||||
| {fmt} 1122268 | 4.7 | 87 | 84 |
|
| {fmt} `1122268` | 4.7 | 87 | 84 |
|
||||||
| tinyformat | 28.1 | 185 | 145 |
|
| tinyformat | 28.1 | 185 | 145 |
|
||||||
| Boost Format | 38.9 | 678 | 381 |
|
| Boost Format | 38.9 | 678 | 381 |
|
||||||
|
|
||||||
`libc`, `lib(std)c++`, and `libfmt` are all linked as shared libraries
|
`libc`, `lib(std)c++`, and `libfmt` are all linked as shared libraries
|
||||||
to compare formatting function overhead only. Boost Format is a
|
to compare formatting function overhead only. Boost Format is a
|
||||||
|
|||||||
Reference in New Issue
Block a user