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

@@ -94,3 +94,5 @@ fn test_fmt() {
assert_eq!(headers.to_string()[], "Cookie: foo=bar; baz=quux\r\n");
}
bench_header!(bench, Cookies, { vec![b"foo=bar; baz=quux".to_vec()] })