That benchmark does not really say anything about the performance of a language... I'd assume that a large - if not almost all - of the time of the benchmark was spent on flushing the terminal. Do not write flushed output to a terminal when performing benchmarks.
not really you can't say 'x is faster than y' it depends on many things. Java and c# pretty much the same when it comes to speed 99% of the time if you spend time to optimize properly, in fact in terms of optimization c# gives you more options with unsafe code and other features.
You shouldn't pring anything on benchmarks because printing slows down your program
Yes, agreed. In this case printing into stdout is also part of the benchmark. The same amount of printing for both languages))
@@neonspotlight8034 But you should run on Linux as well if you are testing for console stuff.
That benchmark does not really say anything about the performance of a language... I'd assume that a large - if not almost all - of the time of the benchmark was spent on flushing the terminal. Do not write flushed output to a terminal when performing benchmarks.
Who ever uses the "// import the XXX class" comments!????? It's useless!
Chatgpt
For java. Around half of the time went by printing...
Try to reduce the prints to no more than one per second
Try--> Rust vs C++ vs Java vs C#
This video was generated by AI
Only voice over. My english pronunciation is not good enough))
@@neonspotlight8034 what are you using for the AI voice?
benchmarksgame is broken - java is actually faster, but these benchmarks are not equal to each other
not really you can't say 'x is faster than y' it depends on many things. Java and c# pretty much the same when it comes to speed 99% of the time if you spend time to optimize properly, in fact in terms of optimization c# gives you more options with unsafe code and other features.
Lol it's exactly the same code he's running how is it broken?