Download Jar. Libraryless. Click here for Pure Java version (7860L/56K).
1 | !7 |
2 | |
3 | p-exp { |
4 | int n = 100000; //oneMillion(); |
5 | new TokenIndexedList2 l; |
6 | profileToConsole(r { |
7 | twice { |
8 | time { |
9 | // use long var to allow safepointing (needed for profiling) |
10 | for (long i = 0; i < n; i++) l.add(""); |
11 | for (long i = 0; i < n; i++) l.set((int) i, "x"); |
12 | } |
13 | } |
14 | printBenchResult(n); |
15 | }); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025508 |
Snippet name: | Bench TokenIndexedList2 |
Eternal ID of this version: | #1025508/5 |
Text MD5: | 0a468bbc5a0d8ec2b4ae0007828b3a5c |
Transpilation MD5: | d41cdfe6786b5f85a04c1dbe8fc30b60 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-01 17:06:49 |
Source code size: | 357 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 915 |
Version history: | 4 change(s) |
Referenced in: | [show references] |