Re: Contest
- Posted by spent memory <spent.memory at gmail.com> Oct 29, 2004
- 529 views
besides try this : i don't know if it's just my machine but i find this strange. make a new file with the below code, run it 5 times and note the different times --<EuCode>-- include get.e constant START = time() sequence fn fn = gets(0) printf(1, "Elapsed time: %f\n", time() - START) integer junk junk = wait_key() --</EuCode>-- type hello or some other word, make sure it is the same word each of the 5 times u test it. Notice the different times. I know this is normal because the machine is handling diff amounts of processing from other apps but common, i was getting at least half a seconf differences for just 1 line -- sequence fn fn = gets(0) -- so in theory if there is an average of a half second difference over 1 line of code in 5 instances how do you think this will implement to some of the larger algorithms written. ?? On Sat, 30 Oct 2004 02:49:56 +1000, spent memory <spent.memory at gmail.com> wrote: > > > in my opinion to have a score based on processing time even tho you > are doing the testing on your machine 25 times or whatever i believe > it is unfair. The coder of the application may be inclined to use > certain techniques that run better , say on one of the latest > processors with hyperthreading or a myriad of other possibilities. How > is someone not running the equivelant to your testing machine suppose > to account for this testing / implementation of speed in algorithm to > score in this contest?? > > On Fri, 29 Oct 2004 09:25:51 -0700, Matt Lewis <guest at rapideuphoria.com> > wrote: > > > > posted by: Matt Lewis <matthewwalkerlewis at yahoo.com> > > > > Patrick Barnes wrote: > > > > > > I thought the competitors might appreciate this: > > > > > > <a > > > href="http://www.gutenberg.org/etext/2600">http://www.gutenberg.org/etext/2600</a> > > > <-- War and Peace, by Leo Tolstoy > > > > > > It'll be a bit of a stress-test for y'all. > > > I'm still working on my program, but I'll put in my word results when > > > I have them. > > > > > > > Here's mine (less the time): > > > > Matt Lewis wrnpc11.txt > > Total: 564137, Unique: 18471 > > 01 the 34629 > > 02 and 22254 > > 03 to 16738 > > 04 of 14930 > > 05 a 10560 > > 06 he 9864 > > 07 in 8926 > > 08 his 7983 > > 09 that 7899 > > 10 was 7352 > > 11 with 5671 > > 12 had 5364 > > 13 it 5210 > > 14 her 4706 > > 15 not 4687 > > 16 him 4574 > > 17 at 4538 > > 18 i 4147 > > 19 but 4053 > > 01 14887 > > 02 93460 > > 03 141927 > > 04 97813 > > 05 57861 > > 06 48118 > > 07 42138 > > 08 29705 > > 09 17444 > > 10 10811 > > 11 4584 > > 12 2925 > > 13 1512 > > 14 572 > > 15 201 > > 16 106 > > 17 46 > > 18 14 > > 19 2 > > 20 11 > > > >