How can I measure the speed of code written in Java? (AI algorithms)

Posted by Registered User on Stack Overflow See other posts from Stack Overflow or by Registered User
Published on 2010-03-08T19:05:21Z Indexed on 2010/05/22 23:50 UTC
Read the original article Hit count: 153

Hi All,

How can I measure the speed of code written in Java?

I planning to develop software which will solve Sudoku using all presently available AI and ML algorithms and compare time against simple brute-force method. I need to measure time of each algorithm, I would like to ask for suggestions on what is the best way of doing that? Very important, program must be useful on any machine regardless to CPU power/memory.

Thank you.

© Stack Overflow or respective owner

Related posts about java

Related posts about artificial-intelligence