Skip to content

Commit a150526

Browse files
committed
fix bench
1 parent 0becf5a commit a150526

File tree

1 file changed

+11
-1
lines changed
  • opentelemetry-appender-tracing/benches

1 file changed

+11
-1
lines changed

opentelemetry-appender-tracing/benches/logs.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
| noop_layer_enabled | 25 ns |
1212
| ot_layer_disabled | 19 ns |
1313
| ot_layer_enabled | 167 ns |
14+
15+
Hardware: Apple M4 Pro
16+
Total Number of Cores: 14 (10 performance and 4 efficiency)
17+
| Test | Average time|
18+
|-----------------------------|-------------|
19+
| log_no_subscriber | 285 ps |
20+
| noop_layer_disabled | 8 ns |
21+
| noop_layer_enabled | 14 ns |
22+
| ot_layer_disabled | 12 ns |
23+
| ot_layer_enabled | 186 ns |
1424
*/
1525

1626
use criterion::{criterion_group, criterion_main, Criterion};
@@ -140,7 +150,7 @@ fn benchmark_with_noop_layer(c: &mut Criterion, enabled: bool, bench_name: &str)
140150
name : "CheckoutFailed",
141151
book_id = "12345",
142152
book_title = "Rust Programming Adventures",
143-
"Unable to process checkout."
153+
message = "Unable to process checkout."
144154
);
145155
});
146156
});

0 commit comments

Comments
 (0)