Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
trixi-framework
GitHub Repository: trixi-framework/Trixi.jl
Path: blob/main/benchmark/run_benchmarks.jl
2055 views
1
using Pkg
2
Pkg.activate(@__DIR__)
3
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
4
Pkg.instantiate()
5
6
using PkgBenchmark
7
using Trixi
8
9
let results = judge(Trixi,
10
BenchmarkConfig(juliacmd = `$(Base.julia_cmd()) --check-bounds=no --threads=1`), # target
11
BenchmarkConfig(juliacmd = `$(Base.julia_cmd()) --check-bounds=no --threads=1`,
12
id = "main"))
13
export_markdown(pkgdir(Trixi, "benchmark", "results_$(gethostname())_threads1.md"),
14
results)
15
end
16
17
let results = judge(Trixi,
18
BenchmarkConfig(juliacmd = `$(Base.julia_cmd()) --check-bounds=no --threads=2`), # target
19
BenchmarkConfig(juliacmd = `$(Base.julia_cmd()) --check-bounds=no --threads=2`,
20
id = "main"))
21
export_markdown(pkgdir(Trixi, "benchmark", "results_$(gethostname())_threads2.md"),
22
results)
23
end
24
25