DEV Community

Calin Baenen
Calin Baenen

Posted on

How fast is Java currently?

I need some estimate for how fast it is as of its most recent version for a school assignment. But, I couldn't find any real numbers anywhere. Unless there's somewhere I'm not looking properly (bc I'm that dumb). So, I was wondering of someone knew how many instructions per second it currently runs at (or some other measurement that's confirmed).

Thanks!
Cheers!

Top comments (4)

Collapse
 
dorshinar profile image
Dor Shinar

There isn't a one-size-fits-all approach to benchmarking. It varies greatly on your use case, and the language you're comparing against.

Java will most likely lose to Nodejs when it comes to handling a massive amount of concurrent connections, but when it comes to CPU bound operations, it will most likely shred node.

Collapse
 
baenencalin profile image
Calin Baenen

Damn.
I need a credible ans, is there any kind of numbers I can use, or is this question doomed to have no answer (as you suggest)?

Collapse
 
alainvanhout profile image
Alain Van Hout

Googling "benchmark programming languages" does offer some concrete numbers, with their own constraints of course.

Thread Thread
 
baenencalin profile image
Calin Baenen

Ok. Thanks for the help.
Cheers.