mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2025-02-17 06:07:59 +00:00
update criterion
This commit is contained in:
parent
96e0b0a08b
commit
84b76730b0
@ -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"
|
||||
|
||||
|
@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user