Login
7 branches 0 tags
Ben (Win10) Fixed exception handling closures not being poped from the stack 8b1fa21 3 years ago 631 Commits
nujel / benchmark / for / nujel.nuj
#!/usr/bin/env nujel

[def run-count 10,000,000]

[defn test-bytecode [runs]
       [def ret 0]
       [for [i 0 runs]
            [set! ret [add/int ret i]]]
       ret]

[pfmtln "The result is: {}" [test-bytecode run-count]]