* transcode.c (make_econv_exception): add several instance variables
[ruby-svn.git] / benchmark / bm_so_nested_loop.rb
bloba0513f8c47cc64818009d71d9075e7acf55a4a4c
1 #!/usr/bin/ruby
2 # -*- mode: ruby -*-
3 # $Id: nestedloop-ruby.code,v 1.4 2004/11/13 07:42:22 bfulgham Exp $
4 # http://www.bagley.org/~doug/shootout/
5 # from Avi Bryant
7 n = 16 # Integer(ARGV.shift || 1)
8 x = 0
9 n.times do
10     n.times do
11         n.times do
12             n.times do
13                 n.times do
14                     n.times do
15                         x += 1
16                     end
17                 end
18             end
19         end
20     end
21 end
22 # puts x