Skip to content

Commit

Permalink
Add a benchmark for report_json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jul 31, 2024
1 parent 329b3e0 commit 04024f7
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ target/

# Vim swapfiles
.*.sw*

/reports
lcov.info
162 changes: 151 additions & 11 deletions Cargo.lock

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

17 changes: 12 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name = "codecov-rs"
version = "0.1.0"
edition = "2021"

[features]
default = ["pyreport"]
pyreport = []

[profile.release]
debug = 1

[dependencies]
rusqlite = { version = "0.30.0", features = ["bundled", "limits"] }
rusqlite_migration = { version = "1.1.0", features = ["from-directory"] }
Expand Down Expand Up @@ -31,10 +38,10 @@ winnow = "0.5.34"
serde_json = "1.0.117"

[dev-dependencies]
tempfile = "3.9.0"
divan = "0.1.14"
mockall = { version = "0.12.1", features = ["nightly"] }
tempfile = "3.9.0"

[features]
default = ["pyreport"]

pyreport = []
[[bench]]
name = "pyreport"
harness = false
Loading

0 comments on commit 04024f7

Please sign in to comment.