-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: revise docs and stores; add mixed example
- Loading branch information
1 parent
832ac8c
commit 124fd08
Showing
18 changed files
with
310 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set terminal pdf | ||
set ylabel "Throughput (MOP/s)" | ||
set xlabel "Time (sec)" | ||
set key left top | ||
|
||
set output "mixed.pdf" | ||
plot [0:21] [0:] \ | ||
"chashmap.txt" using ($1*$7+1):13 with lp ti "chashmap",\ | ||
"contrie.txt" using ($1*$7+1):13 with lp ti "contrie",\ | ||
"dashmap.txt" using ($1*$7+1):13 with lp ti "dashmap",\ | ||
"flurry.txt" using ($1*$7+1):13 with lp ti "flurry",\ | ||
"papaya.txt" using ($1*$7+1):13 with lp ti "papaya",\ | ||
"scchashmap.txt" using ($1*$7+1):13 with lp ti "scchashmap",\ | ||
"mutex_hashmap.txt" using ($1*$7+1):13 with lp ti "mutexhashmap",\ | ||
"rwlock_hashmap.txt" using ($1*$7+1):13 with lp ti "rwlockhashmap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
|
||
cargo build --profile release-lto | ||
|
||
STORE_DIR=$DIR/../../presets/stores | ||
BENCHMARK=$DIR/../../presets/benchmarks/mixed.toml | ||
|
||
STORES="chashmap contrie dashmap flurry papaya scchashmap mutex_hashmap rwlock_hashmap" | ||
|
||
for s in $STORES; do | ||
env global.threads=32 cargo run --profile release-lto -- bench -s $STORE_DIR/$s.toml -b $BENCHMARK 2>/dev/null | tee $s.txt | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[global] | ||
threads = 1 | ||
repeat = 5 | ||
klen = 8 | ||
vlen = 16 | ||
kmin = 0 | ||
kmax = 1000000 | ||
report = "repeat" | ||
|
||
[[benchmark]] | ||
set_perc = 100 | ||
get_perc = 0 | ||
del_perc = 0 | ||
repeat = 1 | ||
dist = "incrementp" | ||
report = "hidden" | ||
|
||
# write-intensive, zipfian | ||
[[benchmark]] | ||
set_perc = 50 | ||
get_perc = 50 | ||
del_perc = 0 | ||
timeout = 1.0 | ||
dist = "zipfian" | ||
|
||
# write-intensive, zipfian, hotspot in middle | ||
[[benchmark]] | ||
set_perc = 50 | ||
get_perc = 50 | ||
del_perc = 0 | ||
timeout = 1.0 | ||
dist = "zipfian" | ||
zipf_hotspot = 0.5 | ||
|
||
# read-intensive, zipfian | ||
[[benchmark]] | ||
set_perc = 5 | ||
get_perc = 95 | ||
del_perc = 0 | ||
timeout = 1.0 | ||
dist = "zipfian" | ||
|
||
# read-only, uniform | ||
[[benchmark]] | ||
set_perc = 0 | ||
get_perc = 100 | ||
del_perc = 0 | ||
timeout = 1.0 | ||
dist = "uniform" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.