Home
last modified time | relevance | path

Searched refs:N_ROUNDS (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/once_cell/examples/
H A Dbench_vs_lazy_static.rs5 const N_ROUNDS: usize = 100_000_000; consts
40 for _ in 0..N_ROUNDS { in thread_once_cell()
47 for _ in 0..N_ROUNDS { in thread_lazy_static()
H A Dtest_synchronization.rs4 //! We create a `Vec` with `N_ROUNDS` of `OnceCell`s. All threads will walk the `Vec`, and race to
13 const N_ROUNDS: usize = 1_000_000; consts
20 CELLS.get_or_init(|| vec![OnceCell::new(); N_ROUNDS]); in main()
H A Dbench.rs6 const N_ROUNDS: usize = 100_000_000; consts
24 for _ in 0..N_ROUNDS { in thread_main()
H A Dbench_acquire.rs9 const N_ROUNDS: usize = 1_000_000; consts
31 for _ in 0..N_ROUNDS { in thread_main()

Completed in 2 milliseconds