Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into update-lab-proj
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Jan 22, 2025
2 parents a78daa2 + 5da6f35 commit 4c1fbda
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions results/_include/_summary_figure.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ resources = d3.groups(results_resources, d => d.method_id)
.map(([method_id, values]) => {
const error_pct_oom = d3.mean(values, d => d.exit_code === 137)
const error_pct_timeout = d3.mean(values, d => d.exit_code === 143)
const error_pct_error = d3.mean(values, d => d.exit_code > 0) - error_pct_oom - error_pct_timeout
const error_pct_ok = 1 - error_pct_oom - error_pct_timeout - error_pct_error
const error_pct_na = d3.mean(values, d => d.exit_code === 99)
const error_pct_error = d3.mean(values, d => d.exit_code > 0) - error_pct_oom - error_pct_timeout - error_pct_na
const error_pct_ok = 1 - error_pct_oom - error_pct_timeout - error_pct_error - error_pct_na
const mean_peak_memory_mb = mean_na_rm(values.map(d => d.peak_memory_mb))
const mean_disk_read_mb = mean_na_rm(values.map(d => d.disk_read_mb))
const mean_disk_write_mb = mean_na_rm(values.map(d => d.disk_write_mb))
Expand All @@ -111,7 +112,7 @@ resources = d3.groups(results_resources, d => d.method_id)
// "Execution error": error_pct_error,
// "No error": error_pct_ok
// },
error_reason: [error_pct_oom, error_pct_timeout, error_pct_error, error_pct_ok],
error_reason: [error_pct_oom, error_pct_timeout, error_pct_error, error_pct_na, error_pct_ok],
mean_cpu_pct: mean_na_rm(values.map(d => d.cpu_pct)),
mean_peak_memory_mb,
mean_peak_memory_log: -Math.log10(mean_peak_memory_mb),
Expand Down Expand Up @@ -186,8 +187,8 @@ palettes = [
metric: "Reds",
resources: "YlOrBr",
error_reason: {
colors: ["#8DD3C7", "#FFFFB3", "#BEBADA", "#FFFFFF"],
names: ["Memory limit exceeded", "Time limit exceeded", "Execution error", "No error"]
colors: ["#8DD3C7", "#FFFFB3", "#BEBADA", "#999999", "#FFFFFF"],
names: ["Memory limit exceeded", "Time limit exceeded", "Execution error", "Not applicable", "No error"]
}
}
][0]
Expand Down

0 comments on commit 4c1fbda

Please sign in to comment.