Menu

Great Cow BASIC v Arduino - one specific speed test

Anobium
2019-04-04
2019-04-05
  • Anobium

    Anobium - 2019-04-04

    This is interesting - Great Cow BASIC is four times faster than Arduino in certain tests. I always thought this, then, today I tested it.

    I have an LCD. Attached to an UNO.
    Same code logic for Great Cow BASIC and Arduino C.
    * Setup
    * Clear the millis counter to 0
    * Print test
    * Move the cursor
    * Print millis()

    Result - Great Cow BASIC is sub 1ms and the Arduino is between 4ms and 5ms.

    The code - am I missing something? I have checked the reset of millis in both cases and I am resetting to 0.

    I program both and note the results.

    Great Cow BASIC

    'Hello, world!
    0
    

    Arduino

    'Hello, world!
    4
    

    Very fast - it could be the LCD library or the compiler but interesting results.

     
  • stan cartwright

    stan cartwright - 2019-04-05

    Great Cow BASIC is four times faster than Arduino in certain tests.
    Do you mean the sketch ide enviro vs gcb?
    Hasn't the arduino compiler been compared to gcb before https://www.youtube.com/watch?v=qdloFhULa3I

     
    • Anobium

      Anobium - 2019-04-05

      Not the IDEs Stan - the executing of the code as shown above (in the two IDEs).

       

Log in to post a comment.