20 сентября 2023 г. 8:27:31 UTC, Shu Fai Cheung <shufai.che...@gmail.com> пишет:
>Third, the "testthat.Rout" file only shows the total time: > >> proc.time() > user system elapsed > 13.530 0.291 29.492 > >I believe the user time is not useful as we can use two processes in >testthat. How can we detect the use of more than two cores in the >tests? R could report CPU and elapsed tme for each test file in tests/*.R, but with testthat, it only sees tests/testthat.R, which isn't very useful. If you know R6, it should be possible to implement a CPUTimeReporter that would collect information about CPU and "wallclock" time taken by each individual test: https://testthat.r-lib.org/reference/Reporter.html It may be worth submitting a feature request for such a reporter. -- Best regards, Ivan ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel