mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
bencher: print html table with full results too, use num_format
This commit is contained in:
parent
29e243ac81
commit
4db1fe75f2
5 changed files with 164 additions and 19 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue