473,883 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

benchmarks? java vs .net

The shootout site has benchmarks comparing different languages. It
includes C# Mono vs Java but not C# .NET vs Java. So I went through
all the benchmark on the site ...

http://kingrazi.blogspot.com/2008/05...enchmarks.html

Just to keep the post on topic for my friends at comp.lang.c++, how do
I play default windows sounds with C++?

Jun 27 '08
358 13269
On Jun 6, 1:44*pm, Jon Harrop <j...@ffconsult ancy.comwrote:
Jon Skeet [C# MVP] wrote:
Jon Harrop <j...@ffconsult ancy.comwrote:
The command line options that Razii chose effectively turn off the GC.
Interesting.. After N 1000 "man years" of development of our garbage
collector, how do we use to best advantage?

Turn the f**g thing off!

:-)

regards
Andy Little


Jun 27 '08 #251
Jon Skeet [C# MVP] wrote:
Jon Harrop <jo*@ffconsulta ncy.comwrote:
>Here, let me help:

$ time java -server -verbose:gc -Xms3g -Xmx3g -XX:NewRatio=1 binarytrees
16
stretch tree of depth 17 check: -1
131072 trees of depth 4 check: -131072
32768 trees of depth 6 check: -32768
8192 trees of depth 8 check: -8192
2048 trees of depth 10 check: -2048
512 trees of depth 12 check: -512
128 trees of depth 14 check: -128
32 trees of depth 16 check: -32
long lived tree of depth 16 check: -1

real 0m2.964s
user 0m1.472s
sys 0m1.356s

Now there are zero garbage collections.

Right - with those parameters, which aren't the ones Razii posted.
Razii set it at half a gig, not 3 gigs.
That's not *at all* the same thing as saying that the GC has been
turned off.

Right, the GC isn't "off" in theory it just never gets called in
practice.

Except it did with the settings Razii actually posted, as opposed to
the ones you posted above.
The cost of the GC has been radically reduced,

By not running the GC we have now completely eliminated its "cost", yes.

With your changed settings, yes.
but it is still collecting garbage.

Right, the garbage all gets collected when the program terminates.

With your changes, yes.

It's really not fair to Razii to claim that he disabled the garbage
collector when his settings certainly *didn't* prevent the garbage
collector from collecting.

Please go by what he posted, not some other settings you've come up
with. Your claim that Razii "effectivel y turn[ed] off the GC" is simply
untrue.
My claim was clearly perfectly correct.

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u
Jun 27 '08 #252
On Jun 7, 1:51*pm, Razii <pyukj...@gmail .comwrote:
He not only used diiferent options (3 gig ram) but he also reduced
command line argument from 20 to 16.
Ahh... booo hoo ... Poor little Ratboy ...

regards
Andy Little

Jun 27 '08 #253
kwikius <an**@servocomm .freeserve.co.u kwrote:
He not only used diiferent options (3 gig ram) but he also reduced
command line argument from 20 to 16.

Ahh... booo hoo ... Poor little Ratboy ...
Is there any chance we could keep the discussion civil, and based on
the technical merits of the arguments instead of personal insults?

--
Jon Skeet - <sk***@pobox.co m>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Jun 27 '08 #254
On Sat, 7 Jun 2008 16:32:57 +0100, Jon Skeet [C# MVP]
<sk***@pobox.co mwrote:
>Is there any chance we could keep the discussion civil, and based on
the technical merits of the arguments instead of personal insults?
It's fine. kwikius is a well known troll :) He claimed to have plonked
me a dozen of time but can't seem to stop reading the my threads.
Jun 27 '08 #255
Razii wrote:
On Sat, 7 Jun 2008 13:29:53 +0100, Jon Skeet [C# MVP]
<sk***@pobox.co mwrote:
>>Now rather than just repeatedly stating your claim, or arguing by using
*different* option

He not only used diiferent options (3 gig ram) but he also reduced
command line argument from 20 to 16.
The shootout uses n=16.

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u
Jun 27 '08 #256
On Sat, 07 Jun 2008 19:35:08 +0100, Jon Harrop <jo*@ffconsulta ncy.com>
wrote:
>The shootout doesn't use 3 gig max memory.

How do you know that?
They list the options they use. Besides, the computer they are using,
Pentium 4, has only 512 MB ram.
>I get a 10% error here and no significant difference between the results:
I do. With n=16, Xms64m on average is faster. If you don't get a
difference, your point is still moot about GC. Only with larger n,
like n=20, there is big improvement in speed with using my flags. The
GC still works and it's is faster, two times faster.

Jun 27 '08 #257
On Jun 7, 4:32*pm, Jon Skeet [C# MVP] <sk...@pobox.co mwrote:
kwikius <a...@servocomm .freeserve.co.u kwrote:
He not only used diiferent options (3 gig ram) but he also reduced
command line argument from 20 to 16.
Ahh... booo hoo ... Poor little *Ratboy ...

Is there any chance we could keep the discussion civil, and based on
the technical merits of the arguments instead of personal insults?
Depends...

Ratboy started this and you and Jon Harrop are continuing it. I
politely hope that you will stop crossposting to comp.lang.c++ and
remove followups. ( I guarantee that Ratboy will put them back so you
will need to watch that on every post) There's no C++ content here.

Bear in mind that Ratboy here changes his email address on pretty much
every post because everyone on comp.lang.c++ killfiles him. Do you
think that is being civil? I don't. I think its down right offensive.

Most people know how to kill file this thread in spite of Ratboys
efforts of course but newbies often don't.

regards
Andy Little

Jun 27 '08 #258
On Sat, 7 Jun 2008 12:17:48 -0700 (PDT), kwikius
<an**@servocomm .freeserve.co.u kwrote:
>Most people know how to kill file this thread in spite of Ratboys
efforts of course but newbies often don't.
Ratgirl, you do know how to kill-file a thread, don't you? You seem to
be obsessively reading each and every post in each and every thread.
How come? Your group is filled with spam. Do you respond to each spam
and whine that they stop posting? If not, what's your obsession with
these threads, Ratgirl?
Jun 27 '08 #259
Razii wrote:
On Sat, 07 Jun 2008 19:35:08 +0100, Jon Harrop <jo*@ffconsulta ncy.com>
wrote:
>>The shootout doesn't use 3 gig max memory.
How do you know that?

They list the options they use. Besides, the computer they are using,
Pentium 4, has only 512 MB ram.
Xmx is a reliable max on memory usage.

Physical memory is not. Java uses virtual memory. If there is not
enough physical memory to cover then it still works - it just becomes
very slow.

Arne
Jun 27 '08 #260

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

80
3572
by: tech | last post by:
Hi, i have the following problem In file1.h namespace A { class Bar { void foo();
318
11198
by: King Raz | last post by:
The shootout site has benchmarks comparing different languages. It includes C# Mono vs Java but not C# .NET vs Java. So I went through all the benchmark on the site ... http://kingrazi.blogspot.com/2008/05/shootout-c-net-vs-java-benchmarks.html Just to keep the post on topic for my friends at comp.lang.c++, how do I play default windows sounds with C++?
0
9791
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10844
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10410
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9571
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7970
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5990
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4215
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.