Skip to content

Commit

Permalink
actually fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed Sep 17, 2020
1 parent de1610e commit e2efd55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions command-parser/benches/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("c: hashset", |b| {
let set = HashSet::from_iter(commands.iter().map(|e| Cow::from(*e)));

for e in commands.iter() {
set.insert(Cow::from(*e));
}

b.iter(|| {
for command in commands.iter() {
hashset(&set, command);
Expand All @@ -112,7 +108,7 @@ fn criterion_benchmark(c: &mut Criterion) {
});

c.bench_function("c: patricia_tree", |b| {
let mut set = PatriciaSet::from_iter(commands.iter());
let set = PatriciaSet::from_iter(commands.iter());

b.iter(|| {
for command in commands.iter() {
Expand Down

0 comments on commit e2efd55

Please # to comment.