MCPcopy Create free account
hub / github.com/p-ranav/tabulate / ratio_str

Function ratio_str

samples/benchmark.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42std::string ratio_str(double ms, double baseline_ms) {
43 std::ostringstream out;
44 out << std::fixed << std::setprecision(2) << (ms / baseline_ms) << "x";
45 return out.str();
46}
47
48// Builds a plain, unformatted rows x cols table with short placeholder text,
49// used as the common base content for every feature-cost scenario below.

Callers 3

benchmark_feature_costsFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected