fakechroot icon indicating copy to clipboard operation
fakechroot copied to clipboard

Overhead compared to other methods

Open eownerdead opened this issue 1 year ago • 1 comments

I took a (piece-of-crap) benchmarks of chroot, proot, fakechroot and bubblewrap. It shows that fakeroot and proot are nearly twice as slow as chroot, but fakechroot is a bit faster. I assumed that fakechroot uses LD_PRELOAD, so it has less overhead than proot, which uses ptrace, though. What make fakechroot slow?

eownerdead avatar Jan 27 '24 21:01 eownerdead

Set the environment variable FAKECHROOT_DEBUG to 1 and you will see the overhead from translating paths for most library calls.

josch avatar Apr 14 '24 16:04 josch