Skip to content

Commit 1183d79

Browse files
committed
Simplify setup
1 parent d171e34 commit 1183d79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opentelemetry/benches/metrics.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ fn counter_add(c: &mut Criterion) {
6767
c.bench_function("AddWithDynamicAttributes", |b| {
6868
b.iter_batched(
6969
|| {
70-
let value1 = "a".repeat(6); // Repeat character six times to match the length of value strings used in other benchmarks
71-
let value2 = "b".repeat(6);
72-
let value3 = "c".repeat(6);
73-
let value4 = "d".repeat(6);
70+
let value1 = "value1".to_string(); // Repeat character six times to match the length of value strings used in other benchmarks
71+
let value2 = "value2".to_string();
72+
let value3 = "value3".to_string();
73+
let value4 = "value4".to_string();
7474

7575
(value1, value2, value3, value4)
7676
},

0 commit comments

Comments
 (0)