File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 4169
4169
2.22x faster than 5.1 on decimal integer formatting with `format_to`
4170
4170
(macOS, clang-902.0.39.2):
4171
4171
4172
- +----------------------------+-----------------------+---------+
4173
- | Method | Time, s | Speedup |
4174
- +============================+=======================+=========+
4175
- | fmt::format 5.1 | > 0.58 | |
4176
- +----------------------------+-----------------------+---------+
4177
- | fmt::format 5.2 | > 0.35 0.51 | > 1.66x |
4178
- | fmt::format_to 5.1 | | |
4179
- +----------------------------+-----------------------+---------+
4180
- | fmt::format_to 5.2 sprintf | > 0.23 0.71 1.01 1.73 | > 2.22x |
4181
- | std::to_string | | |
4182
- | std::stringstream | | |
4183
- +----------------------------+-----------------------+---------+
4172
+ | Method | Time, s | Speedup |
4173
+ | -------------------------- | --------------: | ------: |
4174
+ | fmt::format 5.1 | 0.58 | |
4175
+ | fmt::format 5.2 | 0.35 | 1.66x |
4176
+ | fmt::format_to 5.1 | 0.51 | |
4177
+ | fmt::format_to 5.2 | 0.23 | 2.22x |
4178
+ | sprintf | 0.71 | |
4179
+ | std::to_string | 1.01 | |
4180
+ | std::stringstream | 1.73 | |
4184
4181
4185
4182
- Changed the `fmt` macro from opt-out to opt-in to prevent name
4186
4183
collisions. To enable it define the `FMT_STRING_ALIAS` macro to 1
You can’t perform that action at this time.
0 commit comments