update comments now that this is less horrible

This commit is contained in:
askiiart 2024-11-18 14:47:27 -06:00
parent 45a783ae65
commit 58a5cc7f8d
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -3,7 +3,7 @@ import csv
import re import re
# a bunch of horrible code to make the chart.js code # a bunch of now-less-horrible code to make the chart.js code
class HelperFunctions: class HelperFunctions:
@ -209,9 +209,6 @@ def declare_vars():
f.write('let ctx;\n') f.write('let ctx;\n')
if __name__ == '__main__': if __name__ == '__main__':
# NOTE: this code is absolutely horrible and all these functions (except declare_vars) should be one function that just takes the title, chart canvas id, filename, test name in bulk, and index in singles
# and what function to get data from, if that's possible
# i will repent to the DRY gods someday
declare_vars() declare_vars()
run(2, 'bulk_sequential_read', 'seq_read.js', 'Sequential Read Times', 'seq_read_chart') run(2, 'bulk_sequential_read', 'seq_read.js', 'Sequential Read Times', 'seq_read_chart')
run(3, 'bulk_random_read', 'rand_read.js', 'Random Read Times', 'rand_read_chart') run(3, 'bulk_random_read', 'rand_read.js', 'Random Read Times', 'rand_read_chart')