Skip to content

Conversation

@puji4810
Copy link
Contributor

@puji4810 puji4810 commented Dec 9, 2025

  • Introduced a new benchmark file atoi_vs_from_chars_hex.cc to compare the performance of various hex string conversion methods, including strtoul, std::from_chars, fast_io::char_digit_to_literal, and fast_float::from_chars.
  • Updated CMakeLists.txt to include the new benchmark executable benchmark.0022.from_chars_hex and set appropriate include directories and compile features.

puji4810 and others added 6 commits December 9, 2025 15:48
- Introduced a new benchmark file `atoi_vs_from_chars_hex.cc` to compare the performance of various hex string conversion methods, including `strtoul`, `std::from_chars`, `fast_io::char_digit_to_literal`, and `fast_float::from_chars`.
- Updated `CMakeLists.txt` to include the new benchmark executable `benchmark.0022.from_chars_hex` and set appropriate include directories and compile features.
- Introduced a new function `make_fixed_digits_numbers_buffer` to generate fixed-width decimal number buffers for benchmarking.
- Enhanced the main function to include benchmarks for various integer parsing methods (e.g., `std::atoi`, `std::from_chars`, `fast_io::char_digit_to_literal`, and `fast_float::from_chars`) on fixed-width decimal substrings.
- Updated output to use `fast_io::perrln` for consistency in error reporting.
- Introduced a new function `make_fixed_hex_numbers_buffer` to generate fixed-width hexadecimal number buffers for benchmarking.
- Enhanced the main function to include benchmarks for various integer parsing methods (e.g., `strtoul`, `std::from_chars`, `fast_io::char_digit_to_literal`, and `fast_float::from_chars`) on fixed-width hexadecimal substrings.
- Updated output to use `fast_io::perrln` for consistency in error reporting.
Update atoi_vs_from_chars.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants