Libraryless. Click here for Pure Java version (521L/4K/13K).
1 | !752 |
2 | |
3 | static int n = 10, l = 1000000; |
4 | |
5 | p { |
6 | byte[] data = new byte[l]; |
7 | for i to l: data[i] = (byte) (i+1); |
8 | |
9 | print("Bytes=" + n*l); |
10 | |
11 | for i to 10: time { |
12 | for j to n: { |
13 | S md5 = md5(data); |
14 | if (j == 0) print(md5); |
15 | } |
16 | } |
17 | } |
Began life as a copy of #1005712
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: | #1005713 |
Snippet name: | Test MD5 speed 2 (same bytes, fewer calls) |
Eternal ID of this version: | #1005713/1 |
Text MD5: | e945030e3e5fb03ff5d05f853364cf38 |
Transpilation MD5: | 627a97234a2f79cd9a17e23cb3ae324f |
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:49:25 |
Source code size: | 263 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 431 / 504 |
Referenced in: | [show references] |