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

Revive profiler, add docs, cleanups #518

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Revive profiler, add docs, cleanups #518

merged 1 commit into from
Apr 19, 2023

Conversation

flaub
Copy link
Member

@flaub flaub commented Apr 19, 2023

No description provided.

@flaub flaub self-assigned this Apr 19, 2023
@flaub flaub marked this pull request as ready for review April 19, 2023 04:58
@flaub flaub enabled auto-merge (squash) April 19, 2023 05:01
@github-actions
Copy link

Benchmark for Linux-cuda a723e45

Click to hide benchmark
Test Base PR %
fib/100/proof 1466.3±53.87ms 1440.7±34.78ms -1.75%
fib/100/run 318.2±2.39ms 316.0±1.17ms -0.69%
fib/200/proof 1431.9±30.08ms 1412.4±26.23ms -1.36%
fib/200/run 324.1±7.71ms 319.5±2.06ms -1.42%

Benchmark for Linux-default a723e45

Click to hide benchmark
Test Base PR %
fib/100/proof 6.2±0.05s 6.2±0.05s 0.00%
fib/100/run 1411.3±8.01ms 1394.4±1.37ms -1.20%
fib/200/proof 6.2±0.05s 6.2±0.06s 0.00%
fib/200/run 1421.5±2.11ms 1411.4±4.29ms -0.71%

Benchmark for macOS-default a723e45

Click to hide benchmark
Test Base PR %
fib/100/proof 3.9±0.04s 3.9±0.04s 0.00%
fib/100/run 686.7±1.40ms 686.5±1.44ms -0.03%
fib/200/proof 3.9±0.04s 3.8±0.07s -2.56%
fib/200/run 689.6±1.40ms 689.1±1.24ms -0.07%

Benchmark for macOS-metal a723e45

Click to hide benchmark
Test Base PR %
fib/100/proof 1478.1±7.10ms 1475.7±5.05ms -0.16%
fib/100/run 686.8±1.26ms 686.3±1.08ms -0.07%
fib/200/proof 1485.0±9.40ms 1479.2±5.89ms -0.39%
fib/200/run 689.7±1.34ms 689.2±1.52ms -0.07%

@@ -40,6 +40,13 @@ struct Args {
/// Add environment vairables in the form of NAME=value.
#[clap(long, action = clap::ArgAction::Append)]
env: Vec<String>,

/// Write "pprof" protobuf output of the guest's run to this file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be nice to show a end-to-end example set of commands in a r0vm crate level README ( and/or landing page for crates.io) of how to use profiling / other features of r0vm so its a little more accessible to users.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, see: #472

pub use self::receipt::{SegmentReceipt, SessionReceipt};
#[cfg(feature = "prove")]
pub use self::{
exec::io::{Syscall, SyscallContext},
Copy link
Contributor

@mothran mothran Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay! Would it make sense to write a MultiTest for using a custom syscall? I would be interested in writing it if we need something like that to test the user facing API.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MultiTest doesn't really test the external API, it really just tests the host/guest interaction.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also not super keen on exposing the Syscall interface directly, I think there are usually better ways to extend the host/guest (like using I/O). If we can drop this re-export I'd prefer to.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also happy with that.

Copy link
Contributor

@mothran mothran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@flaub flaub merged commit 1f6a230 into main Apr 19, 2023
10 checks passed
@flaub flaub deleted the flaub/fit-finish branch April 19, 2023 16:17
Copy link
Member

@tzerrell tzerrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

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

Successfully merging this pull request may close these issues.

None yet

3 participants