1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-11-28 17:35:28 +01:00

Added print to benchmark sample;

Updated results R markdown for next host and gpu
This commit is contained in:
Andrzej Wójtowicz 2016-05-29 17:45:39 +02:00
parent 679560c1f0
commit e0c075fcea
2 changed files with 11 additions and 5 deletions

View File

@ -11,5 +11,5 @@ A <- matrix (runif (m*n),m,n)
B <- crossprod(A) B <- crossprod(A)
} }
benchmark(f(), replications=100) print(benchmark(f(), replications=100))

View File

@ -25,6 +25,7 @@ library(RColorBrewer)
* [Intel Core i5-3570](#intel-core-i5-3570) * [Intel Core i5-3570](#intel-core-i5-3570)
* [Intel Core i3-2120](#intel-core-i3-2120) * [Intel Core i3-2120](#intel-core-i3-2120)
* [Intel Core i3-3120M](#intel-core-i3-3120m) * [Intel Core i3-3120M](#intel-core-i3-3120m)
* [Intel Core i5-3317U + NVIDIA GeForce GT 630M](#intel-core-i5-3317u--nvidia-geforce-gt-630m)
3. [Results per library](#results-per-library) 3. [Results per library](#results-per-library)
* [Netlib](#netlib) * [Netlib](#netlib)
* [Atlas (st)](#atlas-st) * [Atlas (st)](#atlas-st)
@ -33,6 +34,7 @@ library(RColorBrewer)
* [GotoBLAS2](#gotoblas2) * [GotoBLAS2](#gotoblas2)
* [MKL](#mkl) * [MKL](#mkl)
* [BLIS](#blis) * [BLIS](#blis)
* [cuBLAS](#cublas)
*** ***
@ -58,6 +60,7 @@ library(RColorBrewer)
|2.|[Intel Core i5-3570](http://ark.intel.com/products/65702/Intel-Core-i5-3570-Processor-6M-Cache-up-to-3_80-GHz)| - | |2.|[Intel Core i5-3570](http://ark.intel.com/products/65702/Intel-Core-i5-3570-Processor-6M-Cache-up-to-3_80-GHz)| - |
|3.|[Intel Core i3-2120](http://ark.intel.com/products/53426/Intel-Core-i3-2120-Processor-3M-Cache-3_30-GHz)| - | |3.|[Intel Core i3-2120](http://ark.intel.com/products/53426/Intel-Core-i3-2120-Processor-3M-Cache-3_30-GHz)| - |
|4.|[Intel Core i3-3120M](http://ark.intel.com/products/71465/Intel-Core-i3-3120M-Processor-3M-Cache-2_50-GHz)| - | |4.|[Intel Core i3-3120M](http://ark.intel.com/products/71465/Intel-Core-i3-3120M-Processor-3M-Cache-2_50-GHz)| - |
|5.|[Intel Core i5-3317U](http://ark.intel.com/products/65707/Intel-Core-i5-3317U-Processor-3M-Cache-up-to-2_60-GHz)|[NVIDIA GeForce GT 630M](http://www.geforce.com/hardware/notebook-gpus/geforce-gt-630m/specifications)|
**Benchmarks**: [Urbanek](http://r.research.att.com/benchmarks/R-benchmark-25.R), [Revolution](https://gist.github.com/andrie/24c9672f1ea39af89c66#file-rro-mkl-benchmark-r), [Gcbd](https://cran.r-project.org/web/packages/gcbd/vignettes/gcbd.pdf). **Benchmarks**: [Urbanek](http://r.research.att.com/benchmarks/R-benchmark-25.R), [Revolution](https://gist.github.com/andrie/24c9672f1ea39af89c66#file-rro-mkl-benchmark-r), [Gcbd](https://cran.r-project.org/web/packages/gcbd/vignettes/gcbd.pdf).
@ -438,7 +441,10 @@ for (lib in LIBRARIES)
" runs - lower is better\n\n")) " runs - lower is better\n\n"))
myColors = c("#5AAC45", "#636363", "#636363", "#E6191A") myColors = c("#5AAC45", "#636363", "#636363", "#E6191A", "#636363")
if (lib=="cublas")
myColors = c("#E6191A", "#636363")#, "#636363", "#5AAC45", "#636363")
colScale = scale_fill_manual(name = "Color", values = myColors) colScale = scale_fill_manual(name = "Color", values = myColors)
if (benchmark != "gcbd") if (benchmark != "gcbd")
@ -473,7 +479,7 @@ for (lib in LIBRARIES)
} else { } else {
rbColors = c("#F40000","#FF8000","#0094FF","#7F00FF","#FFBC70","#00DD0E") rbColors = c("#F40000","#FF8000","#0094FF","#7F00FF","#E900FF","#00DD0E")
png(image.path, width=400, height=350, type="cairo") png(image.path, width=400, height=350, type="cairo")
print(ggplot(data.to.plot, print(ggplot(data.to.plot,
@ -498,7 +504,7 @@ for (lib in LIBRARIES)
scale_y_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0)) +
geom_hline(yintercept = 0, color="grey") + geom_hline(yintercept = 0, color="grey") +
geom_vline(xintercept = 0.4, color="grey") + geom_vline(xintercept = 0.4, color="grey") +
scale_shape_manual(values=c(25,24,22,21)) + scale_shape_manual(values=c(25,24,22,21,23)) +
scale_color_manual(values=rbColors) + scale_color_manual(values=rbColors) +
scale_fill_manual(values=rbColors) scale_fill_manual(values=rbColors)
@ -528,7 +534,7 @@ for (lib in LIBRARIES)
breaks=c(100, 200, 400, 800, 1600, 3200, 5000), breaks=c(100, 200, 400, 800, 1600, 3200, 5000),
limits=c(100, 5500)) + limits=c(100, 5500)) +
scale_y_log10() + scale_y_log10() +
scale_shape_manual(values=c(25,24,22,21)) + scale_shape_manual(values=c(25,24,22,21,23)) +
geom_hline(yintercept = 0, color="grey") + geom_hline(yintercept = 0, color="grey") +
geom_vline(xintercept = min(data.to.plot$Size), color="grey") + geom_vline(xintercept = min(data.to.plot$Size), color="grey") +
scale_color_manual(values=rbColors) + scale_color_manual(values=rbColors) +