Skip to content

Commit

Permalink
parser: add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Oct 4, 2023
1 parent b4fed06 commit fc3a3ce
Show file tree
Hide file tree
Showing 5 changed files with 529 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions crates/parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ license.workspace = true
name = "flow-parser"
path = "src/main.rs"

[[bench]]
name = "peoples_500"
harness = false

[dependencies]
json = { path = "../json" }
Expand All @@ -24,6 +27,7 @@ caseless = { workspace = true }
chardetng = { workspace = true }
chrono = { workspace = true }
chrono-tz = { workspace = true }
criterion = { workspace = true }
csv = { workspace = true }
encoding_rs = { workspace = true }
flate2 = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions crates/parser/benches/data/datetimes.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"no_timezone", "no_timezone_fractional", "rfc3339", "timezone_offset", "no_t", "no_t_fractional", "no_t_fractional_large"
"2020-01-01T00:00:00","2020-01-01T00:00:00.000","2020-01-01T00:00:00Z","2020-01-01 00:00:00+00:00","2020-01-01 00:00:00","2020-01-01 00:00:00.000","2020-01-01 00:00:00.000000000"
Loading

0 comments on commit fc3a3ce

Please sign in to comment.