Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Shootout (...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 47 Topic 26081 of 26960
Post > Topic >>

Re: Shootout (sum-file)

by "Bartc" <bc@[EMAIL PROTECTED] > May 6, 2008 at 09:59 AM

"Richard Heathfield" <rjh@[EMAIL PROTECTED]
> wrote in message 
news:YKmdnTjH8aINu73VnZ2dnUVZ8uKdnZ2d@[EMAIL PROTECTED]
> Bartc said:
>
>> [copy of post sent to c.l.c++]
>> "Richard Heathfield" <rjh@[EMAIL PROTECTED]
> wrote in message
>> news:-9OdnXIZ5Pjbgr3VnZ2dneKdnZydnZ2d@[EMAIL PROTECTED]
>>> Razii said:
>>>
>>>> On Tue, 06 May 2008 08:28:15 +0000, Richard Heathfield
>>>> <rjh@[EMAIL PROTECTED]
> wrote:
>>>>
>>>>>C:    0.003
>>>>>C++:  0.021
>>>>>Java: 0.058
>>>>
>>>> I haven't tested your C version yet, but these times are too low.
>>>
>>> I thought that getting the lowest time was the whole point!
>>>
>>> But to put your mind at rest, these times are for the 6KB test file. I
>>> couldn't be bothered to go looking for the 14MBer.
>>
>> These timings do look too low to be measured accurately.
>
> I sometimes wonder about this universe. Did nobody see what I wrote
> originally? And I quote: "I conclude on the basis of this FULLY
> REPRESENTATIVE AND STATISTICALLY SIGNIFICANT SAMPLE that C rocks, Java
> sucks, and C++ isn't sure which it is."
>
> Now then, let's start simple. Can you spell "iron"? And do you know what

> it
> means? If so, we can build up from there.
>
>> It's possible C++ and Java have some start-up delays in which case you
>> cannot compare /runtimes/ reliably.
>
> Rubbish. It takes how long it takes. If WonderfulNewLanguage*= can
process
> the data in a time comparable to, say, Java, *provided* you discount
> WonderfulNewLanguage*='s 20-minute startup delay, does that mean
> WonderfulNewLanguage*= is as good at Java over that "distance"? Clearly
> not. When you're racing for money, you don't give head starts.

But the Java startup isn't 1200000ms; whatever it is, it's no more than
58ms 
in this case, which is insignificant; probably less than the time it took
to 
press the Enter key or click the button to start the test.

Suppose the C startup was 0ms, and that of Java was 50ms. And supposing
you 
were testing an empty program, which, with inevitable OS overheads
(loading 
the executable etc), took 1ms in each case. 1ms and 51ms. What would you 
conclude from that? That Java is 50x faster? And if the overhead was only 
0.1ms, that Java was 500x faster? And if the overhead was 10ms, that Java 
was only 6x faster?

If someone is really interested in how much faster Java is than C, I would

not trust your tests. Because with timings at these level, the figures are

unreliable.

-- 
Bartc
 




 47 Posts in Topic:
Shootout (sum-file)
Razik <hrttugd@[EMAIL   2008-05-06 00:22:45 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 05:49:03 
Re: Shootout (sum-file)
Razii <hkasdh@[EMAIL P  2008-05-06 02:41:27 
Re: Shootout (sum-file)
"Chris Thomasson&quo  2008-05-06 00:45:45 
Re: Shootout (sum-file)
Juha Nieminen <nospam@  2008-05-06 08:17:49 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 04:44:38 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 08:28:15 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 04:58:46 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 09:09:16 
Re: Shootout (sum-file)
"Bartc" <bc@  2008-05-06 09:19:36 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 09:40:22 
Re: Shootout (sum-file)
"Bartc" <bc@  2008-05-06 09:59:24 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 10:07:24 
Re: Shootout (sum-file)
"Bartc" <bc@  2008-05-06 10:21:22 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 10:34:21 
Re: Shootout (sum-file)
"Bartc" <bc@  2008-05-06 10:57:38 
Re: Shootout (sum-file)
Mark McIntyre <markmci  2008-05-06 23:25:33 
Re: Shootout (sum-file)
Mark McIntyre <markmci  2008-05-06 23:23:09 
Re: Shootout (sum-file) {Soon to be flamefest}
"Dann Corbit" &  2008-05-06 11:47:11 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 05:12:57 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 09:59:33 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 06:02:28 
Re: Shootout (sum-file)
"Joachim Schmitz&quo  2008-05-06 13:08:21 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 11:17:43 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 06:37:43 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 11:51:59 
Re: Shootout (sum-file)
richard@[EMAIL PROTECTED]  2008-05-06 12:11:38 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 12:28:39 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-06 07:24:41 
Re: Shootout (sum-file)
"Bo Persson" &l  2008-05-06 19:38:13 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-09 07:58:01 
Re: Shootout (sum-file)
Razii <gjtrsds@[EMAIL   2008-05-09 08:47:01 
Re: Shootout (sum-file)
Isaac Gouy <igouy2@[EM  2008-05-06 07:44:08 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-06 14:49:58 
Re: Shootout (sum-file)
Isaac Gouy <igouy2@[EM  2008-05-06 08:21:33 
Re: Shootout (sum-file)
Bart <bc@[EMAIL PROTEC  2008-05-07 12:52:20 
Re: Shootout (sum-file)
Keith Thompson <kst-u@  2008-05-07 13:54:49 
Re: Shootout (sum-file)
Bart <bc@[EMAIL PROTEC  2008-05-07 19:30:03 
Re: Shootout (sum-file)
Richard Heathfield <rj  2008-05-08 05:53:03 
Re: Shootout (sum-file)
Mark McIntyre <markmci  2008-05-08 23:33:47 
Re: Shootout (startup)
Razii <uiyffk@[EMAIL P  2008-05-06 02:17:45 
Re: Shootout (startup)
Razii <gjtrsds@[EMAIL   2008-05-06 03:56:28 
Re: Shootout (startup)
Razii <gjtrsds@[EMAIL   2008-05-07 08:50:07 
Re: Shootout (sum-file)
Nick Keighley <nick_ke  2008-05-06 00:58:28 
Re: Shootout (sum-file)
Nick Keighley <nick_ke  2008-05-06 00:59:23 
Re: Shootout (sum-file)
santosh <santosh.k83@[  2008-05-06 14:14:35 
Re: Shootout (sum-file)
Mark McIntyre <markmci  2008-05-06 09:00:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:35:43 CDT 2008.