Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't benchmark constructing an array of lists #1057

Open
axch opened this issue Sep 9, 2022 · 0 comments
Open

Can't benchmark constructing an array of lists #1057

axch opened this issue Sep 9, 2022 · 0 comments

Comments

@axch
Copy link
Collaborator

axch commented Sep 9, 2022

I can make an array of lists:

ans1 = for i:(Fin 3). "hello"

I can time how long it takes to make an array of lists:

%time
ans2 = for i:(Fin 3). "hello"

Compile time: 23.659 ms
Run time:     6.339 us 

But I can't benchmark making an array of lists:

%bench "foo"
ans3 = for i:(Fin 3). "hello"

foo
Compile time: 26.040 ms
Run time:     0.000 ns 
Compiler bug!
Please report this at github.com/google-research/dex-lang/issues

not implemented
CallStack (from HasCallStack):
  error, called at src/lib/LLVMExec.hs:345:8 in dex-0.1.0.0-8hDfthyGTXmzhkTo2ydOn:LLVMExec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant