Skip to content

Commit

Permalink
Add benchmarks for csv crate
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Oct 4, 2018
1 parent dcc9877 commit 7359cfd
Show file tree
Hide file tree
Showing 98 changed files with 140,863 additions and 42 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
<<: *bench_crate
snap_0_2_4:
<<: *bench_crate
csv_1_0_2:
<<: *bench_crate

workflows:
version: 2
Expand Down Expand Up @@ -167,6 +169,9 @@ workflows:
- snap_0_2_4:
requires:
- fmt
- csv_1_0_2:
requires:
- fmt
- big_green_button:
type: approval
filters:
Expand Down
114 changes: 72 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ askama = "0.7"
members = [
"./benches/brotli_1_1_3",
"./benches/crossbeam_epoch_0_4_0",
"./benches/csv_1_0_2",
"./benches/diesel_1_1_1",
"./benches/doom_9e197d7",
"./benches/inflate_0_3_4",
Expand Down
13 changes: 13 additions & 0 deletions benches/csv_1_0_2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "csv_1_0_2"
version = "0.1.0"
authors = []

[dependencies]
csv = "=1.0.2"
serde = "1.0.55"
serde_derive = "1.0.55"
lolbench_support = { path = "../../support" }

[dev-dependencies]
lolbench = { path = "../../" }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_deserialize_borrowed_bytes ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_deserialize_borrowed_str ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_deserialize_owned_bytes ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_deserialize_owned_str ( & mut crit ) ; }
1 change: 1 addition & 0 deletions benches/csv_1_0_2/src/bin/count-game-iter-bytes.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_iter_bytes ( & mut crit ) ; }
1 change: 1 addition & 0 deletions benches/csv_1_0_2/src/bin/count-game-iter-str.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_iter_str ( & mut crit ) ; }
1 change: 1 addition & 0 deletions benches/csv_1_0_2/src/bin/count-game-read-bytes.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_read_bytes ( & mut crit ) ; }
1 change: 1 addition & 0 deletions benches/csv_1_0_2/src/bin/count-game-read-str.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_read_str ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_serialize_owned_bytes ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_game_serialize_owned_str ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_mbta_deserialize_borrowed_bytes ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_mbta_deserialize_borrowed_str ( & mut crit ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate csv_1_0_2 ; extern crate lolbench_support ; use lolbench_support :: { criterion_from_env , init_logging } ; fn main ( ) { init_logging ( ) ; let mut crit = criterion_from_env ( ) ; csv_1_0_2 :: count_mbta_deserialize_owned_bytes ( & mut crit ) ; }
Loading

0 comments on commit 7359cfd

Please sign in to comment.