aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-21 12:31:29 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-21 12:31:29 +0000
commitf2d63385744da413cba482384d3bdbce288816a5 (patch)
tree5889b48d98bee40a0d535f17c7de5743bf7a9dee /benchmark
parent32e259f097a8dbae065d55c4d7b299e697a25f84 (diff)
downloadruby-f2d63385744da413cba482384d3bdbce288816a5.tar.gz
benchmark/app_aobench.rb: complete commented code to write the image to a file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/app_aobench.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/app_aobench.rb b/benchmark/app_aobench.rb
index 877e808dee..16296af12b 100644
--- a/benchmark/app_aobench.rb
+++ b/benchmark/app_aobench.rb
@@ -282,9 +282,11 @@ end
alias printf_orig printf
def printf *args
+ # $fp.printf(*args)
end
# File.open("ao.ppm", "w") do |fp|
+ # $fp = fp
printf("P6\n")
printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT)
printf("255\n")