MCPcopy Create free account
hub / github.com/ashvardanian/less_slow.cpp / parse_ranges

Function parse_ranges

less_slow.cpp:4424–4436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4422}
4423
4424void parse_ranges(bm::State &state, std::string_view config_text) {
4425 std::size_t pairs = 0, bytes = 0;
4426 std::vector<std::pair<std::string, std::string>> settings;
4427 for (auto _ : state) {
4428 settings.clear();
4429 config_parse_ranges(config_text, settings);
4430 bm::DoNotOptimize(settings);
4431 pairs += settings.size();
4432 bytes += config_text.size();
4433 }
4434 state.SetBytesProcessed(bytes);
4435 state.counters["pairs/s"] = bm::Counter(pairs, bm::Counter::kIsRate);
4436}
4437
4438#include <stringzilla/stringzilla.hpp>
4439

Callers

nothing calls this directly

Calls 2

config_parse_rangesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected