Jump to content
Larry

Ahl's Benchmark?

Recommended Posts

As of the latest changes to the MC-10's BASIC, Ahl's Benchmark seems to run in 1:06.  Down another second... ish... I'm hand timing here.
Almost every other program has shown much more improvement with each revision, which indicates the bottleneck is SQR and ^.
And I've only exceeded the 8K ROM size by 191 bytes, most of which is a larger token jump table.
 

Share this post


Link to post
Share on other sites

Resurrecting this old thread for a small update. 
My BASIC for the MC-10 completes the A=A*A version in 41 seconds now. 
I have to fix a bug before I can test the original A=A^2 version. 
Not sure if that will be much faster than the last number, but I do have an optimization I want to try that should speed that up if I get around to it.
Part of the speedup involved removing the ELSE statement I added. 
Makes a big difference on IF statements where the rest of the line is skipped.
 

Share this post


Link to post
Share on other sites

I finally got my BASIC running. It's running in lex/yacc/c, and runs the native system, in my case, macOS. It is an interpreter, it reads the source and makes a structure that it then runs in a fashion similar to Atari BASIC - that is, it's fully tokenized before it runs, unlike MS. Here's Ahl's test:

 

run time 0.003066

Accuracy  6.82121E-13

Random  7.7737

 

Lolz?

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...