summaryrefslogtreecommitdiff
path: root/test_util
diff options
context:
space:
mode:
authorWilliam Perron <hey@wperron.io>2021-01-17 11:40:29 -0500
committerGitHub <noreply@github.com>2021-01-17 11:40:29 -0500
commit2b5b93158c1fc8887b2d4e4d1e4fc3d71c795027 (patch)
tree220c7190e1ce09988ee602c8b1f4944831ea8d92 /test_util
parent271fbe39e3a8390146b4fccb23a930987b007ea0 (diff)
benchmark: cleanup serde_json values being passed around (#9115)
Diffstat (limited to 'test_util')
-rw-r--r--test_util/Cargo.toml1
-rw-r--r--test_util/src/lib.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/test_util/Cargo.toml b/test_util/Cargo.toml
index e41f9a01d..1613d175b 100644
--- a/test_util/Cargo.toml
+++ b/test_util/Cargo.toml
@@ -19,6 +19,7 @@ hyper = { version = "0.14.2", features = ["server", "http1", "runtime"] }
lazy_static = "1.4.0"
os_pipe = "0.9.2"
regex = "1.4.3"
+serde = { version = "1.0.116", features = ["derive"] }
tempfile = "3.1.0"
tokio = { version = "1.0.1", features = ["full"] }
tokio-rustls = "0.22.0"
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 9e9a9c971..53dc82c39 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -21,6 +21,7 @@ use os_pipe::pipe;
#[cfg(unix)]
pub use pty;
use regex::Regex;
+use serde::Serialize;
use std::collections::HashMap;
use std::convert::Infallible;
use std::env;
@@ -1366,7 +1367,7 @@ pub fn parse_wrk_output(output: &str) -> WrkOutput {
}
}
-#[derive(Debug)]
+#[derive(Debug, Clone, Serialize)]
pub struct StraceOutput {
pub percent_time: f64,
pub seconds: f64,