Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use csv::{
};

static NFL: &'static str = include_str!("../examples/data/bench/nfl.csv");
static NFL_WHITESPACE: &'static str =
include_str!("../examples/data/bench/nfl_with_trimmable_whitespace.csv");
static GAME: &'static str = include_str!("../examples/data/bench/game.csv");
static POP: &'static str =
include_str!("../examples/data/bench/worldcitiespop.csv");
Expand Down Expand Up @@ -309,6 +311,12 @@ bench_serde_borrowed_str!(
);
bench!(count_nfl_iter_bytes, NFL, count_iter_bytes, 130000);
bench_trimmed!(count_nfl_iter_bytes_trimmed, NFL, count_iter_bytes, 130000);
bench_trimmed!(
count_nfl_iter_bytes_trimmed_whitespace,
NFL_WHITESPACE,
count_iter_bytes,
130000
);
bench!(count_nfl_iter_str, NFL, count_iter_str, 130000);
bench_trimmed!(count_nfl_iter_str_trimmed, NFL, count_iter_str, 130000);
bench!(count_nfl_read_bytes, NFL, count_read_bytes, 130000);
Expand Down
Loading