diff options
Diffstat (limited to 'benchmark/bm_vm1_blockparam_pass.rb')
-rwxr-xr-x | benchmark/bm_vm1_blockparam_pass.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark/bm_vm1_blockparam_pass.rb b/benchmark/bm_vm1_blockparam_pass.rb new file mode 100755 index 0000000000..10029a257a --- /dev/null +++ b/benchmark/bm_vm1_blockparam_pass.rb @@ -0,0 +1,13 @@ +def bp_yield + yield +end + +def bp_pass &b + bp_yield &b +end + +i = 0 +while i<30_000_000 # while loop 1 + i += 1 + bp_pass{} +end |