Libraryless. Click here for Pure Java version (17060L/102K).
1 | static double huffmanCompressionMBPerSecond() { |
2 | S src = loadSnippet(#759); |
3 | byte[] data = toUtf8(src); |
4 | var timed = timedFor5( -> huffmanCompressByteArray(data)); |
5 | double bytesPerMS = l(data)/timed.ms(); |
6 | double mbPerSec = bytesPerMS/oneMegabyte()*1000; |
7 | print(+bytesPerMS); |
8 | print(+mbPerSec); |
9 | ret mbPerSec; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035696 |
Snippet name: | huffmanCompressionMBPerSecond - approx. 18 MB/s |
Eternal ID of this version: | #1035696/3 |
Text MD5: | b09b0bb0c87433707c9641ac1a5b47fa |
Transpilation MD5: | 5dc55b4940daa6aeeadded05565a3832 |
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:52 |
Source code size: | 328 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 111 / 166 |
Version history: | 2 change(s) |
Referenced in: | [show references] |