Libraryless. Click here for Pure Java version (17133L/103K).
static double huffmanDecompressionMBPerSecond() { S src = loadSnippet(#759); byte[] data = toUtf8(src); byte[] compressed = huffmanCompressByteArray(data); var timed = timedFor5( -> huffmanDecompressByteArray(compressed)); assertByteArrayEquals(data, timed!); double bytesPerMS = l(data)/timed.ms(); double mbPerSec = bytesPerMS/oneMegabyte()*1000; print(+bytesPerMS); print(+mbPerSec); ret mbPerSec; }
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: | 126 / 175 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |