diff options
Diffstat (limited to 'lf_ring_buffer_test.c')
-rw-r--r-- | lf_ring_buffer_test.c | 12 |
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"); |