1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
mod bench; mod bucket; mod fixed_window; mod gcra; mod keyed; use token_bucket::*; use std::{ hint::black_box, sync::{ Arc, Barrier, atomic::{AtomicU64, Ordering}, }, thread::{self, JoinHandle}, time::{Duration, Instant}, };