Skip to content

Commit

Permalink
fix cargo bench
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Sep 19, 2024
1 parent dfaa8ff commit 7ee3227
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 2 deletions.
156 changes: 156 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ gix = { version = "0.66.0", default-features = false, features = [
"blob-diff",
"mailmap",
"index",
"status"
"status",
] }
gix-features = { version = "0.38.0", features = ["zlib-ng"] }
globset = "0.4.15"
Expand All @@ -65,6 +65,7 @@ tokei = "12.1.2"
typetag = "0.2"

[dev-dependencies]
criterion = "0.5.1"
gix-testtools = "0.15.0"
insta = { version = "1.40.0", features = ["json", "redactions"] }
rstest = "0.22.0"
Expand Down
2 changes: 1 addition & 1 deletion benches/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use gix::{open, ThreadSafeRepository};
use onefetch::{cli::CliOptions, info::build_info};

fn bench_repo_info(c: &mut Criterion) {
let name = "repo.sh".to_string();
let name = "make_repo.sh".to_string();
let repo_path = gix_testtools::scripted_fixture_read_only(name).unwrap();
let repo = ThreadSafeRepository::open_opts(repo_path, open::Options::isolated()).unwrap();
let config: CliOptions = CliOptions {
Expand Down

0 comments on commit 7ee3227

Please sign in to comment.