Changes in benchmark/io/readv.cfa [1bcdeff:038be32]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/readv.cfa
r1bcdeff r038be32 18 18 19 19 extern bool traceHeapOn(); 20 extern ssize_t async_preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);20 extern ssize_t cfa_preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); 21 21 22 22 int fd; … … 34 34 35 35 while(__atomic_load_n(&run, __ATOMIC_RELAXED)) { 36 async_preadv2(fd, &iov, 1, 0, 0);36 cfa_preadv2(fd, &iov, 1, 0, 0); 37 37 __atomic_fetch_add( &count, 1, __ATOMIC_SEQ_CST ); 38 38 } … … 40 40 41 41 int main(int argc, char * argv[]) { 42 #if !defined(__CFA_NO_STATISTICS__) 43 print_stats_at_exit( *active_cluster() ); 44 #endif 45 42 46 double duration = 5.0; 43 47 unsigned long int nthreads = 2; … … 46 50 printf("Setting local\n"); 47 51 setlocale(LC_NUMERIC, ""); 48 49 52 50 53 arg_loop:
Note: See TracChangeset
for help on using the changeset viewer.