mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 10:17:40 +02:00
Fix README file table (#3744)
Co-authored-by: George Liontos <george.liontos@forallsecure.com>
This commit is contained in:
12
README.md
12
README.md
@ -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 |
|
||||
|
Reference in New Issue
Block a user