libstdc++: Add performance test for atomic_flag [PR 46447]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 16 Dec 2020 11:51:42 +0000 (11:51 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 16 Dec 2020 13:36:02 +0000 (13:36 +0000)
commit3cee0c6562e5d8df69a9d6ad613a6f3edcfcc797
tree91740d88b6e8b3c550c856b930c229439aa51dbf
parenta2c2eec183acf25c9b214fa0827718e4d2fdfc93
libstdc++: Add performance test for atomic_flag [PR 46447]

This adds a test to compare the performance of std::atomic_flag with
similar operations on std::atomic_uchar and std::atomic_int.

libstdc++-v3/ChangeLog:

PR libstdc++/46447
* testsuite/performance/29_atomics/atomic_flag.cc: New test.
libstdc++-v3/testsuite/performance/29_atomics/atomic_flag.cc [new file with mode: 0644]