Libraryless. Click here for Pure Java version (17060L/102K).
static double huffmanCompressionMBPerSecond() { S src = loadSnippet(#759); byte[] data = toUtf8(src); var timed = timedFor5( -> huffmanCompressByteArray(data)); double bytesPerMS = l(data)/timed.ms(); double mbPerSec = bytesPerMS/oneMegabyte()*1000; print(+bytesPerMS); print(+mbPerSec); ret mbPerSec; }
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: | 321 / 425 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |