Avatar for nogears

nogears

Member since Jun 2019 • Last active Jun 2020
  • 0 conversations
  • 2 comments

Most recent activity

  • in General
    Avatar for nogears

    @AkosLukacs yeah i ran this in 336.30secs on a puck.js with the full 1000x1000
    this dropped to 77.00secs with dropping the k += j for assembly add r0, r0, r1

    and then 0.00064086914 secs with

    var c = E.compiledC(`
    // int loops(int)
    int loops(int k){
     int i = 1;
     int fiboPrev = 1;
     for(int i = 0; i < 1000; i++){
      for(int j = 0; j < 1000; j++){
        k += j;
      }
     }
     return k;
    }
    `);
    function go(){
      var t=getTime();
      var k=0;
      k = c.loops(k);
      console.log(k,' in ',getTime()-t);
    }
    setTimeout(go, 500);
    

    i didnt know about the "compiled" thing, thanks @Gordon

    @Gordon sad to hear that 100% opensource has been a negative on your.
    all your hardware is awesome, and your content and dedication is incredible
    i'd invest if i had a few 100 mil

  • in General
    Avatar for nogears

    Hi neoniousTR,
    wow, that's quiet a difference in speed! - albeit it was stated Espruino isnt as fast, i'm interested if you compared the memory utilization between the two while running this? was the code compiled or interpreted as a script at the time of running? i'm assuming both are on ESP32 as the same clock and latest releases?

    thanks

Actions