Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

Commit ad0652d

Browse files
committed
fix(bench): correct type mismatch in csv_operations.rs by using u16 literals
- Change ci_or_local calls to use u16 slices instead of i32 literals - Fixes compilation error where *count (u16) was being passed to generate_vlan_configurations which expects u16 - Affects all three benchmark functions: serialization, deserialization, and round-trip tests - Maintains same CI-optimized dataset sizes: [100,500] vs [100,500,1000,2000]
1 parent c06660d commit ad0652d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

benches/csv_operations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn bench_csv_serialization(c: &mut Criterion) {
1414
let mut group = c.benchmark_group("csv_serialization");
1515

1616
// Use CI-appropriate dataset sizes for CSV operations
17-
let counts = ci_or_local(&[100, 500], &[100, 500, 1000, 2000]);
17+
let counts = ci_or_local(&[100u16, 500u16], &[100u16, 500u16, 1000u16, 2000u16]);
1818
for count in counts.iter() {
1919
let configs = generate_vlan_configurations(*count, Some(42), None).unwrap();
2020

@@ -45,7 +45,7 @@ fn bench_csv_deserialization(c: &mut Criterion) {
4545
let mut group = c.benchmark_group("csv_deserialization");
4646

4747
// Use CI-appropriate dataset sizes for CSV operations
48-
let counts = ci_or_local(&[100, 500], &[100, 500, 1000, 2000]);
48+
let counts = ci_or_local(&[100u16, 500u16], &[100u16, 500u16, 1000u16, 2000u16]);
4949
for count in counts.iter() {
5050
let configs = generate_vlan_configurations(*count, Some(42), None).unwrap();
5151
let temp_file = NamedTempFile::new().unwrap();
@@ -80,7 +80,7 @@ fn bench_csv_round_trip(c: &mut Criterion) {
8080
let mut group = c.benchmark_group("csv_round_trip");
8181

8282
// Use CI-appropriate dataset sizes for round-trip tests
83-
let counts = ci_or_local(&[100, 500], &[100, 500, 1000]);
83+
let counts = ci_or_local(&[100u16, 500u16], &[100u16, 500u16, 1000u16]);
8484
for count in counts.iter() {
8585
let configs = generate_vlan_configurations(*count, Some(42), None).unwrap();
8686

0 commit comments

Comments
 (0)