roc-deflate, written in the functional language Roc, trails the C library libdeflate by 2.6%
An analysis compared roc-deflate, a compression package written in the functional language Roc by Niclas Ahden, with libdeflate, the DEFLATE library written in C and hand-tuned with SIMD instructions. Using the Silesia corpus and 144 benchmarks at levels L1 to L12, the median was 2.6% slower on a MacBook Pro M1 and 8.9% on a Ryzen 9 3900X. In the worst case it was 18% slower and in the best case slightly more than 18% faster. Roc, which is preparing version 0.1.0 after eight years of development, guarantees memory safety and pure functions.
In 45 seconds
- roc-deflate came within a median of 2.6% of libdeflate on a MacBook Pro M1 and 8.9% on a Ryzen 9 3900X
- The range per input went from 18% slower to slightly more than 18% faster, according to the Silesia corpus
- Roc offers memory safety, automatic reference counting and bounds checking, with no unsafe-style mechanism
IASummary generated by artificial intelligence from a story by El Ecosistema Startup. It may contain errors: the original source prevails.




Comments
Be respectful. Comments reported by several people are hidden until a moderator reviews them.
You do not need an account to read, only to comment. Sign in with a code sent to your email or with your Google account. We only show the name you choose, never your email.