this is so bodged together it's ridiculous

anyways this adds makes the stuff brighter
This commit is contained in:
askiiart 2024-11-17 01:03:44 -06:00
parent c2c5c0a677
commit 81f7aa2fa1
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
3 changed files with 15 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class HelperFunctions:
def sequential_latency(): def sequential_latency():
datasets = {'labels': []} datasets = {'labels': []}
with open('assets/benchmarking-dwarfs/original-data/benchmark-data.csv', 'rt') as f: with open('assets/benchmarking-dwarfs/data/benchmark-data.csv', 'rt') as f:
for line in csv.reader(f): for line in csv.reader(f):
fs = HelperFunctions.get_fs(line[0]) fs = HelperFunctions.get_fs(line[0])
label = HelperFunctions.get_label(line[1]) label = HelperFunctions.get_label(line[1])
@ -142,3 +142,5 @@ let config = {
title = 'Sequential Read Latency' title = 'Sequential Read Latency'
print(config_code.replace('$title$', title).replace('$timeunit$', largest_time_unit)) print(config_code.replace('$title$', title).replace('$timeunit$', largest_time_unit))
print('\nChart.defaults.borderColor = "#eee"')
print('Chart.defaults.color = "#eee";')

View file

@ -87,7 +87,8 @@
<code>data/bulk.csv</code> for the single and bulk files, <code>data/bulk.csv</code> for the single and bulk files,
respectively.</p> respectively.</p>
<h2 id="results">Results</h2> <h2 id="results">Results</h2>
<p>After processing the data with <a <p>After processing <a
href="/assets/benchmarking-dwarfs/data/">the data</a> with <a
href="/assets/benchmarking-dwarfs/process-data.py">this href="/assets/benchmarking-dwarfs/process-data.py">this
script</a> to make it a bit easier, I put the resulting graphs script</a> to make it a bit easier, I put the resulting graphs
in here ↓</p> in here ↓</p>
@ -148,6 +149,7 @@
}, },
] ]
let config = { let config = {
type: 'bar', type: 'bar',
data: { data: {
@ -168,6 +170,10 @@
} }
}; };
Chart.defaults.borderColor = "#eee"
Chart.defaults.color = "#eee";
new Chart(ctx, config); new Chart(ctx, config);
</script> </script>
<section id="footnotes" <section id="footnotes"

View file

@ -120,6 +120,7 @@ let data = [
}, },
] ]
let config = { let config = {
type: 'bar', type: 'bar',
data: { data: {
@ -140,5 +141,9 @@ let config = {
} }
}; };
Chart.defaults.borderColor = "#eee"
Chart.defaults.color = "#eee";
new Chart(ctx, config); new Chart(ctx, config);
</script> </script>