Changeset 98


Ignore:
Timestamp:
05/31/10 13:16:16 (4 years ago)
Author:
faltet
Message:

Modification to benchmark to allow a quick run of several threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bench.c

    r96 r98  
    160160  printf("********************** Run info ******************************\n"); 
    161161  printf("Blosc version: %s (%s)\n", BLOSC_VERSION_STRING, BLOSC_VERSION_DATE); 
    162   printf("Using random data with %d significant bits (out of 32)\n", rshift); 
     162  printf("Using synthetic with %d significant bits (out of 32)\n", rshift); 
    163163  printf("Dataset size: %d bytes\tType size: %d bytes\n", size, elsize); 
    164164  printf("Working set: %.1f MB\t\t", (size*NCHUNKS) / (float)MB); 
     
    264264  int hard_suite = 0; 
    265265  int nthreads = 1;                /* The number of threads */ 
    266   unsigned int size = 1024*1024;  /* Buffer size */ 
     266  unsigned int size = 2*1024*1024; /* Buffer size */ 
    267267  unsigned int elsize = 4;         /* Datatype size */ 
    268   int rshift = 20;                 /* Significant bits */ 
     268  int rshift = 19;                 /* Significant bits */ 
     269  int j; 
    269270 
    270271  if ((argc == 2) && strcmp(argv[1], "suite") == 0) { 
     
    316317  } 
    317318  else { 
    318     do_bench(nthreads, size, elsize, rshift); 
     319    for (j=1; j <= nthreads; j++) { 
     320      do_bench(j, size, elsize, rshift); 
     321    } 
    319322  } 
    320323 
Note: See TracChangeset for help on using the changeset viewer.