Fix README file table (#3744)

Co-authored-by: George Liontos <george.liontos@forallsecure.com>
This commit is contained in:
George Liontos
2023-12-08 20:26:52 +02:00
committed by GitHub
parent 9c3c107c8c
commit 2fabb43b93

View File

@ -175,19 +175,13 @@ Output on a modern terminal with Unicode support:
## Speed tests
+-------------------+---------------+-------------+
| Library | Method | Run Time, s |
+===================+===============+=============+
|-------------------|---------------|-------------|
| libc | printf | > 0.91 |
+-------------------+---------------+-------------+
| libc++ | std::ostream | > 2.49 |
+-------------------+---------------+-------------+
| {fmt} 9.1 | fmt::print | > 0.74 |
+-------------------+---------------+-------------+
| Boost Format 1.80 | boost::format | > 6.26 |
+-------------------+---------------+-------------+
| Folly Format | folly::format | > 1.87 |
+-------------------+---------------+-------------+
{fmt} is the fastest of the benchmarked methods, \~20% faster than
`printf`.
@ -221,7 +215,7 @@ Sierra, best of three) is shown in the following tables.
**Optimized build (-O3)**
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
| ------------- | --------------- | -------------------- | ------------------ |
|---------------|-----------------|----------------------|--------------------|
| printf | > 2.6 | > 29 | > 26 |
| printf+string | > 16.4 | > 29 | > 26 |
| iostreams | > 31.1 | > 59 | > 55 |
@ -239,7 +233,7 @@ include to measure the overhead of the latter.
**Non-optimized build**
| Method | Compile Time, s | Executable size, KiB | Stripped size, KiB |
| ------------- | --------------- | -------------------- | ------------------ |
|---------------|-----------------|----------------------|--------------------|
| printf | > 2.2 | > 33 | > 30 |
| printf+string | > 16.0 | > 33 | > 30 |
| iostreams | > 28.3 | > 56 | > 52 |