I am in the middle of writing a XLSX parser. My usecase is just to read a spreadsheet and store the cell values into some object structure.
Once complete, I want to compare my code's performance (memory and time) with that of Apache Poi.
For time comparison, I was thinking of checking the delta System.nanotime(). I will parse the xlsx multiple times in a loop to make sure the execution time is in the order of seconds and then average.
I need help with the following:
- Is there a better way to compare execution time?
- How can I compare the memory footprint of my code with Poi?
Could anybody help with some information/suggestion please?