summaryrefslogtreecommitdiffstats
path: root/third_party/rust/tracing/benches/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/tracing/benches/event.rs')
-rw-r--r--third_party/rust/tracing/benches/event.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/tracing/benches/event.rs b/third_party/rust/tracing/benches/event.rs
new file mode 100644
index 0000000000..1649325482
--- /dev/null
+++ b/third_party/rust/tracing/benches/event.rs
@@ -0,0 +1,12 @@
+use criterion::{criterion_group, criterion_main, Criterion};
+
+mod shared;
+
+fn bench(c: &mut Criterion) {
+ shared::for_all_recording(&mut c.benchmark_group("event"), |b| {
+ b.iter(|| tracing::info!("hello world!"))
+ });
+}
+
+criterion_group!(benches, bench);
+criterion_main!(benches);