Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which areas to focus on when testing C# vs Java performance (execution)?

I am working on a school project, where I need to develop a hypothesis to be verified or falsified. My hypothesis is that C# execution time is faster than Java execution time on Windows, because C# is developed by Microsoft. Some of you might already know the answer to this hypothesis, and there have probably been studies that document this. But it does not matter, i just need to make this project myself.

So i would like some ideas on areas to focus on, and how to measure them?

P.S It should not be too complicated.

Thanks!

like image 978
Kenci Avatar asked Jun 27 '26 07:06

Kenci


1 Answers

Some things I would test:

The time to open a file, write a line to it, and close it.

The time to open a network connection.

The time to open a database connection, write a single byte to it, and then close the connection.

The time to create and populate an array, a standard ArrayList, and a generic ArrayList.

The time to do sorting, using different algorithms.

The time to run a large loop.

like image 68
dnuttle Avatar answered Jun 29 '26 19:06

dnuttle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!