comparison benchmark/run_and_view.jl @ 1179:d6038ceba882 tooling/benchmarks

Better file names för results
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 27 Jan 2023 11:27:48 +0100
parents 5c34dfc73b37
children 37f29a3a78dc
comparison
equal deleted inserted replaced
1178:5c34dfc73b37 1179:d6038ceba882
43 dt = Dates.format(PkgBenchmark.date(r), "yyyy-mm-dd HH:MM:SS") 43 dt = Dates.format(PkgBenchmark.date(r), "yyyy-mm-dd HH:MM:SS")
44 Mustache.render(io, template, Dict("title"=>dt, "content"=>content)) 44 Mustache.render(io, template, Dict("title"=>dt, "content"=>content))
45 end 45 end
46 46
47 function write_result_html(r) 47 function write_result_html(r)
48 dt = Dates.format(PkgBenchmark.date(r), "yyyy-mm-dd HH:MM:SS") 48 dt = Dates.format(PkgBenchmark.date(r), "yyyy-mm-dd HHMMSS")
49 file_path = joinpath(results_dir, dt*".html") 49 file_path = joinpath(results_dir, dt*".html")
50 50
51 open(file_path, "w") do io 51 open(file_path, "w") do io
52 write_result_html(io, r) 52 write_result_html(io, r)
53 end 53 end