#include #include class SelectionOfNumbers : public benchmark::Fixture { protected: std::vector m_numbers{ "0", "123", "0.123", ".123", "1e9", "1.87E-18", "012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", }; }; BENCHMARK_F(SelectionOfNumbers, ParseStdRegex)(benchmark::State &state) { using namespace math::server::lexer::details; for (auto _ : state) { for (const auto& src : m_numbers) { parse_number(src); } } }