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

Speed difference between window app and console app #170

Open
hoangvh94 opened this issue Jun 11, 2023 · 6 comments
Open

Speed difference between window app and console app #170

hoangvh94 opened this issue Jun 11, 2023 · 6 comments

Comments

@hoangvh94
Copy link

hoangvh94 commented Jun 11, 2023

A big difference about speed between the window app and console app

image

and consolve_solver.exe (left is wndow app, right is console app built)
image

commandline_sample_input2.txt

@bupticybee
Copy link
Owner

bupticybee commented Jun 12, 2023

截屏2023-06-12 10 32 43

截屏2023-06-12 10 32 52

I done some experiments, yes, it seems that in small tree settings, the two does run at a different speed. Since both binary is compiled by the same core code. I would guess it's the compiler that matters.

BTW, it's more common in my experiments if the tree are big enough, console version is faster.

@hoangvh94
Copy link
Author

hoangvh94 commented Jun 13, 2023

why its (console_solver.exe) so different between Window app (3807 kb) and Console built (657 kb)

and when I copied and ran console_solver(3807)
image
instead of (657) one
image

it's extremely fast
image
and the process log is a bit different in picture 1st comment above
image

@bupticybee
Copy link
Owner

They are compiled under different environment, different compiler, and some different code. Size different and speed different are excepted.

@bupticybee
Copy link
Owner

If you are that into speed, I encourage you to build the binary youself to get best speed.

@hoangvh94
Copy link
Author

you are right, I tried some others environment and speed is different. So could you tell me which environment I should use for faster speed? require for RAM or CPU ....?

@bupticybee
Copy link
Owner

you are right, I tried some others environment and speed is different. So could you tell me which environment I should use for faster speed? require for RAM or CPU ....?

I really don't know about that, I think this kind of knowledge requires a lot of hardware and experiments, I don't have both.

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