diff options
author | Stuart Stock <stuart@int08h.com> | 2018-02-17 11:39:08 -0600 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-02-17 11:39:46 -0600 |
commit | 11808c6356c2a5966ddaeb18341fcdc2290c9179 (patch) | |
tree | c801845297f66d102d36c361f6fcd9073026d7c4 /src/message.rs | |
parent | 031de4b338e8a7256b3201913da560c59d427776 (diff) | |
download | roughenough-11808c6356c2a5966ddaeb18341fcdc2290c9179.zip |
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.
Diffstat (limited to 'src/message.rs')
-rw-r--r-- | src/message.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.rs b/src/message.rs index 82e759f..2bbbb45 100644 --- a/src/message.rs +++ b/src/message.rs @@ -98,7 +98,7 @@ impl RtMessage { } // check we wrote exactly what we expected - assert!(out.len() == self.encoded_size(), "unexpected length"); + assert_eq!(out.len(), self.encoded_size(), "unexpected length"); Ok(out) } |