MCPcopy Create free account
hub / github.com/bitflags/bitflags / format_flags_10_present

Function format_flags_10_present

benches/parse.rs:50–64  ·  view source on GitHub ↗
(b: &mut test::Bencher)

Source from the content-addressed store, hash-verified

48
49#[bench]
50fn format_flags_10_present(b: &mut test::Bencher) {
51 b.iter(|| {
52 (Flags10::A
53 | Flags10::B
54 | Flags10::C
55 | Flags10::D
56 | Flags10::E
57 | Flags10::F
58 | Flags10::G
59 | Flags10::H
60 | Flags10::I
61 | Flags10::J)
62 .to_string()
63 })
64}
65
66#[bench]
67fn parse_flags_1_10(b: &mut test::Bencher) {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected