retroforth/benchmarks/choose.retro
crc e61c0364df benchmarks: add a simple choose benchmark (#26)
FossilOrigin-Name: a0cac831c406f978982a1a9af3eebe038c04be485e1c72ed834f3538b4def8d5
2020-12-18 20:18:13 +00:00

6 lines
153 B
Forth

~~~
'1,000,000_iterations_of_choose s:put nl
#1000 [ #500 [ FALSE [ ] [ ] choose ] times ] times
#1000 [ #500 [ TRUE [ ] [ ] choose ] times ] times
~~~