index
:
ruby.git
master
ruby_1_8_6_287
ruby_1_8_6_369
ruby_1_8_6_383
ruby_1_8_6_383-fedora
ruby_1_9_1_243
ruby_1_9_1_376
ruby_1_9_1_376-epel
ruby_1_9_1_376-fedora
Ruby GIT repository
Jeroen van Meeuwen
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
benchmark
/
bm_app_factorial.rb
blob: a5a5de042607c4a1fc39762f73cffddf5e1157d6 (
plain
)
1
2
3
4
5
6
7
8
9
10
11
def
fact
(
n
)
if
(
n
>
1
)
n
*
fact
(
n-1
)
else
1
end
end
8
.
times
{
fact
(
5000
)
}