Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1025512 // Bench TokenIndexedList3

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7865L/56K).

!7

p-exp {
  int n = oneMillion();
  new TokenIndexedList3 l;
  profileToConsole(r {
    twice {
      time {
        // use long var to allow safepointing (needed for profiling)
        for (long i = 0; i < n; i++) l.add("");
        for (long i = 0; i < n; i++) l.set((int) i, "x");
      }
    }
    printBenchResult(n);
  });
}

Author comment

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: 271 / 968
Version history: 1 change(s)
Referenced in: