Skip to content

Commit

Permalink
feat: Add decoded tokens column
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoch committed Oct 16, 2024
1 parent a406689 commit 2ef0ba1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ mod requests;
mod results;
mod scheduler;
mod table;
mod tokens;
mod writers;

pub struct RunConfiguration {
Expand Down
8 changes: 7 additions & 1 deletion src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ pub fn results_table(benchmark: BenchmarkReport) -> anyhow::Result<tabled::Table
"ITL (avg)",
"Throughput",
"Error Rate",
"Sucessful Requests",
"Successful Requests",
"Decoded tokens per req (avg)",
]);
let results = benchmark.get_results();
for result in results {
Expand Down Expand Up @@ -82,6 +83,11 @@ pub fn results_table(benchmark: BenchmarkReport) -> anyhow::Result<tabled::Table
result.total_requests()
)
.as_str(),
format!(
"{:.2}",
result.total_tokens() as f64 / result.successful_requests() as f64
)
.as_str(),
]);
}
let mut table = builder.build();
Expand Down
1 change: 0 additions & 1 deletion src/tokens.rs

This file was deleted.

0 comments on commit 2ef0ba1

Please sign in to comment.