execution speed on openbsd 7.3
bK4gYuRo opened this issue · 3 comments
enchive on openbsd 7.3 runs ~5 times slower than on macos 10.13 or void linux.
Extraction of the same archive file takes 11.5 sec on openbsd and less than 2 seconds on macos:
On openbsd:
$ time ./enchive -s ~/.keep/keep.s extract < ~/.keep/.keep.enc > /dev/null
passphrase:
0m18.62s real 0m11.46s user 0m00.10s system
On macos:
$ time ./enchive -s ~/.keep/keep.s extract < ~/.keep/.keep.enc > /dev/null
passphrase:
real 0m7.87s
user 0m1.59s
sys 0m0.02s
Could the slowdown be caused by openbsd libc?
A few more details:
openbsd runs on this hardware:
hw.model=Intel(R) Celeron(R) CPU N3160 @ 1.60GHz
macos hardware is this:
Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
Thank you for the research and explanation! For my personal use I am going to compile it with gcc. I will bring up clang issue on openbsd mailing list.