Hello Jeremy and thank for your input. I have tried the programs in various 
sequences so I do not think caching is an issue here, we are talking about one 
million consecutive lines read per run. If cashing played a role the ooRexx 
program should improve if I run it after the c program and vice versa. I see 
nothing of that.

The point of having the comparison is not to show off  a faster read; My point 
is that ooRexx 4.2 appears to be much more efficient than 5.0 for the same 
thing (reading line by line input) the input is text structured by line and 
every line is different).

Hälsningar/Regards/Grüsse,
P.O. Jonsson
[email protected]




> Am 05.07.2017 um 20:53 schrieb Jeremy Nicoll <[email protected]>:
> 
> On Wed, 5 Jul 2017, at 17:44, P.O. Jonsson wrote:
> 
>> To make a „baseline“ test I wrote a C program that is doing roughly the
>> same as the oorexx test. Reading in 1 Million lines in C byte by byte
>> takes 1.3 seconds, ooRexx 4.2 clocks in at 2.7 seconds (which is GREAT)
> 
> I think you may need to be wary of times like these, simply because
> after the first
> program (whether it's a C one or an ooREXX one) has executed, the test
> data 
> might be being cached in the disk controller or I/O buffers in RAM so
> all following
> read tests might be faster than they would have been had they been the
> first one.
> 
> I don't know how to get around that, except perhaps by generating
> multiple test 
> files for subsequent programs to read then doing some colossal amount of
> other
> I/O so that no cache or buffer contains the values you're about to read.
> 
> -- 
> Jeremy Nicoll - my opinions are my own.
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to