Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before (measuring both unloaded, and loaded situation where other threads are accessing the mutex): ``` Running benchmarks (no workloads) ╭────────────────────────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────╮ │name │ major-allocated │ minor-allocated │ monotonic-clock │ ├────────────────────────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤ │ Cached reads/Pool_role.is_master │ 0.0000 mjw/run│ 4.0000 mnw/run│ 23.6039 ns/run│ ╰────────────────────────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────╯ Cached reads/Pool_role.is_master (ns): { monotonic-clock per run = 23.603889 (confidence: 23.644693 to 23.568067); r² = Some 0.999899 } Running benchmarks (workloads) ╭────────────────────────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────╮ │name │ major-allocated │ minor-allocated │ monotonic-clock │ ├────────────────────────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤ │ Cached reads/Pool_role.is_master │ 0.0000 mjw/run│ 7.4201 mnw/run│ 76.4067 ns/run│ ╰────────────────────────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────╯ Cached reads/Pool_role.is_master (ns): { monotonic-clock per run = 76.406674 (confidence: 86.718075 to 66.336404); r² = Some 0.608131 } ``` After: ``` Running benchmarks (no workloads) ╭────────────────────────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────╮ │name │ major-allocated │ minor-allocated │ monotonic-clock │ ├────────────────────────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤ │ Cached reads/Pool_role.is_master │ 0.0000 mjw/run│ 0.0000 mnw/run│ 3.1256 ns/run│ ╰────────────────────────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────╯ Cached reads/Pool_role.is_master (ns): { monotonic-clock per run = 3.125616 (confidence: 3.131412 to 3.120373); r² = Some 0.999885 } Running benchmarks (workloads) ╭────────────────────────────────────┬───────────────────────────┬───────────────────────────┬───────────────────────────╮ │name │ major-allocated │ minor-allocated │ monotonic-clock │ ├────────────────────────────────────┼───────────────────────────┼───────────────────────────┼───────────────────────────┤ │ Cached reads/Pool_role.is_master │ 0.0000 mjw/run│ 0.0000 mnw/run│ 6.2872 ns/run│ ╰────────────────────────────────────┴───────────────────────────┴───────────────────────────┴───────────────────────────╯ Cached reads/Pool_role.is_master (ns): { monotonic-clock per run = 6.287197 (confidence: 6.737363 to 5.830140); r² = Some 0.706843 } ```
- Loading branch information