FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jruby/bench/java/bench_java_array.rb at test_github_468 · MSNexploder/jruby · GitHub
MSNexploder
/
jruby
Public
forked from
jruby/jruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
jruby
/
bench
/
java
/
bench_java_array.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (46 loc) · 1.22 KB
Breadcrumbs
jruby
/
bench
/
java
/
bench_java_array.rb
Copy path
File metadata and controls
53 lines (46 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
require
'perfer'
Perfer
.
session
'Java array operations'
do
|
s
|
s
.
iterate
(
"access ruby array"
)
do
|
n
|
a
=
[
1
,
2
,
3
]
n
.
times
do
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
end
end
s
.
iterate
(
"access java array"
)
do
|
n
|
a
=
[
1
,
2
,
3
]
.
to_java
:int
n
.
times
do
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
;
a
[
0
]
end
end
s
.
iterate
(
"construct ruby array"
)
do
|
n
|
n
.
times
do
a
=
[
]
;
a
=
[
]
;
a
=
[
]
;
a
=
[
]
;
a
=
[
]
a
=
[
]
;
a
=
[
]
;
a
=
[
]
;
a
=
[
]
;
a
=
[
]
end
end
s
.
iterate
(
"construct java array slow"
)
do
|
n
|
int
=
Java
::
int
n
.
times
do
int
[
0
]
.
new
;
int
[
0
]
.
new
;
int
[
0
]
.
new
;
int
[
0
]
.
new
int
[
0
]
.
new
;
int
[
0
]
.
new
;
int
[
0
]
.
new
;
int
[
0
]
.
new
end
end
s
.
iterate
(
"construct java array medium"
)
do
|
n
|
int_ary
=
Java
::
int
[
0
]
n
.
times
do
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
end
end
if
Java
::
int
.
respond_to?
:new_array
s
.
iterate
(
"construct java array new_array"
)
do
|
n
|
int_ary
=
Java
::
int
[
0
]
n
.
times
do
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
;
int_ary
.
new
end
end
end
end
Back
|
FazBrowse Home
|
New Git URL