Created
June 15, 2022 13:31
-
-
Save jreidinger/1e6fef4e55ee0dbb29190fe9f96389c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "yast" | |
require "benchmark" | |
# if container | |
Yast::WFM.SCRSetDefault(Yast::WFM.SCROpen("chroot=/mnt:scr", false)) | |
# endif | |
puts Benchmark.realtime { 1000.times { Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl is-enabled systemd-hostnamed.service") }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment