projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47e0af8
)
Adds writer test case for RCU
master
author
Peizhao Ou
<peizhaoo@uci.edu>
Fri, 16 Feb 2018 00:26:33 +0000
(16:26 -0800)
committer
Peizhao Ou
<peizhaoo@uci.edu>
Fri, 16 Feb 2018 00:26:33 +0000
(16:26 -0800)
folly/stress-test/stress-parallel-folly-sync.cpp
patch
|
blob
|
history
diff --git
a/folly/stress-test/stress-parallel-folly-sync.cpp
b/folly/stress-test/stress-parallel-folly-sync.cpp
index 4cb37b473506fe021fed0d30716359adf44ed0be..d87e348d7f36b0add62334f8db4617a47ecf2e55 100644
(file)
--- a/
folly/stress-test/stress-parallel-folly-sync.cpp
+++ b/
folly/stress-test/stress-parallel-folly-sync.cpp
@@
-221,14
+221,22
@@
unsigned FollySyncTest_Parallel::s_nSharedMutexWritePercentage;
unsigned FollySyncTest_Parallel::s_nRWSpinLockWritePercentage;
unsigned FollySyncTest_Parallel::s_nRWTicketSpinLockWritePercentage;
unsigned FollySyncTest_Parallel::s_nRWSpinLockWritePercentage;
unsigned FollySyncTest_Parallel::s_nRWTicketSpinLockWritePercentage;
-TEST_F(FollySyncTest_Parallel, FollyRCU_Nonstop
Read
erSync) {
+TEST_F(FollySyncTest_Parallel, FollyRCU_Nonstop
Writ
erSync) {
FollyRcuThreading(run_rcu_writer_sync_nonstop, run_rcu_reader_pass_count);
}
FollyRcuThreading(run_rcu_writer_sync_nonstop, run_rcu_reader_pass_count);
}
-TEST_F(FollySyncTest_Parallel, FollyRCU_Nonstop
Read
erNoSync) {
+TEST_F(FollySyncTest_Parallel, FollyRCU_Nonstop
Writ
erNoSync) {
FollyRcuThreading(run_rcu_writer_retire_nonstop, run_rcu_reader_pass_count);
}
FollyRcuThreading(run_rcu_writer_retire_nonstop, run_rcu_reader_pass_count);
}
+//TEST_F(FollySyncTest_Parallel, FollyRCU_NonstopReaderSync) {
+// FollyRcuThreading(run_rcu_writer_sync_pass_count, run_rcu_reader_nonstop);
+//}
+
+TEST_F(FollySyncTest_Parallel, FollyRCU_NonstopReaderNoSync) {
+ FollyRcuThreading(run_rcu_writer_retire_pass_count, run_rcu_reader_nonstop);
+}
+
TEST_F(FollySyncTest_Parallel, FollyRWTicketSpinLock_32) {
FollyRWLockThreading<RWTicketSpinLock32>(s_nRWTicketSpinLockPassCount,
s_nRWTicketSpinLockWritePercentage);
TEST_F(FollySyncTest_Parallel, FollyRWTicketSpinLock_32) {
FollyRWLockThreading<RWTicketSpinLock32>(s_nRWTicketSpinLockPassCount,
s_nRWTicketSpinLockWritePercentage);