1010 | noop_layer_disabled | 12 ns |
1111 | noop_layer_enabled | 25 ns |
1212 | ot_layer_disabled | 19 ns |
13- | ot_layer_enabled | 196 ns |
13+ | ot_layer_enabled | 167 ns |
1414*/
1515
1616use criterion:: { criterion_group, criterion_main, Criterion } ;
@@ -94,7 +94,7 @@ fn benchmark_no_subscriber(c: &mut Criterion) {
9494 c. bench_function ( "log_no_subscriber" , |b| {
9595 b. iter ( || {
9696 error ! (
97- name = "CheckoutFailed" ,
97+ name : "CheckoutFailed" ,
9898 book_id = "12345" ,
9999 book_title = "Rust Programming Adventures" ,
100100 message = "Unable to process checkout."
@@ -120,7 +120,7 @@ fn benchmark_with_ot_layer(c: &mut Criterion, enabled: bool, bench_name: &str) {
120120 c. bench_function ( bench_name, |b| {
121121 b. iter ( || {
122122 error ! (
123- name = "CheckoutFailed" ,
123+ name : "CheckoutFailed" ,
124124 book_id = "12345" ,
125125 book_title = "Rust Programming Adventures" ,
126126 message = "Unable to process checkout."
@@ -137,7 +137,7 @@ fn benchmark_with_noop_layer(c: &mut Criterion, enabled: bool, bench_name: &str)
137137 c. bench_function ( bench_name, |b| {
138138 b. iter ( || {
139139 error ! (
140- name = "CheckoutFailed" ,
140+ name : "CheckoutFailed" ,
141141 book_id = "12345" ,
142142 book_title = "Rust Programming Adventures" ,
143143 "Unable to process checkout."
0 commit comments