From 11808c6356c2a5966ddaeb18341fcdc2290c9179 Mon Sep 17 00:00:00 2001 From: Stuart Stock Date: Sat, 17 Feb 2018 11:39:08 -0600 Subject: Add benchmarks for message and response creation As `[bench]` isn't in stable Rust yet, use [Criterion.rs]https://github.com/japaric/criterion.rs) as the benchmarking harness. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index c29f852..57bd058 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,3 +21,9 @@ fern = "0.4" yaml-rust = "0.3.5" ctrlc = { version = "3.0", features = ["termination"] } +[dev-dependencies] +criterion = "0.2.0" + +[[bench]] +name = "messages" +harness = false -- cgit v1.2.3