aboutsummaryrefslogtreecommitdiff
path: root/analysis
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-07 20:04:50 +0000
committerAria Shrimpton <me@aria.rip>2024-03-07 20:04:50 +0000
commitedea4fe292ebb2cbeaa2f53d6eabd09ec879fe7c (patch)
treedfa90edb48e3995c9318b99ea3666f470e8f506b /analysis
parentec9b164e0ff3ef323958b45cb6046e25b3d865bd (diff)
separate benchmarks into different jobs and stuff
Diffstat (limited to 'analysis')
-rw-r--r--analysis/Justfile26
-rw-r--r--analysis/vis.livemd4
2 files changed, 15 insertions, 15 deletions
diff --git a/analysis/Justfile b/analysis/Justfile
index 837a79e..6e356ac 100644
--- a/analysis/Justfile
+++ b/analysis/Justfile
@@ -1,17 +1,19 @@
default:
livebook server
-fetch job: (download-log job) (download-other job)
+fetch-log job outp="current":
+ mkdir -p {{justfile_directory()}}/{{outp}}
+ curl https://git.tardisproject.uk/tcmal/dissertation/-/jobs/{{job}}/raw > {{justfile_directory()}}/{{outp}}/log
+ ./split-log.py {{justfile_directory()}}/{{outp}}/log
+ grep -R -H -i 'error' {{justfile_directory()}}/{{outp}}/sections/
-download-log job:
- mkdir -p {{justfile_directory()}}/{{job}}
- curl https://git.tardisproject.uk/tcmal/dissertation/-/jobs/{{job}}/raw > {{justfile_directory()}}/{{job}}/log
- ./split-log.py {{justfile_directory()}}/{{job}}/log
- grep -R -H -i 'error' {{justfile_directory()}}/{{job}}/sections/
+fetch-cost-models outp="current":
+ mkdir -p {{justfile_directory()}}/{{outp}}
+ rsync -ravP candelabra:/opt/candelabra/src/target/candelabra/ {{justfile_directory()}}/{{outp}}/candelabra
-download-other job:
- rsync -ravP candelabra:/opt/candelabra/src/tests/target/criterion/ {{justfile_directory()}}/{{job}}/criterion
- rsync -ravP candelabra:/opt/candelabra/src/target/candelabra/ {{justfile_directory()}}/{{job}}/candelabra
- rm -rf {{justfile_directory()}}/{{job}}/criterion/report
- find {{justfile_directory()}}/{{job}}/criterion -iname '*.svg' -exec rm '{}' \;
- find {{justfile_directory()}}/{{job}}/criterion -iname '*.html' -exec rm '{}' \;
+fetch-comparisons outp="current":
+ mkdir -p {{justfile_directory()}}/{{outp}}
+ rsync -ravP candelabra:/opt/candelabra/src/tests/target/criterion/ {{justfile_directory()}}/{{outp}}/criterion
+ rm -rf {{justfile_directory()}}/{{outp}}/criterion/report
+ find {{justfile_directory()}}/{{outp}}/criterion -iname '*.svg' -exec rm '{}' \;
+ find {{justfile_directory()}}/{{outp}}/criterion -iname '*.html' -exec rm '{}' \;
diff --git a/analysis/vis.livemd b/analysis/vis.livemd
index 727a459..001b53d 100644
--- a/analysis/vis.livemd
+++ b/analysis/vis.livemd
@@ -7,8 +7,6 @@ Mix.install([
{:json, "~> 1.4"},
{:explorer, "~> 0.8.0"},
{:kino_explorer, "~> 0.1.11"},
- {:nx, "~> 0.5"},
- {:scholar, "~> 0.2.1"},
{:math, "~> 0.7.0"}
])
```
@@ -20,7 +18,7 @@ require Explorer.DataFrame
require Explorer.Series
alias Explorer.DataFrame, as: DF
alias Explorer.Series, as: SE
-job_id = "other"
+job_id = "current"
job_dir = Path.expand(~c"./" ++ job_id) |> Path.absname()
sections_dir = Path.join(job_dir, "sections")
cm_dir = Path.join([job_dir, "candelabra", "benchmark_results"])