Skip to content

Commit

Permalink
For macos and ios switch from mach crate to mach2 crate (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
oherrala authored Mar 21, 2023
1 parent fe14834 commit cf035b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ raw-cpuid = "10.2"
libc = "0.2"

[target.'cfg(target_os = "macos")'.dependencies]
mach = "0.3"
mach2 = "0.4"

[target.'cfg(target_os = "ios")'.dependencies]
mach = "0.3"
mach2 = "0.4"

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["profileapi"] }
Expand Down
2 changes: 1 addition & 1 deletion src/clocks/monotonic/macos.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use mach::mach_time::{mach_absolute_time, mach_timebase_info};
use mach2::mach_time::{mach_absolute_time, mach_timebase_info};

#[derive(Clone, Copy, Debug)]
pub struct Monotonic {
Expand Down

2 comments on commit cf035b8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bench-ubuntu-latest

Benchmark suite Current: cf035b8 Previous: fe14834 Ratio
stdlib/instant_now 29 ns/iter (± 0) 26 ns/iter (± 0) 1.12
stdlib/instant_delta 68 ns/iter (± 2) 59 ns/iter (± 0) 1.15
quanta/quanta_now 29 ns/iter (± 2) 26 ns/iter (± 0) 1.12
quanta/quanta_now_delta 61 ns/iter (± 3) 59 ns/iter (± 0) 1.03
quanta/quanta_instant_now 33 ns/iter (± 3) 30 ns/iter (± 0) 1.10
quanta/quanta_raw 28 ns/iter (± 1) 26 ns/iter (± 0) 1.08
quanta/quanta_raw_scaled 28 ns/iter (± 1) 27 ns/iter (± 0) 1.04
quanta/quanta_raw_delta 56 ns/iter (± 2) 56 ns/iter (± 0) 1
quanta/quanta_recent 2 ns/iter (± 0) 2 ns/iter (± 0) 1
quanta/quanta_instant_recent 2 ns/iter (± 0) 1 ns/iter (± 0) 2

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'bench-ubuntu-latest'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 0.1.

Benchmark suite Current: cf035b8 Previous: fe14834 Ratio
stdlib/instant_now 29 ns/iter (± 0) 26 ns/iter (± 0) 1.12
stdlib/instant_delta 68 ns/iter (± 2) 59 ns/iter (± 0) 1.15
quanta/quanta_now 29 ns/iter (± 2) 26 ns/iter (± 0) 1.12
quanta/quanta_now_delta 61 ns/iter (± 3) 59 ns/iter (± 0) 1.03
quanta/quanta_instant_now 33 ns/iter (± 3) 30 ns/iter (± 0) 1.10
quanta/quanta_raw 28 ns/iter (± 1) 26 ns/iter (± 0) 1.08
quanta/quanta_raw_scaled 28 ns/iter (± 1) 27 ns/iter (± 0) 1.04
quanta/quanta_raw_delta 56 ns/iter (± 2) 56 ns/iter (± 0) 1
quanta/quanta_recent 2 ns/iter (± 0) 2 ns/iter (± 0) 1
quanta/quanta_instant_recent 2 ns/iter (± 0) 1 ns/iter (± 0) 2

This comment was automatically generated by workflow using github-action-benchmark.

CC: @tobz

Please sign in to comment.