Add benchmarks for all implemented headers except set-cookie.

This commit is contained in:
Jonathan Reem
2014-11-10 16:32:30 -08:00
parent 18f5e89432
commit d4312c8fe8
13 changed files with 31 additions and 0 deletions

View File

@@ -69,3 +69,7 @@ impl FromStr for Date {
}
}
bench_header!(imf_fixdate, Date, { vec![b"Sun, 07 Nov 1994 08:48:37 GMT".to_vec()] })
bench_header!(rfc_850, Date, { vec![b"Sunday, 06-Nov-94 08:49:37 GMT".to_vec()] })
bench_header!(asctime, Date, { vec![b"Sun Nov 6 08:49:37 1994".to_vec()] })