diff options
| author | Emilio G. Cota | 2016-06-27 21:02:05 +0200 |
|---|---|---|
| committer | Richard Henderson | 2016-10-26 17:29:01 +0200 |
| commit | 070e3edceaa023109bfa7a1c5c259342e0b6b625 (patch) | |
| tree | becaf5021a41e049e4d992bd062cc0e6c0db6001 /tests/.gitignore | |
| parent | target-i386: remove helper_lock() (diff) | |
| download | qemu-070e3edceaa023109bfa7a1c5c259342e0b6b625.tar.gz qemu-070e3edceaa023109bfa7a1c5c259342e0b6b625.tar.xz qemu-070e3edceaa023109bfa7a1c5c259342e0b6b625.zip | |
tests: add atomic_add-bench
With this microbenchmark we can measure the overhead of emulating atomic
instructions with a configurable degree of contention.
The benchmark spawns $n threads, each performing $o atomic ops (additions)
in a loop. Each atomic operation is performed on a different cache line
(assuming lines are 64b long) that is randomly selected from a range [0, $r).
[ Note: each $foo corresponds to a -foo flag ]
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-Id: <1467054136-10430-20-git-send-email-cota@braap.org>
Diffstat (limited to 'tests/.gitignore')
| -rw-r--r-- | tests/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index 4aec8bc5fa..64e050e859 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,3 +1,4 @@ +atomic_add-bench check-qdict check-qfloat check-qint |
