ASF Bugzilla – Attachment 29324 Details for
Bug 53822
performance of IdentityStack.containsAll()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test
Test.java (text/x-java), 649 bytes, created by
Adrian Nistor
on 2012-09-03 18:46:29 UTC
(
hide
)
Description:
test
Filename:
MIME Type:
Creator:
Adrian Nistor
Created:
2012-09-03 18:46:29 UTC
Size:
649 bytes
patch
obsolete
>import java.util.ArrayList; > >import org.apache.tools.ant.util.IdentityStack; > >public class Test { > public static void main(String[] args) { > int size = 50000; > IdentityStack<Integer> stack = new IdentityStack<Integer>(); > for (int i = 0; i < size; i++) { > stack.push(i); > } > ArrayList<Integer> list = new ArrayList<Integer>(); > for (Integer e : stack) { > list.add(e); > } > > long start = System.currentTimeMillis(); > stack.containsAll(list); > long stop = System.currentTimeMillis(); > System.out.println("Time is " + (stop - start)); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 53822
:
29322
|
29323
| 29324