diff --git a/Rakefile b/Rakefile index 258f0b8..6f04966 100644 --- a/Rakefile +++ b/Rakefile @@ -33,33 +33,3 @@ task :benchmark, :chunkSize, :mapActorsCount do |t, args| jruby_execute 'lib/benchmarking_akka.rb', [args.chunkSize || "200", args.mapActorsCount || "2"] end - -desc "Generates runner script appropriate for the current machine. -For users using jruby rake" -task :genrunner do - puts "Generating runner.sh" - filename = "lib/actor_word_count.rb" if filename.nil? - File.open("runner.sh", 'w') do |f| - f.write <<-eof -#!/bin/bash -CLASSPATH=#{classpath} jruby -Ilib $1 -eof - end - File.chmod 0755, "runner.sh" - puts "runner.sh created!" -end - -desc "Generates a benchmark script appropriate for the current machine. -For users using jruby rake" -task :genbenchmark do - puts "Generating benchmark.sh" - filename = "lib/actor_word_count.rb" if filename.nil? - File.open("benchmark.sh", 'w') do |f| - f.write <<-eof -#!/bin/bash -CLASSPATH=#{classpath} jruby -Ilib #{file} $1 $2 -eof - end - File.chmod 0755, "benchmark.sh" - puts "benchmark.sh created!" -end \ No newline at end of file diff --git a/benchmark.sh b/benchmark.sh new file mode 100755 index 0000000..ae8c45d --- /dev/null +++ b/benchmark.sh @@ -0,0 +1,2 @@ +#!/bin/bash +CLASSPATH=./vendor:./vendor/akka_2.8.0-0.10.jar:./vendor/akka-core_2.8.0-0.10.jar:./vendor/scala-library.jar jruby -Ilib lib/benchmarking_akka.rb $1 $2 diff --git a/runner.sh b/runner.sh new file mode 100755 index 0000000..d6ac58c --- /dev/null +++ b/runner.sh @@ -0,0 +1,2 @@ +#!/bin/bash +CLASSPATH=./vendor:./vendor/akka_2.8.0-0.10.jar:./vendor/akka-core_2.8.0-0.10.jar:./vendor/scala-library.jar jruby -Ilib $1