mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Document examples and add local remote shell endpoint demo
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
//! Protocol benchmark driver.
|
||||
//!
|
||||
//! Running the example normally prints the in-process benchmark table. Running it with `tools`
|
||||
//! builds the standalone operation binaries and feeds them to external profiling tools.
|
||||
|
||||
use std::hint::black_box;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Standalone benchmark binary for `decode_call`.
|
||||
|
||||
#[path = "support/bench_common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Standalone benchmark binary for `encode_call`.
|
||||
|
||||
#[path = "support/bench_common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Standalone benchmark binary for `forward_call_receive`.
|
||||
|
||||
#[path = "support/bench_common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Standalone benchmark binary for `hook_data_receive`.
|
||||
|
||||
#[path = "support/bench_common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Standalone benchmark binary for `local_call_receive`.
|
||||
|
||||
#[path = "support/bench_common.rs"]
|
||||
mod common;
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
//! Shared helpers for the standalone benchmark operation binaries.
|
||||
//!
|
||||
//! These helpers keep each operation binary tiny while still exposing the same setup and checksum
|
||||
//! logic to strace, perf, and heaptrack.
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use std::hint::black_box;
|
||||
|
||||
Reference in New Issue
Block a user