Skip to content

Commit

Permalink
runner and benchmark sh can be used without needing to be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
danielribeiro committed Dec 21, 2010
1 parent 2eb3f60 commit b47fc82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Rakefile
Expand Up @@ -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
2 changes: 2 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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

0 comments on commit b47fc82

Please sign in to comment.