~ubuntu-branches/ubuntu/saucy/faust/saucy

« back to all changes in this revision

Viewing changes to benchmark/alsa-gtk-bench.cpp

  • Committer: Package Import Robot
  • Author(s): Mario Lang
  • Date: 2012-04-04 13:52:01 UTC
  • mfrom: (1.1.6) (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120404135201-hpsrk87x3hga94tc
Tags: 0.9.46-2
* Fix "ftbfs with GCC-4.7":
  - debian/patches/unistd: Include <unistd.h> where necessary.
    (Closes: #667163)

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
    sort(V.begin(), V.end());
251
251
  
252
252
    // Mean of 10 best values (gives relatively stable results)
253
 
    uint64 meavalx = meanValue(V.begin(), V.begin() + 10);                      
 
253
    uint64 meaval00 = meanValue(V.begin(), V.begin()+ 5);                       
 
254
    uint64 meaval25 = meanValue(V.begin()+KMESURE/4 - 2, V.begin()+KMESURE/4 + 3);                      
 
255
    uint64 meaval50 = meanValue(V.begin()+KMESURE/2 - 2, V.begin()+KMESURE/2 + 3);                      
 
256
    uint64 meaval75 = meanValue(V.begin()+3*KMESURE/4 - 2, V.begin()+3*KMESURE/4 + 3);                  
 
257
    uint64 meaval100 = meanValue(V.end() - 5, V.end());                 
254
258
  
255
259
    //printing
256
 
    cout << megapersec(bsize, ichans+ochans, meavalx) << "\tMB/s"
257
 
         << '\t' << applname
258
 
         << '\t' << "(clocks/sec : " << rdtscpersec() << ")"
 
260
    cout << applname
 
261
         << '\t' << megapersec(bsize, ichans+ochans, meaval00) 
 
262
         << '\t' << megapersec(bsize, ichans+ochans, meaval25) 
 
263
         << '\t' << megapersec(bsize, ichans+ochans, meaval50) 
 
264
         << '\t' << megapersec(bsize, ichans+ochans, meaval75) 
 
265
         << '\t' << megapersec(bsize, ichans+ochans, meaval100) 
259
266
         << endl;
260
267
    
261
268
}