Skip to content

Commit 96465f9

Browse files
committed
Merge branch 'master' of github.com:fmtlib/format-benchmark
2 parents 2dd9dba + de160b8 commit 96465f9

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

README.rst

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,34 @@ Sample results on macOS with clang and libc++:
1717

1818
.. code::
1919
20-
2020-06-15 11:12:14
21-
Running ./int-benchmark
22-
Run on (8 X 2800 MHz CPU s)
23-
CPU Caches:
24-
L1 Data 32K (x4)
25-
L1 Instruction 32K (x4)
26-
L2 Unified 262K (x4)
27-
L3 Unified 8388K (x1)
28-
Load Average: 2.79, 2.42, 2.09
29-
-------------------------------------------------------------------------------
30-
Benchmark Time CPU Iterations UserCounters...
31-
-------------------------------------------------------------------------------
32-
sprintf 61791924 ns 61719273 ns 11 items_per_second=16.2024M/s
33-
ostringstream 154815487 ns 154604000 ns 4 items_per_second=6.46814M/s
34-
std_to_string 15329374 ns 15314065 ns 46 items_per_second=65.2994M/s
35-
std_to_chars 11174077 ns 11166258 ns 62 items_per_second=89.5555M/s
36-
fmt_to_string 11847305 ns 11840276 ns 58 items_per_second=84.4575M/s
37-
format_runtime 19862675 ns 19855914 ns 35 items_per_second=50.3628M/s
38-
format_compile 11823433 ns 11816000 ns 58 items_per_second=84.631M/s
39-
format_to_runtime 13048756 ns 13043604 ns 53 items_per_second=76.6659M/s
40-
format_to_compile 9069190 ns 9063973 ns 75 items_per_second=110.327M/s
41-
format_int 8699864 ns 8694291 ns 79 items_per_second=115.018M/s
42-
lexical_cast 30010119 ns 29992750 ns 24 items_per_second=33.3414M/s
43-
boost_format 320914919 ns 320660500 ns 2 items_per_second=3.11856M/s
44-
boost_karma_generate 12260277 ns 12253893 ns 56 items_per_second=81.6067M/s
45-
voigt_itostr 18697344 ns 18688703 ns 37 items_per_second=53.5083M/s
46-
decimal_from 10555579 ns 10549531 ns 64 items_per_second=94.7909M/s
47-
stout_ltoa 40028853 ns 40010824 ns 17 items_per_second=24.9932M/s
20+
2020-06-25 18:35:12
21+
Running ./int-benchmark
22+
Run on (8 X 2800 MHz CPU s)
23+
CPU Caches:
24+
L1 Data 32K (x4)
25+
L1 Instruction 32K (x4)
26+
L2 Unified 262K (x4)
27+
L3 Unified 8388K (x1)
28+
Load Average: 3.05, 2.27, 2.05
29+
--------------------------------------------------------------------------------
30+
Benchmark Time CPU Iterations UserCounters...
31+
--------------------------------------------------------------------------------
32+
sprintf 62015560 ns 61939300 ns 10 items_per_second=16.1448M/s
33+
std_ostringstream 153347073 ns 153167000 ns 4 items_per_second=6.52882M/s
34+
std_to_string 15058924 ns 15052045 ns 44 items_per_second=66.4362M/s
35+
std_to_chars 10995660 ns 10991238 ns 63 items_per_second=90.9816M/s
36+
fmt_to_string 11909200 ns 11905632 ns 57 items_per_second=83.9939M/s
37+
fmt_format_runtime 17071781 ns 17062878 ns 41 items_per_second=58.6068M/s
38+
fmt_format_compile 11897635 ns 11893517 ns 58 items_per_second=84.0794M/s
39+
fmt_format_to_runtime 13539784 ns 13534137 ns 51 items_per_second=73.8872M/s
40+
fmt_format_to_compile 8941199 ns 8937675 ns 77 items_per_second=111.886M/s
41+
fmt_format_int 8721323 ns 8718253 ns 79 items_per_second=114.702M/s
42+
boost_lexical_cast 29685237 ns 29668455 ns 22 items_per_second=33.7058M/s
43+
boost_format 315875676 ns 315739000 ns 2 items_per_second=3.16717M/s
44+
boost_karma_generate 12138668 ns 12134518 ns 56 items_per_second=82.4095M/s
45+
voigt_itostr 20177849 ns 19994243 ns 37 items_per_second=50.0144M/s
46+
u2985907 9445288 ns 9427174 ns 69 items_per_second=106.076M/s
47+
decimal_from 13009338 ns 12952232 ns 56 items_per_second=77.2068M/s
48+
stout_ltoa 39336210 ns 39325000 ns 18 items_per_second=25.4291M/s
49+
4850

0 commit comments

Comments
 (0)