Replies: 1 comment
-
#193 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Git revision are you using?
aiken v0.0.28
What operating system are you using, and which version?
Describe what the problem is?
I was trying to compare the computation cost of different fibonacci computation algorithms. With https://github.com/ImperatorLang/eopsin I wrote both a recursive and an imperative version.
I compiled them with eopsin, then run
aiken uplc eval <version>.uplc (con data #02)
.I get the following output:
As you can see, the imperative version takes 2.5 s while the recursive version takes 0.009 seconds, even though both take roughly the same amount of CPU budget and Memory Budget. Evaluating the same with my python implementation of the uplc interpreter terminates quickly for both versions. I suggest there is some inefficiency lurking in the interpreter.
What should be the expected behavior?
The evaluation of two scripts with the same CPU and Memory budget should take roughly the same amount of time.
Beta Was this translation helpful? Give feedback.
All reactions