Skip to content

Commit

Permalink
add throughput for enable and disable
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Dec 16, 2024
1 parent 0bacdc2 commit 85bcd5d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions stress/src/user_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,19 @@
//! - Add `0` to `/sys/kernel/debug/tracing/events/user_events/testprovider_L4K1Gtestprovider/enable`:
//! `echo 0 > /sys/kernel/debug/tracing/events/user_events/testprovider_L4K1Gtestprovider/enable`
//!
//! NOTE: Running as `sudo -E` ensures the environment variables for Rust and Cargo are retained,
//! and you have sufficient permissions to access `/sys/kernel/debug/tracing` and utilize `user_events`.
//!
// Conf - AMD EPYC 7763 64-Core Processor 2.44 GHz, 64GB RAM, Cores:8 , Logical processors: 16
// Stress Test Results (user_events disabled)
// Threads: 1 - Average Throughput: 30,866,752 iterations/sec
// Threads: 5 - Average Throughput: 32,662,641 iterations/sec
// Threads: 10 - Average Throughput: 25,776,394 iterations/sec
// Threads: 16 - Average Throughput: 16,915,860 iterations/sec

// Stress Test Results (user_events enabled)
// Threads: 1 - Average Throughput: 212,594 iterations/sec
// Threads: 5 - Average Throughput: 372,695 iterations/sec
// Threads: 10 - Average Throughput: 277,675 iterations/sec
// Threads: 16 - Average Throughput: 268,940 iterations/sec

use opentelemetry_appender_tracing::layer;
use opentelemetry_sdk::logs::LoggerProvider;
Expand Down

0 comments on commit 85bcd5d

Please sign in to comment.