# HG changeset patch # User Tatsuki IHA # Date 1517662696 -32400 # Node ID 69bce356873c9a9ff185e243a7077674d478a872 # Parent 2bc5a2ce7a159d8c050ae28834d363e2eb60e551 Add graph.sh diff -r 2bc5a2ce7a15 -r 69bce356873c benchmark/bitonicSort --- a/benchmark/bitonicSort Sat Feb 03 18:17:42 2018 +0900 +++ b/benchmark/bitonicSort Sat Feb 03 21:58:16 2018 +0900 @@ -5,3 +5,4 @@ 16 cpus, 1.760577 32 cpus, 0.981566 gpu, 2.925443 +gpu(kernel only), 0.163514 diff -r 2bc5a2ce7a15 -r 69bce356873c benchmark/bitonicSort.svg --- a/benchmark/bitonicSort.svg Sat Feb 03 18:17:42 2018 +0900 +++ b/benchmark/bitonicSort.svg Sat Feb 03 21:58:16 2018 +0900 @@ -42,111 +42,111 @@ - + 0 - + 2 - + 4 - + 6 - + 8 - + 10 - + 12 - + 14 - + 16 - + 18 - + 20 - + 1 cpu - + 2 cpus - + 4 cpus - + 8 cpus - + 16 cpus - + 32 cpus - + gpu + + gpu(kernel only) + + + - + - - time(ms) + + time(s) - - CPUs - - - - + bitonicSort benchmark @@ -155,39 +155,44 @@ - + - + - + - + - + - + - + - + + + + + + - + - + - + - + - + - + @@ -196,7 +201,7 @@ - + diff -r 2bc5a2ce7a15 -r 69bce356873c benchmark/graph.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchmark/graph.sh Sat Feb 03 21:58:16 2018 +0900 @@ -0,0 +1,19 @@ +#!/bin/sh +#!/bin/sh +function create_graph() { +gnuplot << EOF +set title "$1 benchmark" +set terminal svg +set datafile separator "," +set output "$1.svg" +set ylabel "time(ms)" +set boxwidth 0.5 relative +set style fill solid border lc rgb "black" +plot "$1" using 0:2:xtic(1) with boxes lw 2 lc rgb "cyan" notitle +EOF +} + +for example in $@; do + create_graph $example +done + diff -r 2bc5a2ce7a15 -r 69bce356873c benchmark/twice.svg --- a/benchmark/twice.svg Sat Feb 03 18:17:42 2018 +0900 +++ b/benchmark/twice.svg Sat Feb 03 21:58:16 2018 +0900 @@ -42,96 +42,91 @@ - + 0 - + 100 - + 200 - + 300 - + 400 - + 500 - + 600 - + 1 cpu - + 2 cpus - + 4 cpus - + 8 cpus - + 16 cpus - + 32 cpus - + gpu - + gpu(kernel only) - + - + time(ms) - - CPUs - - - - + twice benchmark @@ -140,44 +135,44 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -186,7 +181,7 @@ - +