summaryrefslogtreecommitdiffstats
path: root/hw/core/loader.c
diff options
context:
space:
mode:
authorEmilio G. Cota2018-09-10 20:31:54 +0200
committerRichard Henderson2018-09-26 17:55:54 +0200
commitbd224fce6017133733fee560ad8e5f737ad8b062 (patch)
tree21d08f3cb50fc5e6aed886b9f9ac0dba85fb1cd7 /hw/core/loader.c
parentqht: constify arguments to some internal functions (diff)
downloadqemu-bd224fce6017133733fee560ad8e5f737ad8b062.tar.gz
qemu-bd224fce6017133733fee560ad8e5f737ad8b062.tar.xz
qemu-bd224fce6017133733fee560ad8e5f737ad8b062.zip
qht-bench: add -p flag to precompute hash values
Precomputing the hash values allows us to perform more frequent accesses to the hash table, thereby reaching higher throughputs. We keep the old behaviour by default, since (1) we might confuse users if they measured a speedup without changing anything in the QHT implementation, and (2) benchmarking the hash function "on line" is also valuable. Before: $ taskset -c 0 tests/qht-bench -n 1 Throughput: 38.18 MT/s After: $ taskset -c 0 tests/qht-bench -n 1 Throughput: 38.16 MT/s After (with precomputing): $ taskset -c 0 tests/qht-bench -n 1 -p Throughput: 50.87 MT/s Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions