Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Speeding along

23 views
Skip to first unread message

Jack

unread,
May 26, 2012, 8:49:49 AM5/26/12
to
I've been having fun trying to re-learn ooRexx after many years of rest.
I was looking at the docs for queues and found this code:

/* */
push date() time() /* push date and time */
do 1000 /* let's pass some time */
nop /* doing nothing */
end /* end of loop */
pull a b /* pull them */
say "Pushed at " a b ", Pulled at " date() time() /* say now and then */

When I last programed Rexx, I ran OS/2 Warp on a state of the art 486
and I'm pretty sure it would have done a 1000 NOP's in no time. Now I'm
running a not the fastest Intel 64 bit core i3 and wondered how this
code would work.
I kept adding zeros until some time "passed"

1000
10000
100000
1000000
10000000

Still no time passed, at least not a full second

100000000... now some time passed, 100 million before a second passed.

I wonder how long my first, state of the art PC, an IBM PCXT 8088 with
dual floppies and a huge 10 meg HD would have taken to do nothing a
hundred million times?

Point? No point, I know everyone knows this, but I enjoyed seeing it and
noting how old some of the docs must be.

--
Jack
Add Life to your Days not Days to your Life.
http://jbstein.com

LesK

unread,
May 27, 2012, 2:40:37 AM5/27/12
to
The classic test for this is rexxcps. See:

http://speleotrove.com/misc/rexxcpslist.html

Remember to that on Windows time('E') resolution is only 3 decimal digits, even
though it displays 6.

--

Les (Change Arabic to Roman to email me)

Jack

unread,
May 27, 2012, 12:36:06 PM5/27/12
to
On 5/27/2012 2:40 AM, LesK wrote:
> Jack wrote:

>> 100000000... now some time passed, 100 million before a second passed.
>>
>> I wonder how long my first, state of the art PC, an IBM PCXT 8088 with
>> dual floppies and a huge 10 meg HD would have taken to do nothing a
>> hundred million times?
>>
>> Point? No point, I know everyone knows this, but I enjoyed seeing it
>> and noting how old some of the docs must be.
>>
> The classic test for this is rexxcps. See:
>
> http://speleotrove.com/misc/rexxcpslist.html

Thanks for that link Les.

I ran the rexxcps.rex test and My GW Intel I3 64 bit 3.3GHz did
6,410,256 clauses per second. According to the list, my old 486 would
do 14,986 and a 286 would do 219. I think my 8088 PCXT would still be
running, so no stats available:-)

BTW, the PCXT cost $4000 in the early 80's with duel floppies and 10 meg
HD. The HD lasted a year or so and I put in a new one for $400. My
Gateway cost $400 w/o monitor, about the same as a replacement HD for
the xt.

Gerard_Schildberger

unread,
May 27, 2012, 3:23:35 PM5/27/12
to
Don't forget the added cost of the coal. Wasn't your old XT a coal-fired steam-driven CPU ?
___________________________________ Gerard Schildberger
0 new messages