We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe264e commit de2249bCopy full SHA for de2249b
src/tests.rs
@@ -632,6 +632,18 @@ fn unquoted_url(b: &mut Bencher) {
632
})
633
}
634
635
+
636
+#[cfg(feature = "bench")]
637
+#[bench]
638
+fn numeric(b: &mut Bencher) {
639
+ b.iter(|| {
640
+ for _ in 0..1000000 {
641
+ let mut input = Parser::new("10px");
642
+ let _ = test::black_box(input.next());
643
+ }
644
+ })
645
+}
646
647
struct JsonParser;
648
649
#[test]
0 commit comments