Files
feresaria/vendor/smithay/benches/benchmark.rs
T
aria 993bc0f88f Integrate native Rime and stabilize input, output, and rendering
- Add optional modifier-only Super binding whose tap is cancelled by
  other input, focus changes, grabs, locks, and session teardown.
- Ship the native ferese-rime user service, Rime defaults, installer
  inventory, package dependencies, session environment, and docs.
- Vendor Smithay 8a27023 with the SHM texture-cache format fix and add
  GPU regressions for format changes and resize snapshots.
- Release reused CRTC owners before staging output modes, then restore
  changed outputs before former owners when a transaction fails.
- Wait for resize-capture GPU completion, expand filtered surface
  damage, and preserve IME popup origin under fractional scaling.
- Mark weekends like holidays in both calendar layouts.
2026-10-30 03:13:43 +09:00

19 lines
625 B
Rust

use criterion::{Criterion, criterion_group, criterion_main};
use smithay::utils::user_data::UserDataMap;
fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("UserDataMap::get", |b| {
let udata_map = UserDataMap::new();
udata_map.insert_if_missing(|| 17i32);
b.iter(|| udata_map.get::<i32>())
});
c.bench_function("UserDataMap::get threadsafe", |b| {
let udata_map = UserDataMap::new();
udata_map.insert_if_missing_threadsafe(|| 17i32);
b.iter(|| udata_map.get::<i32>())
});
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);