Drawing circles is not an appropriate benchmark of what a GPU can do. If all you need is circles, buy a circle drawing card.
I'm joking, but you get the point. Synthetic benchmarks are not automatically valid predictors of real-world performance. There's some great books full of exceptions that can make a benchmark useless.
There are a few use cases where Allegro 4 can be faster (lots of per-pixel manipulation). But I've recently run an Allegro 5 program where I drew thousands of 1x1 blended rectangles to draw single pixel rain and it still ran at maximum FPS; so, I'm not even sure that's the case anymore unless you're doing something wrong.
Usually, people coming from Allegro 4 still have the "allegro 4 mindset" and don't understand that modern graphics are done much differently, and that your game should be structured to reflect that.
The vsync is not included in the render timings.
Just because you didn't ask for it, doesn't mean it's not on. Drivers can both assume a default if you didn't ask, and override it if you did ask.
Secondly, your drawing routines may be slower initially, but do they linearly grow in time? It's entirely possible your modern graphics have a higher initial overhead, but scale much better. Try higher numbers of circles. What happens to both the A4 and A5 versions?
Let's be clear: It's entirely possible you're spot on and there's something wrong or broken in A5 making it slower. But in most cases, it's a user doing things wrong.
- Please list your hardware
- Please post the minimal amount of code that replicates the issue, formatted in < code> tags