CodeChain-io / remote-trait-object

A simple and powerful Rust remote method invocation library based on trait objects
Apache License 2.0
14 stars 5 forks source link

[Report] Optimize remote-trait-object #71

Open junha1 opened 4 years ago

junha1 commented 4 years ago

Here's an instruction to profile the program.

cargo install flamegraph
sudo apt-get install linux-tools-5.3.0-62-generic
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
echo 0 | sudo tee /proc/sys/kernel/kptr_restrict
cargo flamegraph

I will constantly report benchmark result here.

junha1 commented 4 years ago

Here's profile of

fn main() {
    remote_trait_object_tests::massive_no_export(100000)
}

at f32350d44f7e5e45328afb78e33f5b36459040e0 flamegraph.zip