summaryrefslogtreecommitdiff
path: root/mbw.c
diff options
context:
space:
mode:
authorAndras Horvath <ahorvath@gitlab.com>2022-04-26 13:36:00 +0200
committerAndras Horvath <ahorvath@gitlab.com>2022-04-26 13:36:00 +0200
commitd2cd3d36c353fee578f752c4e65a8c1efcee002c (patch)
treed53d552b6eecbd5326f4cc08dfc2e5c3365512cd /mbw.c
parent482b2f57ad6f0a6176c10d41623b4dbe27a29138 (diff)
Bump to v1.5
Diffstat (limited to 'mbw.c')
-rw-r--r--mbw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbw.c b/mbw.c
index 884fd60..e928153 100644
--- a/mbw.c
+++ b/mbw.c
@@ -29,7 +29,7 @@
#define TEST_MCBLOCK 2
/* version number */
-#define VERSION "1.4"
+#define VERSION "1.5"
/*
* MBW memory bandwidth benchmark
@@ -116,14 +116,14 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon
/* timer stops */
gettimeofday(&endtime, NULL);
} else if(type==TEST_MCBLOCK) { /* memcpy block test */
- char* aa = (char*)a;
- char* bb = (char*)b;
+ char* src = (char*)a;
+ char* dst = (char*)b;
gettimeofday(&starttime, NULL);
- for (t=array_bytes; t >= block_size; t-=block_size, aa+=block_size){
- bb=(char *) memcpy(bb, aa, block_size) + block_size;
+ for (t=array_bytes; t >= block_size; t-=block_size, src+=block_size){
+ dst=(char *) memcpy(dst, src, block_size) + block_size;
}
if(t) {
- bb=(char *) memcpy(bb, aa, t) + t;
+ dst=(char *) memcpy(dst, src, t) + t;
}
gettimeofday(&endtime, NULL);
} else if(type==TEST_DUMB) { /* dumb test */