-
Notifications
You must be signed in to change notification settings - Fork 0
/
v5_timing.sh
executable file
·17 lines (14 loc) · 1.06 KB
/
v5_timing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
echo '/************************************************************************/'
echo 'Save output to a file to remove overhead of conversion between bin/debugary and text'
bin/make_world 5000 0.1 1 > /tmp/world.bin # Save bin/debugary world to temp file
echo '/************************************************************************/'
echo 'Comparison between Original and OpenCL version'
time (cat /tmp/world.bin | bin/step_world 0.1 100 1 > /dev/null)
time (cat /tmp/world.bin | bin/step_world_v3_opencl 0.1 100 1 > /dev/null)
time (cat /tmp/world.bin | bin/step_world_v4_double_buffered 0.1 100 1 > /dev/null)
time (cat /tmp/world.bin | bin/step_world_v5_packed_properties 0.1 100 1 > /dev/null)
echo '/************************************************************************/'
echo 'Comparison between Original, v3, v4 and v5'
time (cat /tmp/world.bin | bin/step_world_v3_opencl 0.1 1000 1 > /dev/null)
time (cat /tmp/world.bin | bin/step_world_v4_double_buffered 0.1 1000 1 > /dev/null)
time (cat /tmp/world.bin | bin/step_world_v5_packed_properties 0.1 1000 1 > /dev/null)