Add workflow arguments for verbosity. Add missing ldap to full features. Superpose --all-features as backstop for unlisted features. Fix hardened_malloc requiring gcc Signed-off-by: Jason Volk <jason@zemos.net>
17 lines
468 B
Rust
17 lines
468 B
Rust
#[cfg(tuwunel_bench)]
|
|
extern crate test;
|
|
|
|
#[cfg(tuwunel_bench)]
|
|
#[cfg_attr(tuwunel_bench, bench)]
|
|
fn ser_str(b: &mut test::Bencher) {
|
|
use tuwunel_core::ruma::{RoomId, UserId};
|
|
|
|
use crate::ser::serialize_to_vec;
|
|
|
|
let user_id: &UserId = "@user:example.com".try_into().unwrap();
|
|
let room_id: &RoomId = "!room:example.com".try_into().unwrap();
|
|
b.iter(|| {
|
|
let key = (user_id, room_id);
|
|
let _s = serialize_to_vec(key).expect("failed to serialize user_id");
|
|
});
|
|
}
|