-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraph-intel-benchmark.R
37 lines (31 loc) · 1.09 KB
/
graph-intel-benchmark.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
library(rjson)
library(tidyverse)
library(reshape2)
json_data <- fromJSON(file="/home/jan/Documents/aLook/blog/python-comparison/ibench-ouput/all-clean.out")$runs
clean <- c()
test_name <- c()
for (test in json_data) {
test_name <- c(test_name, test$name)
clean <- c(clean,test$stats$median)
}
df <- cbind.data.frame(test_name, clean)
json_data <- fromJSON(file="/home/jan/Documents/aLook/blog/python-comparison/ibench-ouput/all-conda.out")$runs
time <- c()
for (test in json_data) {
time <- c(time,test$stats$median)
}
df$conda <- time
json_data <- fromJSON(file="/home/jan/Documents/aLook/blog/python-comparison/ibench-ouput/all-intel.out")$runs
time <- c()
for (test in json_data) {
time <- c(time,test$stats$median)
}
df$intel <- time
df %>% melt() %>% ggplot(aes(x=test_name, y=value)) +
geom_bar(aes(fill=variable), stat="identity", position = 'dodge')+
theme_minimal() +
coord_flip()+
scale_fill_brewer(palette='Paired')+
ylab('Time (in seconds)') +
xlab('Intel benchmarks') + ggtitle('Intel benchmarks')
ggsave("Documents/aLook/blog/python-comparison/pics/intel-benchmarks.jpg")