diff options
author | lars@mysql.com <> | 2006-06-30 11:31:43 +0200 |
---|---|---|
committer | lars@mysql.com <> | 2006-06-30 11:31:43 +0200 |
commit | 78a9adb659ee458c4969ba1648a9eaf63ea9579e (patch) | |
tree | 8e113606df5aa8286531e1aaeb27bca04d3992d8 /unittest/mysys | |
parent | 315ae8f4cc5ab242aa0341cc1d62c041db7fc684 (diff) | |
download | mariadb-git-78a9adb659ee458c4969ba1648a9eaf63ea9579e.tar.gz |
Changed the number of test iterations since this makes test time
go from 623 seconds to 11 seconds on AMD64.
This is because we have no native atomic implementation on AMD64,
so the rwlock-based implementation is used, which is a bit slow.
It will be probably be optimized for AMD64 quite soon, but for now
this test case will do fewer iterations.
Diffstat (limited to 'unittest/mysys')
-rw-r--r-- | unittest/mysys/my_atomic-t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittest/mysys/my_atomic-t.c b/unittest/mysys/my_atomic-t.c index 71408ce957f..4e2e496c3b1 100644 --- a/unittest/mysys/my_atomic-t.c +++ b/unittest/mysys/my_atomic-t.c @@ -166,9 +166,9 @@ int main() pthread_cond_init(&cond, 0); my_atomic_rwlock_init(&rwl); - test_atomic("my_atomic_add32", test_atomic_add_handler, 100,1000000); - test_atomic("my_atomic_swap32", test_atomic_swap_handler, 100,1000000); - test_atomic("my_atomic_cas32", test_atomic_cas_handler, 100,1000000); + test_atomic("my_atomic_add32", test_atomic_add_handler, 100,10000); + test_atomic("my_atomic_swap32", test_atomic_swap_handler, 100,10000); + test_atomic("my_atomic_cas32", test_atomic_cas_handler, 100,10000); pthread_mutex_destroy(&mutex); pthread_cond_destroy(&cond); |