~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to benchmarks/multi/harness.c

  • Committer: Michael Hope
  • Date: 2010-09-02 02:26:33 UTC
  • Revision ID: michael.hope@linaro.org-20100902022633-xbddfwagsup43ykn
Added a README.  Re-factored the build into a top level Makefile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
  assert(src != NULL && dest != NULL);
119
119
 
 
120
  char *variant = strrchr(argv[0], '-');
 
121
  assert(variant != NULL);
 
122
 
120
123
  srandom(1539);
121
124
 
122
125
  for (int i = 0; i < 16*1024; i++)
202
205
  double end = now();
203
206
  double elapsed = end - start;
204
207
 
205
 
  printf("%s: %s: %.3f for %u loops of %u bytes.  %.3f MB/s\n", QUOTEME(VARIANT), ptest->name, elapsed, loops, count, (double)loops*count/elapsed/(1024*1024));
 
208
  printf("%s: %s: %.3f for %u loops of %u bytes.  %.3f MB/s\n", variant + 1, ptest->name, elapsed, loops, count, (double)loops*count/elapsed/(1024*1024));
206
209
 
207
210
  return 0;
208
211
}