Download Jar. Libraryless. Click here for Pure Java version (7865L/56K).
1 | !7 |
2 | |
3 | p-exp { |
4 | int n = oneMillion(); |
5 | new TokenIndexedList3 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 | } |
Began life as a copy of #1025508
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, omdjrrnzbjjv, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025512 |
Snippet name: | Bench TokenIndexedList3 |
Eternal ID of this version: | #1025512/2 |
Text MD5: | a49fc2d8c1fd85ff31aefe3ad24ac31b |
Transpilation MD5: | 8782913619ab43eefd12e738197e0cb7 |
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:51:46 |
Source code size: | 347 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 270 / 968 |
Version history: | 1 change(s) |
Referenced in: | [show references] |