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

14
LINES

< > BotCompany Repo | #1014664 // Benchmark Decompressing gzip buffer sizes

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

Download Jar. Libraryless. Click here for Pure Java version (5530L/36K).

!7

p {
  File f = loadLibrary(#1008743);
  print("Input: " + fileSize(f) + " bytes");
  int l = 0;
  for (int bufferSize : ll(8192, 65536, 1024*1024)) {
    print_doubleNL("Buffer size: " + bufferSize);
    repeat 10 { time2 {
      l = l(readFully(gzInputStream(f)));
    }}
  }
  print_nlBefore(l + " bytes");
}

Author comment

Began life as a copy of #1009533

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014664
Snippet name: Benchmark Decompressing gzip buffer sizes
Eternal ID of this version: #1014664/1
Text MD5: 3f19df43da7580f6c9ad4cfe0f69fb3c
Transpilation MD5: f6f1066368b3a5f614cc4710ca707305
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-29 14:00:41
Source code size: 327 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 1073
Referenced in: [show references]