Changeset 142
- Timestamp:
- 06/07/10 05:25:23 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
RELEASE_NOTES.txt (modified) (1 diff)
-
bench/bench.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/RELEASE_NOTES.txt
r141 r142 15 15 - Fixed several failures exposed by the extremesuite. The problem was a 16 16 bad check for limits in the buffer size while compressing. 17 18 - Added a new suite in bench.c called ``debugsuite`` that is 19 appropriate for debugging purposes. Now, the ``extremesuite`` can be 20 used for running the complete (and extremely long) suite. 17 21 18 22 -
trunk/bench/bench.c
r138 r142 296 296 int hard_suite = 0; 297 297 int extreme_suite = 0; 298 int debug_suite = 0; 298 299 int nthreads = 1; /* The number of threads */ 299 300 int size = 2*MB; /* Buffer size */ … … 304 305 struct timeval last, current; 305 306 float totaltime; 306 char *usage = "Usage: bench ['single' | 'suite' | 'hardsuite' | 'extremesuite' ] [nthreads [bufsize(bytes) [typesize [sbits ]]]]";307 char *usage = "Usage: bench ['single' | 'suite' | 'hardsuite' | 'extremesuite' | 'debugsuite'] [nthreads [bufsize(bytes) [typesize [sbits ]]]]"; 307 308 308 309 … … 326 327 workingset = 32*MB; 327 328 niter = 1; 329 /* Values here are ending points for loops */ 330 nthreads = 4; 331 size = 16*MB; 332 elsize = 32; 333 rshift = 32; 334 } 335 else if (strcmp(argv[1], "debugsuite") == 0) { 336 debug_suite = 1; 337 workingset = 32*MB; 338 niter = 1; 328 339 /* Warning: values here are starting points for loops. This is 329 340 useful for debugging. */ … … 365 376 } 366 377 else if (hard_suite) { 367 for (rshift_ = 0; rshift_ < rshift; rshift_ += 5) {378 for (rshift_ = 0; rshift_ <= rshift; rshift_ += 5) { 368 379 for (elsize_ = 1; elsize_ <= elsize; elsize_ *= 2) { 369 380 /* The next loop is for getting sizes that are not power of 2 */ … … 374 385 for (nthreads_ = 1; nthreads_ <= nthreads; nthreads_++) { 375 386 do_bench(nthreads_, size_+i, elsize_, rshift_); 376 gettimeofday(¤t, NULL);377 totaltime = getseconds(last, current);378 printf("Elapsed time:\t %6.1f s. Processed data: %.1f GB\n",379 totaltime, totalsize / GB);387 gettimeofday(¤t, NULL); 388 totaltime = getseconds(last, current); 389 printf("Elapsed time:\t %6.1f s. Processed data: %.1f GB\n", 390 totaltime, totalsize / GB); 380 391 } 381 392 } … … 385 396 } 386 397 else if (extreme_suite) { 398 for (rshift_ = 0; rshift_ <= rshift; rshift_++) { 399 for (elsize_ = 1; elsize_ <= elsize; elsize_++) { 400 /* The next loop is for getting sizes that are not power of 2 */ 401 for (i = -elsize_*2; i <= elsize_*2; i += elsize_) { 402 for (size_ = 32*KB; size_ <= size; size_ *= 2) { 403 nchunks = get_nchunks(size_+i, workingset); 404 for (nthreads_ = 1; nthreads_ <= nthreads; nthreads_++) { 405 do_bench(nthreads_, size_+i, elsize_, rshift_); 406 gettimeofday(¤t, NULL); 407 totaltime = getseconds(last, current); 408 printf("Elapsed time:\t %6.1f s. Processed data: %.1f GB\n", 409 totaltime, totalsize / GB); 410 } 411 } 412 } 413 } 414 } 415 } 416 else if (debug_suite) { 387 417 for (rshift_ = rshift; rshift_ <= 32; rshift_++) { 388 418 for (elsize_ = elsize; elsize_ <= 32; elsize_++) { … … 393 423 for (nthreads_ = nthreads; nthreads_ <= 4; nthreads_++) { 394 424 do_bench(nthreads_, size_+i, elsize_, rshift_); 395 gettimeofday(¤t, NULL);396 totaltime = getseconds(last, current);397 printf("Elapsed time:\t %6.1f s. Processed data: %.1f GB\n",398 totaltime, totalsize / GB);425 gettimeofday(¤t, NULL); 426 totaltime = getseconds(last, current); 427 printf("Elapsed time:\t %6.1f s. Processed data: %.1f GB\n", 428 totaltime, totalsize / GB); 399 429 } 400 430 }
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/images/blosc-logo-small.png)