With for..next and u/mod the test runs in 1.7 seconds. Yes the same code above. And with 16 Mhz. There is no mod word in dictionary in FF5. correction : it is not same code. 1.7 secs for the code in that article with u/mod drop.
I see now. But why you try to show FF slower by changing the bench code. If you look to comments in that article, the guy (who promotes his STM8EF or stm8 eforth) says that his eforth for stm8 is faster than FF but not in reality.
: bench ( n -- ) dup for r@ dup for dup r@ gcd drop next drop next drop ; ok this is 1.7 secs the original test in that article
Here, you wrote 1.7 secs. which is correct if I remember correctly :)
I think here, you used 8 Mhz. Because I see 1.7 secs with 16 Mhz with this code.And mod word is not in dictionary of FF5, there is u/mod. Regards, my blog : erolcum.blogspot.com
With for..next and u/mod the test runs in 1.7 seconds. Yes the same code above. And with 16 Mhz
Hello Mikael, You make a great job, firstly. You may know the answer possibly for my following question. There is a blog page written 10 years ago, and author says he measured 4 seconds for "200 bench" test (atmega328). But I measured 1.7 seconds with FF5.0. What may be the reason ? It's speed increased twice in 10 years ? https://weblambdazero.blogspot.com/2016/10/go-forth-with-arduino.html Regards, Erol
Wow, you're really fast!