We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079d9b1 commit 6778396Copy full SHA for 6778396
src/libcore/benches/iter.rs
@@ -334,3 +334,13 @@ fn bench_filter_chain_ref_count(b: &mut Bencher) {
334
(0i64..1000000).chain(0..1000000).map(black_box).by_ref().filter(|x| x % 3 == 0).count()
335
})
336
}
337
+
338
+#[bench]
339
+fn bench_partial_cmp(b: &mut Bencher) {
340
+ b.iter(|| (0..100000).map(black_box).partial_cmp((0..100000).map(black_box)))
341
+}
342
343
344
+fn bench_lt(b: &mut Bencher) {
345
+ b.iter(|| (0..100000).map(black_box).lt((0..100000).map(black_box)))
346
0 commit comments