Skip to content

Commit

Permalink
a bump allocator didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 24, 2021
1 parent 79949ff commit b3914c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions BENCHMARKING.md
Expand Up @@ -85,3 +85,18 @@ Benchmark #1: ./target/release/similar-sort benchmark < /usr/share/dict/words
```

Ok, seems fine!

## Bump allocator

What if deallocation is the problem?
We don't do anything fancy in `Drop` other than flushing the final output... let's try!
(Using [bump_alloc](https://crates.io/crates/bump_alloc))

```
$ hyperfine './target/release/similar-sort benchmark < /usr/share/dict/words'
Benchmark #1: ./target/release/similar-sort benchmark < /usr/share/dict/words
Time (mean ± σ): 1.351 s ± 0.030 s [User: 5.809 s, System: 2.811 s]
Range (min … max): 1.321 s … 1.406 s 10 runs
```

... well, no. Probably not a good idea.

0 comments on commit b3914c1

Please sign in to comment.