Skip to content

Commit

Permalink
remove build-deps and build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
saik0 committed Feb 9, 2022
1 parent d1fa477 commit 7461720
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ criterion = { version = "0.3", features = ["html_reports"] }
quickcheck = "0.9"
quickcheck_macros = "0.9"

[build-dependencies]
anyhow = "1.0"
bytes = "1.0"
convert_case = "0.4"
reqwest = { version = "0.11.3", features = ["blocking", "rustls-tls"], default-features = false }
zip = "0.5.12"

[features]
simd = ["roaring/simd"]

Expand Down
14 changes: 0 additions & 14 deletions benchmarks/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,20 +346,6 @@ fn serialized_size(c: &mut Criterion) {
});
}

fn extract_integers<A: AsRef<str>>(content: A) -> Result<Vec<u32>, ParseIntError> {
content.as_ref().split(',').map(|s| s.trim().parse()).collect()
}

// Parse every file into a vector of integer.
fn parse_dir_files<A: AsRef<Path>>(
files: A,
) -> io::Result<Vec<(PathBuf, Result<Vec<u32>, ParseIntError>)>> {
fs::read_dir(files)?
.map(|r| r.and_then(|e| fs::read_to_string(e.path()).map(|r| (e.path(), r))))
.map(|r| r.map(|(p, c)| (p, extract_integers(c))))
.collect()
}

fn from_sorted_iter(c: &mut Criterion) {
let mut group = c.benchmark_group("from_sorted_iter");

Expand Down
1 change: 0 additions & 1 deletion benchmarks/build.rs

This file was deleted.

0 comments on commit 7461720

Please sign in to comment.