Half_of_nothing
Benchmarking is good and bad. If your program does three things and it takes a tenth of a second.. there’s no point in looking for optimizations.
If code are executed in loops and is called thousands of times.. you should look into optimizing. Or if just a few calls are taking above a second.. there might be a better way.
Or, let’s say you are using Ruby2d and the main loop is called 60 times a second.. How you handle the game logic is going to be noticeable.
I think curiosity is a reason: ‘What would happen if…?’
When I look things up and end up in a forum-answer.. I always find those boring people that are trying to discourage others from finding out.
So, even if you’re just parsing through ONE file.. DO test what approach is the best. It might not benefit the code you are writing now.. but it might benefit the code you will write later.