|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | +fmt int-benchmark |
| 5 | + |
| 6 | + |
| 7 | +cqwrteur@Home-Server:~/format-benchmark/build$ ./int-benchmark |
| 8 | + 1 27422 |
| 9 | + 2 247633 |
| 10 | + 3 449843 |
| 11 | + 4 247585 |
| 12 | + 5 24802 |
| 13 | + 6 2431 |
| 14 | + 7 263 |
| 15 | + 8 18 |
| 16 | + 9 3 |
| 17 | +10 0 |
| 18 | +2020-04-19 03:38:10 |
| 19 | +Running ./int-benchmark |
| 20 | +Run on (32 X 3500 MHz CPU s) |
| 21 | +CPU Caches: |
| 22 | + L1 Data 32 KiB (x16) |
| 23 | + L1 Instruction 32 KiB (x16) |
| 24 | + L2 Unified 512 KiB (x16) |
| 25 | + L3 Unified 16384 KiB (x4) |
| 26 | +Load Average: 2.16, 1.84, 1.72 |
| 27 | +***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead. |
| 28 | +------------------------------------------------------------------------------- |
| 29 | +Benchmark Time CPU Iterations UserCounters... |
| 30 | +------------------------------------------------------------------------------- |
| 31 | +sprintf 60485763 ns 60474022 ns 11 items_per_second=16.536M/s |
| 32 | +ostringstream 51180157 ns 51171861 ns 14 items_per_second=19.542M/s |
| 33 | +to_string 11014153 ns 11011117 ns 64 items_per_second=90.8173M/s |
| 34 | +format 37004954 ns 36998384 ns 19 items_per_second=27.0282M/s |
| 35 | +format_to 23252236 ns 23247699 ns 30 items_per_second=43.015M/s |
| 36 | +format_to_compile 10718580 ns 10716635 ns 65 items_per_second=93.3129M/s |
| 37 | +format_int 7867424 ns 7866027 ns 89 items_per_second=127.129M/s |
| 38 | +lexical_cast 28524279 ns 28517046 ns 25 items_per_second=35.0667M/s |
| 39 | +boost_format 249655844 ns 249592177 ns 3 items_per_second=4.00654M/s |
| 40 | +boost_karma_generate 8663729 ns 8661537 ns 81 items_per_second=115.453M/s |
| 41 | +voigt_itostr 14439111 ns 14436228 ns 49 items_per_second=69.2702M/s |
| 42 | +decimal_from 9162319 ns 9160592 ns 76 items_per_second=109.163M/s |
| 43 | +stout_ltoa 18511214 ns 18507607 ns 38 items_per_second=54.0318M/s |
| 44 | +fast_io_ospan_res 6871917 ns 6870708 ns 102 items_per_second=145.545M/s |
| 45 | +fast_io_concat 7967591 ns 7966162 ns 88 items_per_second=125.531M/s |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +2020-04-19 03:39:11 |
| 50 | +Running ./double-benchmark |
| 51 | +Run on (32 X 3500 MHz CPU s) |
| 52 | +CPU Caches: |
| 53 | + L1 Data 32 KiB (x16) |
| 54 | + L1 Instruction 32 KiB (x16) |
| 55 | + L2 Unified 512 KiB (x16) |
| 56 | + L3 Unified 16384 KiB (x4) |
| 57 | +Load Average: 1.78, 1.81, 1.72 |
| 58 | +***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead. |
| 59 | +--------------------------------------------------------- |
| 60 | +Benchmark Time CPU Iterations |
| 61 | +--------------------------------------------------------- |
| 62 | +sprintf 550514 ns 550435 ns 1273 |
| 63 | +format_to 116631 ns 116611 ns 6009 |
| 64 | +dtoa_milo 75115 ns 75103 ns 9299 |
| 65 | +fast_io_ospan 19955 ns 19950 ns 33426 |
| 66 | +fast_io_concat 43292 ns 43286 ns 16414 |
0 commit comments