From 133ef50bb476b2261e8b073da036638918168181 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 3 Feb 2021 13:48:50 +0100 Subject: [PATCH] nbody: show time points --- garlic/fig/nbody/baseline.R | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/garlic/fig/nbody/baseline.R b/garlic/fig/nbody/baseline.R index 2744175..2e23213 100644 --- a/garlic/fig/nbody/baseline.R +++ b/garlic/fig/nbody/baseline.R @@ -65,8 +65,8 @@ nbs=length(bs_unique) print(D) ppi=300 -h=5 -w=5 +h=7.5 +w=7.5 png("box.png", width=w*ppi, height=h*ppi, res=ppi) # @@ -112,7 +112,7 @@ print(p) dev.off() -p1 = ggplot(D, aes(x=blocksizeFactor, y=tmedian)) + +p1 = ggplot(D, aes(x=blocksizeFactor, y=time)) + labs(x="Blocksize", y="Time (s)", title=sprintf("Nbody granularity. Particles=%d", particles), @@ -124,16 +124,16 @@ p1 = ggplot(D, aes(x=blocksizeFactor, y=tmedian)) + geom_line(aes(y=tmedian, group=interaction(gitBranch, nodesFactor), color=nodesFactor)) + - geom_point(aes(color=nodesFactor), size=3) + + geom_point(aes(color=nodesFactor), size=3, shape=21) + facet_grid(gitBranch ~ .) + scale_shape_manual(values=c(21, 22)) + scale_y_continuous(trans=log2_trans()) -png("time-blocksize.png", width=1.5*w*ppi, height=1.5*h*ppi, res=ppi) +png("time-blocksize.png", width=w*ppi, height=h*ppi, res=ppi) print(p1) dev.off() -p2 = ggplot(D, aes(x=blocksPerCpuFactor, y=tmedian)) + +p2 = ggplot(D, aes(x=blocksPerCpuFactor, y=time)) + labs(x="Blocks/CPU", y="Time (s)", title=sprintf("Nbody granularity. Particles=%d", particles), @@ -144,13 +144,13 @@ p2 = ggplot(D, aes(x=blocksPerCpuFactor, y=tmedian)) + geom_line(aes(y=tmedian, group=interaction(gitBranch, nodesFactor), color=nodesFactor)) + - geom_point(aes(color=nodesFactor), size=3) + + geom_point(aes(color=nodesFactor), size=3, shape=21) + facet_grid(gitBranch ~ .) + scale_shape_manual(values=c(21, 22)) + scale_y_continuous(trans=log2_trans()) -png("time-blocks-per-cpu.png", width=1.5*w*ppi, height=1.5*h*ppi, res=ppi) +png("time-blocks-per-cpu.png", width=w*ppi, height=h*ppi, res=ppi) print(p2) dev.off() @@ -183,7 +183,7 @@ print(p) dev.off() -png("performance.png", width=1.5*w*ppi, height=1.5*h*ppi, res=ppi) +png("performance.png", width=w*ppi, height=h*ppi, res=ppi) p = ggplot(D, aes(x=nodesFactor)) + labs(x="Nodes", y="Time (s)", title="Nbody strong scaling") + theme_bw() +