Skip to content

Commit

Permalink
#19 even slower
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 22, 2023
1 parent 8e64a84 commit 10c5d81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -75,6 +75,9 @@ gain, while numbers below 1.0 demonstrate performance loss.

<!-- benchmark -->

As you see, the higher performance gain is achieved for maps smaller than ten keys.
For a maps of just a few keys, the gain is enormous.

## How to Contribute

First, install [Rust](https://www.rust-lang.org/tools/install) and then:
Expand Down
4 changes: 2 additions & 2 deletions rebuild_benchmark.sh
Expand Up @@ -15,7 +15,7 @@ mkdir -p target/benchmark
for capacity in ${capacities}; do
sed -E -i "s/CAPACITY: usize = [0-9]+/CAPACITY: usize = ${capacity}/g" src/bin/benchmark.rs
cargo build --release
./target/release/benchmark 100000 > target/benchmark/${capacity}.out
./target/release/benchmark 1000000 > target/benchmark/${capacity}.out
done

{
Expand Down Expand Up @@ -67,7 +67,7 @@ perl -e '
open(my $t, "<", $table);
{ local $/; $table = <$t>; }
close($t);
$p[1] = "\n\n" . $table . "\n\n";
$p[1] = "\n" . $table . "\n";
my $new = join($sep, @p);
open(my $w, ">", $file);
print $w join($sep, @p);
Expand Down

0 comments on commit 10c5d81

Please sign in to comment.