update criterion

This commit is contained in:
Geoffroy Couprie 2020-04-06 15:13:42 +02:00
parent 96e0b0a08b
commit 84b76730b0
5 changed files with 9 additions and 9 deletions

View File

@ -50,7 +50,7 @@ version = ">= 0.6, < 0.8"
optional = true
[dev-dependencies]
criterion = "0.2"
criterion = "0.3"
jemallocator = "^0.3"
doc-comment = "0.3"

View File

@ -190,7 +190,7 @@ Connection: keep-alive
move |b| {
b.iter(|| parse(data).unwrap());
},
).throughput(Throughput::Bytes(data.len() as u32)),
).throughput(Throughput::Bytes(data.len() as u64)),
);
}

View File

@ -243,7 +243,7 @@ file=payroll.dat
move |b| {
b.iter(|| categories(str.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(str.len() as u32)),
).throughput(Throughput::Bytes(str.len() as u64)),
);
}
@ -262,7 +262,7 @@ file=payroll.dat
move |b| {
b.iter(|| acc(str.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(str.len() as u32)),
).throughput(Throughput::Bytes(str.len() as u64)),
);
}
@ -276,7 +276,7 @@ fn bench_ini_key_value(c: &mut Criterion) {
move |b| {
b.iter(|| key_value(str.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(str.len() as u32)),
).throughput(Throughput::Bytes(str.len() as u64)),
);
}

View File

@ -259,7 +259,7 @@ file=payroll.dat
move |b| {
b.iter(|| categories(s.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(s.len() as u32)),
).throughput(Throughput::Bytes(s.len() as u64)),
);
}
@ -278,7 +278,7 @@ file=payroll.dat
move |b| {
b.iter(|| acc(s.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(s.len() as u32)),
).throughput(Throughput::Bytes(s.len() as u64)),
);
}
@ -292,7 +292,7 @@ fn bench_ini_complete_key_value(c: &mut Criterion) {
move |b| {
b.iter(|| key_value(s.as_bytes()).unwrap());
},
).throughput(Throughput::Bytes(s.len() as u32)),
).throughput(Throughput::Bytes(s.len() as u64)),
);
}

View File

@ -237,7 +237,7 @@ file=payroll.dat
move |b| {
b.iter(|| categories(s).unwrap());
},
).throughput(Throughput::Bytes(s.len() as u32)),
).throughput(Throughput::Bytes(s.len() as u64)),
);
}