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

Make a project that calculates the execution time of Jalgorithm. the project should be able to demonstrate Jalgorithm's superiority by real data and charts. use JFreeChart for that #76

Open
mohammadkarbalaee opened this issue Jan 11, 2022 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation Implementation New feature or request management

Comments

@mohammadkarbalaee
Copy link
Owner

No description provided.

@mohammadkarbalaee mohammadkarbalaee added documentation Improvements or additions to documentation Implementation New feature or request management labels Jan 11, 2022
@cklimkowski
Copy link
Contributor

Hi,
As Muhammad mentioned during last meeting and as per https://stackoverflow.com/questions/3382954/measure-execution-time-for-a-java-method there is no easy way, to measure program performance exactly, because it depends on so many different factors (e.g. hardware, other software running on the same system, just-in-time and hot-spot compilation, input data etc.)
So we would need an isolated machine/environment in always the same pure state, which is rather impossible.
However I believe we don't need to have precise time measurement of executions, it just should allow us to compare specific implementations (addressing exactly the same algorithmic exercise with the same input data sets). I mean that we could determine how much in per cents the one implementation is faster/slower than the other one, but only at rough level. We will not be able to differentiate reliably close implementations as it depends on so many things even connected with the sheer JVM and imponderabilia of codes.
Please see at JMH https://github.com/openjdk/jmh , http://tutorials.jenkov.com/java-performance/jmh.html and share your thougts.

Best,

@mohammadkarbalaee
Copy link
Owner Author

Hi Cyprian,

I think reporting an approximate percentage is enough, since developers just tend to know that what they are using is the fastest available and they don't care about the precision.

The project that you linked to seems to be a good option for what we need.
We'll probably use it for this task. thanks for your thoughts and sharing that project Cyprian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Implementation New feature or request management
Projects
None yet
Development

No branches or pull requests

3 participants