Testsets know already how much time they took to execute:
using Test
ts = @testset "outer" begin
sleep(0.1)
end
# ts.time_end - ts.time_start = 0.10119009017944336
However, I would like to also know some other information like allocations and compile times etc.
I have a few hundred testsets and would like to programmatically do things like search for the testset that had the highest total_time - compile_time
etc.
What is the best way to do this? Can it be done without annotating every single testset?