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

:time command for measuring evaluation time #1415

Closed
qsctr opened this issue Aug 25, 2022 · 0 comments · Fixed by #1420
Closed

:time command for measuring evaluation time #1415

qsctr opened this issue Aug 25, 2022 · 0 comments · Fixed by #1420
Assignees
Labels
command-line-repl Related to Cryptol's text-based UI
Projects

Comments

@qsctr
Copy link
Contributor

qsctr commented Aug 25, 2022

We can add a :time command to measure how long it takes to evaluate an expression. We might be able to use something like criterion-measurement for accurate timings over many iterations. This would be useful for benchmarking Cryptol code.

Note that laziness might result in the first iteration of evaluating a top-level definition being slower, so maybe the user should be careful to pre-evaluate certain things if they don't want that to be part of the measurement.

@qsctr qsctr added the command-line-repl Related to Cryptol's text-based UI label Aug 25, 2022
@qsctr qsctr changed the title :time command :time command for measuring evaluation time Aug 25, 2022
@qsctr qsctr self-assigned this Aug 25, 2022
@qsctr qsctr added this to In progress in FFI Aug 25, 2022
@yav yav closed this as completed in #1420 Aug 31, 2022
@qsctr qsctr moved this from In progress to Done in FFI Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line-repl Related to Cryptol's text-based UI
Projects
FFI
Done
Development

Successfully merging a pull request may close this issue.

1 participant