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

16
LINES

< > BotCompany Repo | #1025508 // Bench TokenIndexedList2

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

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

!7

p-exp {
  int n = 100000; //oneMillion();
  new TokenIndexedList2 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);
  });
}

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: 145 / 642
Version history: 4 change(s)
Referenced in: [show references]