We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6d2bb7 commit e938deaCopy full SHA for e938dea
core/benches/fmt.rs
@@ -148,3 +148,17 @@ fn write_u64_min(bh: &mut Bencher) {
148
test::black_box(format!("{}", 0u64));
149
});
150
}
151
+
152
+#[bench]
153
+fn write_u8_max(bh: &mut Bencher) {
154
+ bh.iter(|| {
155
+ test::black_box(format!("{}", u8::MAX));
156
+ });
157
+}
158
159
160
+fn write_u8_min(bh: &mut Bencher) {
161
162
+ test::black_box(format!("{}", 0u8));
163
164
0 commit comments