bencher: print html table with full results too, use num_format

This commit is contained in:
Joakim Frostegård 2024-01-01 16:42:27 +01:00
parent 29e243ac81
commit 4db1fe75f2
5 changed files with 164 additions and 19 deletions

View file

@ -163,9 +163,8 @@ impl<C> RunConfig<C> {
};
let avg_responses = {
static RE: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"Average responses per second: ([0-9]+\.?[0-9]+)").unwrap()
});
static RE: Lazy<Regex> =
Lazy::new(|| Regex::new(r"Average responses per second: ([0-9]+\.?)").unwrap());
let opt_avg_responses = RE
.captures_iter(&load_test_stdout)
@ -175,7 +174,7 @@ impl<C> RunConfig<C> {
avg_responses.to_string()
})
.and_then(|v| v.parse::<f32>().ok());
.and_then(|v| v.parse::<u64>().ok());
if let Some(avg_responses) = opt_avg_responses {
avg_responses
@ -199,7 +198,7 @@ impl<C> RunConfig<C> {
pub struct RunSuccessResults {
pub tracker_process_stats: ProcessStats,
pub avg_responses: f32,
pub avg_responses: u64,
}
#[derive(Debug)]