⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (920 Bytes)
Bug #1164
ยป ml.rb
raubarede (regis d'aubarede)
, 02/16/2009 09:17 PM
$MAXC
=
500
def
test1
ss
=
[]
;
0
.
upto
(
$MAXC
)
{
|
j
|
ss
<<
j
};
ss
.
inspect
;
end
def
test2
ss
=
[]
;
0
.
upto
(
$MAXC
)
{
|
j
|
ss
<<
j
*
rand
()
};
end
def
test3
ss
=
[]
;
0
.
upto
(
$MAXC
)
{
|
j
|
ss
<<
rand
()
};
ss
.
inspect
;
end
def
test4
ss
=
[]
;
0
.
upto
(
$MAXC
)
{
|
j
|
ss
<<
rand
()
};
end
def
test5
ss
=
[]
;
0
.
upto
(
1000
*
$MAXC
)
{
|
j
|
rand
()
}
end
def
test6
ss
=
[]
;
0
.
upto
(
1000
*
$MAXC
)
{
|
j
|
rand
().
inspect
}
end
def
test7
ss
=
[]
;
0
.
upto
(
1000
*
$MAXC
)
{
|
j
|
j
.
inspect
}
end
puts
RUBY_VERSION
notest
=
7
notest
==
1
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test1
}
# ok
notest
==
2
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test2
}
# ok
notest
==
3
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test3
}
# bug 1.9.1
notest
==
4
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test4
}
# ok
notest
==
5
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test5
}
# ok
notest
==
6
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test6
}
# bug 1.9.1
notest
==
7
&&
0
.
upto
(
1000
*
1000
*
1000
)
{
test7
}
# ok
(1-1/1)
Loading...