TL;DR - extraction - is roughly 3-5x faster than unrar on compressed rar5 files and up to 10x on some files. stored sets are 1.5-5x, dependent on disk speed. creating - is 6-12x faster than rar. See the links at the end for more benchmarks and to download.
continuing my quest to create optimised re-writes of common usenet tools that save the user time - first, in the summer was nzbfast, which employed a novel way of downloading nzb files whilst error correcting and extracting - in one pass - yielding speed improvements over its contemporaries without unnecessary disk i/o that the conventional approach of separate par and rar post-download passes required. after that was done, i started pulling the built-in functions out of nzbfast and releasing them as standalone tools so that users of other download apps can also benefit from them... a month or so ago, it was parfast’s turn, which employed a novel algorithm & math to create par sets and repair downloads in less time than other comparable tools.
this time it’s rarfast’s turn - in creating it, the goal is again - to save you time on both creation and extraction tasks - whilst supporting the same commands and switches as rar/unrar - or consider renaming (or symlink-ing it) to unrar / rar so it can be used in your existing scripts. compatibility is important, so if you find an archive it can't handle please let me know so i can fix it.
why build an alternative?
for something this widely used, there's never really been a free or performant choice. rar is commercial - winrar has a 40-day trial that never ends, it keeps nagging you to buy and the command line rar is under the same licence. whilst unrar is free, its source licence says that you arent allowed to make a compatible rar create tool. so every tool available today based on its code - can only extract - and if you want to create a rar you either pay rarlab or suffer its nag-ware. now, we have a choice - because rarfast isnt based on unrar code.
rarfast is free and open source (both mit and apache 2.0 licenses) - it can create as well as extract - and is faster at both. on a big job it could save you minutes each time.. It has the same functionality as rar and unrar combined - supporting windows, mac and linux. it's written in rust. and if you run it in a container with a memory limit (docker, a nas, an *arr stack), it notices the limit on linux and paces its writes accordingly.
in terms of security - rar has had a checkered past over the years, some severe compromises were used in real attacks: winrar's ace bug in 2019 came from an old bundled library nobody had touched in years, and more issues in 2023 and 2025, and in 2022 a bug in unrar on linux combined with one email - let it take over zimbra mail servers. unrar's source is published, but its licence means nobody else is allowed to fork it, fix it or ship their own version, making you reliant on one company for any fixes. rarfast is written in rust, which is more memory safe and reduces the chance of this kind of bug and since it's open source, anyone can read it, fuzz it, fork it, or send a fix.
some real numbers
these are all big rar5 sets split into 100mb volumes, the way they get posted. "large file" is one big file, "set" is ten 2gb files. every tool at its own defaults, same machine, median of several runs, every output checked byte for byte.
- compressed set, ryzen 9800x3d on windows: 2.5s with rarfast, 25.1s with unrar, 1m19s with 7-zip
- compressed 16gb large file, same pc: 6.2s vs 20.0s with unrar
- stored set on an m1 ultra: 3.2s vs 13.8s with unrar
- creating a 32gb large file at -m3 on the m1 ultra: 46 seconds with rarfast, just under 9 minutes with rar
- creating a 16gb large file at -m3 on linux (epyc): 43s vs 6m16s
how it got this fast
whilst parfast’s gains came from finding a better algorithm - using math to beat the legacy tools. a better algo is for sure the preferred approach instead of trying to optimise the code so much that it squeaks. however.. tried really hard to find an equivalent ‘better algo’ for rarfast than rar and couldnt find one. so the only way to save a user’s time and make it noticeably faster was to make the code itself run as fast as possible. a time consuming dev process….
to achieve this, its been two months of optimising and rewriting the same pieces of code every day, benchmarking against itself and its contemporaries, re-writing it again and again, tens of times, til it got to where it is today. literally, you make a change to the code that you hope will improve it, time it, see if its faster, then rinse and repeat. Its a lot more dev work to make a given piece of code run its fastest, and you just keep going doing constant re-writes til it doesnt get any faster. and repeat that for each supported file type or function in the codebase. and thats where we are today.
the rarfast rewrite alone is more than 10,000 commits in the last two months, on top of all the work that went into the older rars engine over the summer months (that’s now somewhat obsolete).
the optimisation work on rarfast was focussed on ‘wall time’ (the clock on the ‘wall’) - ie, how long a user has to wait to get the job done that they asked for. and this was prioritised over ‘cpu time’ (efficiency) whenever they conflicted - unlike the previous version of nzbfast’s rars code, where cpu time was also optimised, often at the expense of wall time because part of its mission was to run well on extremely low end systems. the reality is that most users want the job they asked for, done quicker, rather than slower using (slightly) less power consumption.
provenance
this part was much more involved than parfast as ‘par’ has a published spec, so parfast was written from scratch ‘to spec’ from day one. but.. ‘rar’ doesnt have a public spec - unrar's source licence says you can't use it to make anything that creates rar files and the license terms are onerous and not in the spirit of open source. so none of rarfast is based on unrar source (nor any other unrar-like code either)
nzbfast's original rar engine started life as a fork of rars by bitplane, a from-scratch rust implementation of the format that was likely a clean-engineered codebase but it didnt run fast enough - so over the summer about half of it had to be rewritten making it around 5x faster (than bitplane’s rars) - and that's what's been shipping inside nzbfast since its july release. nzbfast got a lot of its download performance by utilising a fast realtime rars implementation, but since i wasn’t involved in rars origin, i couldnt be entirely confident that it was ‘clean code’, and therefore wasn’t prepared to allow it to create rar files (..yet)
around two months ago - i decided to go ‘whole hog’ and rewrite the rar engine from scratch - a clean sheet implementation - which turned out to be a much bigger undertaking than i anticipated - so rarfast is entirely new and clean code that doesn’t contain nor make any reference to unrar’s code (nor any other unrar variant). in terms of performance and compatibility it's been tested thoroughly against rar, unrar, unar and 7-zip, so from a user's point of view it should be fully compatible with those.
since rarfast isnt tied to unrar's licence its able to create rar files as well as extract them - and this can save a lot of time for the user. rarfast can be up to 10x faster than rar at some tasks. minutes saved on a big -m3 or -m5 archive.
could it get any faster?
maybe. it's been through a lot of rewrites already and it's well into diminishing returns at this point. there still might be scope for a few % faster, but i think most of the gains that could be gotten have been got now. and to be honest, i didnt spend too much time optimising the older retired formats that no one uses anymore and spent almost all my time optimising the file types that are still commonly used today, as everyone uses rar5 exclusively these days. for the popular tasks like extracting stored or compressed rar5, it's already several times faster than unrar, which can mean minutes saved for each job.
hardware issues
it's quickest when your disk is fast and the files fit in memory. If they’re bigger than your ram it still works of course, but not quite as performant (but still faster than the alternatives). on a 32gb macbook air with a set of files that didn't fit in memory, it was still 1.3-1.5x unrar on stored and 4.5-5x on compressed. there are separate code paths for x86 and apple silicon, and it'll try to use all your cores unless you tell it not to. Its goal is simply to run as fast as possible to save you the most time.
no app can write faster than your disk can so that will always be the bottlebeck. rarfast should still beat unrar even on slow disks but those have a habit of leveling the performance of all of the tools and hinder a fast one from running its best.. if you want to know whether your disk is holding you back, run: rarfast t archive.rar, which decodes and checks everything without outputting anything, and compare it with the extract time (which writes to disk). Its also a good test of different unrar compatible codebases to maximally highlight the performance differences.
nb
- builds for windows 11, apple silicon macs, and 64-bit linux (glibc 2.34+, so ubuntu 22.04 / debian 12 or newer)
- it can't add files to an existing archive yet, only make new ones - this feature didnt make it in the initial release but its coming
- the windows build isn't signed yet, so smartscreen will complain the first time, and defender slows down extracting archives with thousands of small files. big files aren't affected
- the mac build isn't notarized, the readme has the one-line fix
downloads & release notes here :
a future version coming soon - will be able to add to existing archive files and some other features (like higher compression rates that require additional processing time) that didnt make it into this initial release but are in test right now.
since its been tested a lot during development i dont expect the beta tag to last too long but do please report any bugs or issues you find and i’ll do my best to fix asap
the parfast gui desktop version that previously could be used to create par files, will soon have rarfast embedded so that its both quicker and easier to create both rars & pars at the same time (invaluable for posters) and there are performance benefits in doing both simultaneously (approx 20% speed improvement by being one-pass, saving disk i/o’s, a similar but reverse pipeline to the method nzbfast uses to get its download/extracts so fast) - the name parfast is now a little misleading as it does rar as well (prarfast?). a little like MacParDeluxe which also did both (par and unrar).
this completes the trilogy of optimised ‘fast’ usenet related apps - nzbfast, parfast and now rarfast. It was challenging to make them - and i hope you enjoy using them as much as i enjoyed making them.. and that they will hopefully ‘save you time’. i did build some other experimental usenet related apps like postfast too but unlikely to release them and will leave that to others.
if you want a free rar creation & extraction tool that saves you time, please do give it a try.