nbody: add time-node plot

This commit is contained in:
Rodrigo Arias Mallo 2021-03-03 18:31:43 +01:00
parent 637c57b388
commit 88087bb4b7

View File

@ -198,3 +198,14 @@ p = ggplot(D, aes(x=nodesFactor)) +
scale_y_continuous(trans=log2_trans()) scale_y_continuous(trans=log2_trans())
print(p) print(p)
dev.off() dev.off()
png("time-nodes.png", width=w*ppi, height=h*ppi, res=ppi)
p = ggplot(D, aes(x=nodesFactor)) +
labs(x="Nodes", y="Time * nodes (s)", title="Nbody strong scaling") +
theme_bw() +
geom_line(aes(y=tn, group=gitBranch)) +
facet_grid(gitBranch ~ .) +
scale_y_continuous(trans=log2_trans())
print(p)
dev.off()