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

15
LINES

< > BotCompany Repo | #1005712 // Test MD5 speed

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

Libraryless. Click here for Pure Java version (525L/4K/13K).

!752

static int n = 10000, l = 1000;

p {
  byte[] data = new byte[l];
  for i to l: data[i] = (byte) (i+1);
  
  print("Bytes=" + n*l);
  
  for i to 10: time {
    for j to n:
      md5(data);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005712
Snippet name: Test MD5 speed
Eternal ID of this version: #1005712/1
Text MD5: e9de13863d4965d8d1cc5cd689b36a93
Transpilation MD5: 5f98455b2cff14c20ff8b6dfe7f90166
Author: stefan
Category: javax / benchmarking
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-04 13:51:25
Source code size: 215 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 328 / 388
Referenced in: [show references]