diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-07 18:12:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-07 18:12:43 +0100 |
commit | 8d738ccbbc809e48916ac69c439d91986204565e (patch) | |
tree | 26489c553301de32ec97425b077fad6f3cd8b189 /lf_ring_buffer_test.c | |
parent | de7ceedae12efca39ec9128e9accdbc3e6f416f9 (diff) | |
download | lock_free-8d738ccbbc809e48916ac69c439d91986204565e.zip lock_free-8d738ccbbc809e48916ac69c439d91986204565e.tar.gz |
faster with a constant backoff and timespec struct as local function variable
Diffstat (limited to 'lf_ring_buffer_test.c')
-rw-r--r-- | lf_ring_buffer_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lf_ring_buffer_test.c b/lf_ring_buffer_test.c index b3ec016..b7a7d30 100644 --- a/lf_ring_buffer_test.c +++ b/lf_ring_buffer_test.c @@ -138,12 +138,14 @@ int main( int argc, char** argv ) { 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) { printf("%d parallel non blocking write operations .... \n",i); parallel_writes( i, ring, b_len, LFRB_NO_BLOCK ); |