xlnt/benchmarks
JCrawfy 0adb8a69b1 add micro benchmarking project, setup number parsing benchmark
relating to previous work https://github.com/tfussell/xlnt/issues/422
Results are matching what was observed at the time ^^ was being worked on
std::from_chars is included as the target to beat, but since only MSVC has it for floating point it's not
hugely useful yet

uniform real distribution is probably a horrible choice, and it might be good to randomise the number
of sf in each string also (currently the y all end up at max length)

Run on (4 X 3500 MHz CPU s)
CPU Caches:
  L1 Data 32K (x4)
  L1 Instruction 32K (x4)
  L2 Unified 262K (x4)
  L3 Unified 6291K (x1)
----------------------------------------------------------------------------------------------------------
Benchmark                                                                Time             CPU   Iterations
----------------------------------------------------------------------------------------------------------
RandFloats/double_from_string_sstream                                  804 ns          820 ns       896000
RandFloats/double_from_string_strtod                                   163 ns          162 ns      5973333
RandFloats/double_from_string_strtod_fixed                             175 ns          172 ns      5352107
RandFloats/double_from_string_strtod_fixed_const_ref                   150 ns          152 ns      5352107
RandFloats/double_from_string_std_from_chars                          87.1 ns         88.3 ns      9557333
RandFloatsComma/double_from_string_strtod_fixed_comma_ref              172 ns          173 ns      5146257
RandFloatsComma/double_from_string_strtod_fixed_comma_const_ref        180 ns          175 ns      5352107
2020-02-29 22:11:31 +13:00
..
data begin working on benchmarks for #29 2016-12-03 12:13:17 +01:00
disabled fix up benchmarks a bit 2016-12-03 16:31:30 +01:00
microbenchmarks add micro benchmarking project, setup number parsing benchmark 2020-02-29 22:11:31 +13:00
CMakeLists.txt add micro benchmarking project, setup number parsing benchmark 2020-02-29 22:11:31 +13:00
spreadsheet-load.cpp and another silent one... 2019-11-16 12:59:58 +13:00
styles.cpp Merge branch 'tasmail-master-shared-strings-performance' into dev 2018-07-23 00:10:16 -04:00
writer.cpp format as milliseconds 2018-07-29 15:11:19 +12:00