Talk About Network



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++ > Shootout (sum-...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 33 Topic 45766 of 45898
Post > Topic >>

Shootout (sum-file)

by Razik <hrttugd@[EMAIL PROTECTED] > May 6, 2008 at 12:22 AM

On Wed, 30 Apr 2008 08:00:38 -0700 (PDT), Isaac Gouy
<igouy2@[EMAIL PROTECTED]
> wrote:

>Why don't you go through all...

Let's continue. Next we deal with sum-file...

http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=all#about

"Programs should use built-in line-oriented I/O functions rather than
custom-code. No line will exceed 128 characters, including newline.
Reading one line at a time, the programs should run in constant
space."

According to Haskel people, 

"Those guys tell us these benchmarks don't favor C and then impose a
limit on line length? What's the purpose of that if not to allow the
use of C's getline() primitive?"

That's a valid point that you need to address. Why 128 characters
limit if not to help C and C++ guys? 

In any case, 
C++
http://shootout.alioth.debian.org/debian/benchmark.php?test=sumcol&lang=gpp&id=2

Java
http://shootout.alioth.debian.org/debian/benchmark.php?test=sumcol&lang=java&id=2

and 14 MB custom file used to test..

1.291s (g++)
0.742s (java -server)
0.706s (jet java net compiler)

Huh? Shame on c++ and g++. Why is still slower despite custom help
provided by Isaac Gouy who imposed artificial 128 char line limit?
Disappointed in C++, once again.




 33 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:16:37 
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 (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 Wed May 14 2:28:36 CDT 2008.