Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execution speed on openbsd 7.3 #31

Open
bK4gYuRo opened this issue Jun 3, 2023 · 3 comments
Open

execution speed on openbsd 7.3 #31

bK4gYuRo opened this issue Jun 3, 2023 · 3 comments

Comments

@bK4gYuRo
Copy link

bK4gYuRo commented Jun 3, 2023

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?

@bK4gYuRo
Copy link
Author

bK4gYuRo commented Jun 3, 2023

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

@skeeto
Copy link
Owner

skeeto commented Jun 4, 2023 via email

@bK4gYuRo
Copy link
Author

bK4gYuRo commented Jun 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants