Skip to content

Commit

Permalink
The index keeps growing
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Aug 12, 2022
1 parent c95ec0b commit 4e366ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ fn mem_usage() {
let all_crates: Vec<_> = index.crates_parallel().map(|c| c.unwrap()).collect();
let after = ALLOCATOR.allocated();
let used = after - before;
assert!(all_crates.len() > 76200);
assert!(all_crates.len() > 89000);
eprintln!(
"used mem: {}B for {} crates, {}B per crate",
used,
all_crates.len(),
used / all_crates.len()
);
assert!(used / all_crates.len() < 5000);
assert!(used / all_crates.len() < 5100);
}

0 comments on commit 4e366ad

Please sign in to comment.