Project

General

Profile

Feature #9528 » run_demo.bash

shows, how to run the demo - martin_vahi (Martin Vahi), 11/09/2014 06:34 AM

 
#!/usr/bin/env bash
#==============================================================================

time ./the_code.rb 10000
time ./the_code.rb 10000 f
time ./the_code.rb 10000 f f

echo ""
echo "For 100k the time difference between the 2 versions is"
echo "roughly 2s versus 20s on 3GHz AMD Athlon2. The command for copy-pasting:"
echo ""
echo " time ./the_code.rb 100000 # simplistic"
echo " time ./the_code.rb 100000 f # proposed"
echo ""
echo "Thank You for trying out this demo. :-) "
echo ""

#==============================================================================
(2-2/2)