Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Download (503 Bytes)
Bug #4272
» test_bug.rb
ibc (Iñaki Baz Castillo)
, 01/12/2011 11:04 AM
require
"./test_encoding"
times
=
(
(
ARGV
[
0
]
and
ARGV
[
0
].
to_i
>
0
)
?
ARGV
[
0
].
to_i
:
5000
)
Thread
.
abort_on_exception
=
true
threads
=
[]
t
=
TestEncoding
::
Tester
.
new
tester
=
TestEncoding
::
Tester
.
new
times
.
times
do
|
num
|
puts
"iteration [
#{
num
}
]"
puts
tester
.
test_rb_str_new
.
encoding
threads
<<
Thread
.
new
{
}
end
threads
.
each
{
|
t
|
t
.
join
}
times
.
times
do
|
num
|
puts
"iteration [
#{
num
}
]"
puts
tester
.
test_rb_enc_str_new
threads
<<
Thread
.
new
{
}
end
threads
.
each
{
|
t
|
t
.
join
}
puts
"OK"
« Previous
1
2
3
4
5
Next »
(3-3/5)
Loading...