Why different environment can show different efficiency?

Alright, the next step would be to do application level profiling and see what’s different inside your JVMs. Use YourKit or VisualVM for that