summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAshwin Sekhar T K <ashwin@broadcom.com>2016-07-14 13:48:13 +0530
committerAshwin Sekhar T K <ashwin@broadcom.com>2016-07-14 13:48:13 +0530
commit8d86d14d3f1929469c5584330d9bb92ec5ebd862 (patch)
tree815150cc927849f743f4cad7b1254f91312a3d80 /benchmark
parent925d4e1dc69a94de5733c03b022b7c2c7521935e (diff)
downloadopenblas-8d86d14d3f1929469c5584330d9bb92ec5ebd862.tar.gz
openblas-8d86d14d3f1929469c5584330d9bb92ec5ebd862.tar.bz2
openblas-8d86d14d3f1929469c5584330d9bb92ec5ebd862.zip
Add time prints in benchmark output
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/asum.c4
-rw-r--r--benchmark/axpy.c4
-rw-r--r--benchmark/copy.c4
-rw-r--r--benchmark/dot.c4
-rw-r--r--benchmark/gemv.c4
-rw-r--r--benchmark/rot.c4
-rw-r--r--benchmark/scal.c4
-rw-r--r--benchmark/swap.c4
-rw-r--r--benchmark/trmm.c4
-rw-r--r--benchmark/zdot.c4
10 files changed, 20 insertions, 20 deletions
diff --git a/benchmark/asum.c b/benchmark/asum.c
index beb6402f4..78ccdf47b 100644
--- a/benchmark/asum.c
+++ b/benchmark/asum.c
@@ -183,9 +183,9 @@ int main(int argc, char *argv[]){
timeg /= loops;
#ifdef COMPLEX
- fprintf(stderr, " %10.2f MFlops\n", 4. * (double)m / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", 4. * (double)m / timeg * 1.e-6, timeg);
#else
- fprintf(stderr, " %10.2f MFlops\n", 2. * (double)m / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", 2. * (double)m / timeg * 1.e-6, timeg);
#endif
}
diff --git a/benchmark/axpy.c b/benchmark/axpy.c
index a7206b690..37c7aeb63 100644
--- a/benchmark/axpy.c
+++ b/benchmark/axpy.c
@@ -190,8 +190,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MFlops\n",
- COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6);
+ " %10.2f MFlops %10.6f sec\n",
+ COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6, timeg);
}
diff --git a/benchmark/copy.c b/benchmark/copy.c
index 15c45201c..ea5b38d68 100644
--- a/benchmark/copy.c
+++ b/benchmark/copy.c
@@ -190,8 +190,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MBytes\n",
- COMPSIZE * sizeof(FLOAT) * 1. * (double)m / timeg * 1.e-6);
+ " %10.2f MBytes %10.6f sec\n",
+ COMPSIZE * sizeof(FLOAT) * 1. * (double)m / timeg * 1.e-6, timeg);
}
diff --git a/benchmark/dot.c b/benchmark/dot.c
index 4c8d6cc38..50d05e532 100644
--- a/benchmark/dot.c
+++ b/benchmark/dot.c
@@ -184,8 +184,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MFlops\n",
- COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6);
+ " %10.2f MFlops %10.6f sec\n",
+ COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6, timeg);
}
diff --git a/benchmark/gemv.c b/benchmark/gemv.c
index 42af2825a..c06e829d9 100644
--- a/benchmark/gemv.c
+++ b/benchmark/gemv.c
@@ -221,7 +221,7 @@ int main(int argc, char *argv[]){
timeg /= loops;
- fprintf(stderr, " %10.2f MFlops\n", COMPSIZE * COMPSIZE * 2. * (double)m * (double)n / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", COMPSIZE * COMPSIZE * 2. * (double)m * (double)n / timeg * 1.e-6, timeg);
}
}
@@ -258,7 +258,7 @@ int main(int argc, char *argv[]){
timeg /= loops;
- fprintf(stderr, " %10.2f MFlops\n", COMPSIZE * COMPSIZE * 2. * (double)m * (double)n / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", COMPSIZE * COMPSIZE * 2. * (double)m * (double)n / timeg * 1.e-6, timeg);
}
}
diff --git a/benchmark/rot.c b/benchmark/rot.c
index 32322bebb..3ff783cc6 100644
--- a/benchmark/rot.c
+++ b/benchmark/rot.c
@@ -186,8 +186,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MFlops\n",
- COMPSIZE * COMPSIZE * 6. * (double)m / timeg * 1.e-6);
+ " %10.2f MFlops %10.6f sec\n",
+ COMPSIZE * COMPSIZE * 6. * (double)m / timeg * 1.e-6, timeg);
}
diff --git a/benchmark/scal.c b/benchmark/scal.c
index 4c2da4d30..453c3234d 100644
--- a/benchmark/scal.c
+++ b/benchmark/scal.c
@@ -189,9 +189,9 @@ int main(int argc, char *argv[]){
timeg /= loops;
#ifdef COMPLEX
- fprintf(stderr, " %10.2f MFlops\n", 6. * (double)m / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", 6. * (double)m / timeg * 1.e-6, timeg);
#else
- fprintf(stderr, " %10.2f MFlops\n", 1. * (double)m / timeg * 1.e-6);
+ fprintf(stderr, " %10.2f MFlops %10.6f sec\n", 1. * (double)m / timeg * 1.e-6, timeg);
#endif
}
diff --git a/benchmark/swap.c b/benchmark/swap.c
index 9f108ef50..368c59cd4 100644
--- a/benchmark/swap.c
+++ b/benchmark/swap.c
@@ -190,8 +190,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MBytes\n",
- COMPSIZE * sizeof(FLOAT) * 1. * (double)m / timeg * 1.e-6);
+ " %10.2f MBytes %10.6f sec\n",
+ COMPSIZE * sizeof(FLOAT) * 1. * (double)m / timeg * 1.e-6, timeg);
}
diff --git a/benchmark/trmm.c b/benchmark/trmm.c
index f81e9d912..54c7972db 100644
--- a/benchmark/trmm.c
+++ b/benchmark/trmm.c
@@ -191,8 +191,8 @@ int main(int argc, char *argv[]){
gettimeofday( &start, (struct timezone *)0);
fprintf(stderr,
- " %10.2f MFlops\n",
- COMPSIZE * COMPSIZE * 1. * (double)m * (double)m * (double)m / time1 * 1.e-6);
+ " %10.2f MFlops %10.6f sec\n",
+ COMPSIZE * COMPSIZE * 1. * (double)m * (double)m * (double)m / time1 * 1.e-6, time1);
}
diff --git a/benchmark/zdot.c b/benchmark/zdot.c
index d5ec99726..ed9d4d2e8 100644
--- a/benchmark/zdot.c
+++ b/benchmark/zdot.c
@@ -184,8 +184,8 @@ int main(int argc, char *argv[]){
timeg /= loops;
fprintf(stderr,
- " %10.2f MFlops\n",
- COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6);
+ " %10.2f MFlops %10.6f sec\n",
+ COMPSIZE * COMPSIZE * 2. * (double)m / timeg * 1.e-6, timeg);
}