Logo
Explore Help
Register Sign In
retoor/wren
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
64fdc1876a9757238b227cf1720c02031fd50808
wren/benchmark/fib.wren
T

16 lines
235 B
Plaintext
Raw Normal View History

feat: add recursive fibonacci benchmark scripts in lua, python, wren and implicit fields design doc
2013-11-15 04:57:56 +00:00
var fib = fn(n) {
if (n < 2) {
fix: add explicit return statements in benchmark functions and add method_call benchmark suite
2013-12-08 02:43:39 +00:00
return n
feat: add recursive fibonacci benchmark scripts in lua, python, wren and implicit fields design doc
2013-11-15 04:57:56 +00:00
}
fix: add explicit return statements in benchmark functions and add method_call benchmark suite
2013-12-08 02:43:39 +00:00
return fib.call(n - 1) + fib.call(n - 2)
feat: add recursive fibonacci benchmark scripts in lua, python, wren and implicit fields design doc
2013-11-15 04:57:56 +00:00
}
feat: add benchmark runner with fib implementations and OS.clock primitive
2013-11-22 16:55:22 +00:00
var start = OS.clock
var i = 0
while (i < 5) {
refactor: convert IO from singleton instance to static class with metaclass native methods
2013-12-22 03:25:09 +00:00
IO.write(fib.call(28))
feat: add benchmark runner with fib implementations and OS.clock primitive
2013-11-22 16:55:22 +00:00
i = i + 1
}
refactor: convert IO from singleton instance to static class with metaclass native methods
2013-12-22 03:25:09 +00:00
IO.write("elapsed: " + (OS.clock - start).toString)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.27.2 Page: 28ms Template: 4ms
Dark
English
English
Licenses API