Skip to content

Commit df46ea5

Browse files
Apply suggestions from code review
Co-authored-by: Johannes Gäßler <[email protected]>
1 parent cac00cf commit df46ea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/llama-bench/llama-bench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ struct test {
901901
int n_prompt;
902902
int n_gen;
903903
std::string test_time;
904-
std::vector<uint64_t> samples_e2e_ns; // e2e latency including prompt processing + token generation
904+
std::vector<uint64_t> samples_e2e_ns; // e2e latency, i.e. prompt processing + token generation
905905
std::vector<uint64_t> samples_prompt_ns; // prompt processing latency
906906
std::vector<uint64_t> samples_gen_ns; // token generation latency
907907

@@ -959,7 +959,7 @@ struct test {
959959
}
960960

961961
std::vector<double> get_e2e_ts() const {
962-
// for only prompt processing, atleast 1 token is generated
962+
// for only prompt processing, at least 1 token is generated
963963
int n_tokens = n_gen==0 ? 1 : n_gen;
964964
return get_ts(samples_e2e_ns, n_tokens);
965965
}

0 commit comments

Comments
 (0)