Libraryless. Click here for Pure Java version (17133L/103K).
1 | static double huffmanDecompressionMBPerSecond() { |
2 | S src = loadSnippet(#759); |
3 | byte[] data = toUtf8(src); |
4 | byte[] compressed = huffmanCompressByteArray(data); |
5 | var timed = timedFor5( -> huffmanDecompressByteArray(compressed)); |
6 | assertByteArrayEquals(data, timed!); |
7 | double bytesPerMS = l(data)/timed.ms(); |
8 | double mbPerSec = bytesPerMS/oneMegabyte()*1000; |
9 | print(+bytesPerMS); |
10 | print(+mbPerSec); |
11 | ret mbPerSec; |
12 | } |
Began life as a copy of #1035696
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035698 |
Snippet name: | huffmanDecompressionMBPerSecond - calculated in decompressed bytes. approx. 34 MB/s |
Eternal ID of this version: | #1035698/2 |
Text MD5: | 68db6d1d89a8923ef062fb918b182fe2 |
Transpilation MD5: | de89d901c4b92da2865b4ce0bdb2bdd3 |
Author: | stefan |
Category: | javax / compression |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-09 20:50:47 |
Source code size: | 433 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 125 / 173 |
Version history: | 1 change(s) |
Referenced in: | [show references] |