Skip to content

Conversation

biryukovmaxim
Copy link

this pull request migrates from test Bencher to criterion to avoid using nightly toolchain, however it's necessary to increase minimum supported Rust version to 1.57 according to criterion

Implemented changes to the benchmark tests in src/cpu/ios_macos.rs and transfered them to a new file named ios_macos.rs under the benchmarks/cpu directory. This helps in separating the CPU usage tests from the program file and adhere to the single-responsibility principle. Furthermore, added new dependency 'criterion' in Cargo.toml for benchmarking along with a corresponding bench setup. The removed lines in lib.rs is to allow these modifications, eliminating unnecessary features and dependencies.
…for cpu_ios_macos.

ThreadId structure and get_thread_basic_info function in src/cpu/ios_macos.rs file are now publicly accessible, allowing external code to use them. The `pub` keyword was added to the struct and function declarations to make them public. Benchmark test for cpu_ios_macos has been activated in Cargo.toml file by uncommenting respective lines. Update also includes adding dependencies and improving codes in benches/cpu/ios_macos.rs. This commit will support more extensive testing and functionality usage in iOS and MacOS platforms."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant