MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / get_ts

Method get_ts

examples/llama-bench/llama-bench.cpp:534–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532 }
533
534 std::vector<double> get_ts() const {
535 int n_tokens = n_prompt + n_gen;
536 std::vector<double> ts;
537 std::transform(samples_ns.begin(), samples_ns.end(), std::back_inserter(ts), [n_tokens](uint64_t t) { return 1e9 * n_tokens / t; });
538 return ts;
539 }
540
541 double avg_ts() const {
542 return ::avg(get_ts());

Callers 1

print_testMethod · 0.45

Calls 3

transformFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected