summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2010-01-07 18:16:57 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2010-01-07 18:16:57 +0100
commitcd1b64928beaad300a562d8ea02efc47b45a1af1 (patch)
treef2f72b91ec1948ec3a29d975fd447a9c35efd315
parent8d738ccbbc809e48916ac69c439d91986204565e (diff)
downloadlock_free-cd1b64928beaad300a562d8ea02efc47b45a1af1.zip
lock_free-cd1b64928beaad300a562d8ea02efc47b45a1af1.tar.gz
enable more tests
-rw-r--r--lf_ring_buffer_test.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/lf_ring_buffer_test.c b/lf_ring_buffer_test.c
index b7a7d30..8baf232 100644
--- a/lf_ring_buffer_test.c
+++ b/lf_ring_buffer_test.c
@@ -132,21 +132,13 @@ int main( int argc, char** argv ) {
//report( "read ", b_len, sequential_reads( ring, b_len, 0 ) );
sequential_reads( ring, b_len, LFRB_NO_BLOCK );
- for(i=5; i<=100;i*=22) {
+ for(i=5; i<=100;i*=2) {
printf("%d parallel blocking with backoff inc write operations .... \n",i);
parallel_writes( i, ring, b_len, 0 );
printf("parallel blocking read operations ...\n");
sequential_reads( ring, b_len, 0 );
}
- /*
- for(i=5; i<=100;i*=22) {
- printf("%d parallel blocking with no backoff inc write operations .... \n",i);
- parallel_writes( i, ring, b_len, LFRB_NO_BACKOFF_INC );
- printf("parallel blocking read operations ...\n");
- sequential_reads( ring, b_len, LFRB_NO_BACKOFF_INC );
- }
- */
- for(i=5; i<=100;i*=22) {
+ for(i=5; i<=100;i*=2) {
printf("%d parallel non blocking write operations .... \n",i);
parallel_writes( i, ring, b_len, LFRB_NO_BLOCK );
printf("non blocking read operations ...\n");