Commit Graph

291 Commits

Author SHA1 Message Date
56e978ac28
add .editorconfig [skip ci] 2022-08-03 17:57:20 +02:00
989e2796fe
flake: rm golangci-lint from devShells
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-03 17:53:20 +02:00
c79de3ad38
ci: bump golangci-lint to v1.47.3
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-03 17:49:20 +02:00
034f485539
ci: install golangci-lint from source
All checks were successful
continuous-integration/drone/push Build is passing
using pre-built binaries absolutely *can* bite, e.g. in case of
env/compile-time Go version mismatch (think golangci-lint built with
go1.18 vs ran with go1.19 that is present in the env), which is why from
now on it is going to be built right in the environment where it's going
to be used with whatever version of Go is present there, that *will*
guarantee it's able to run there.

why the golangci-lint project (used to) discourage installation from sources
(or using `go install`) is still beyond me (yeah, Reasons).

refs:
    https://github.com/golangci/golangci-lint-action/issues/442#issuecomment-1203786890
    https://github.com/golangci/golangci-lint-action/issues/530
    https://github.com/golangci/golangci-lint-action/issues/540
    # similar issue (the exact same, really) exhibited way earlier than go1.19...
    https://github.com/golangci/golangci-lint/issues/2673
2022-08-03 17:45:20 +02:00
f511e1269a
go(report/report.go): return err
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-03 17:43:07 +02:00
5b9378b4da
chore(run_test.go): make use of t
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-03 17:39:51 +02:00
45ec295b93
chore(go(plot)): check meanVals size
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-03 17:20:49 +02:00
8b4432ece1
go(plot): use consts for common strings
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-29 21:04:15 +02:00
2284f35e6d
go(report): add PlotPics type (+sort.Interface)
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-27 23:19:02 +02:00
6692a4e778
go(report): add Bench field to Pic type
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-27 17:45:07 +02:00
1ec7a62281
go(algo): rm unused Values type
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-27 17:29:31 +02:00
ea3d57acd8
go: rename AlgoMean,Mean et al.
All checks were successful
continuous-integration/drone/push Build is passing
also add comments to methods explaining what they're supposed to do.
2022-07-25 22:24:54 +02:00
9801554eb5
go(algo): sort the mean vals in algo funcs
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-20 17:16:44 +02:00
109ce82f3e
go(plot): smarter string concat w/ fmt.Sprintf
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-20 16:24:04 +02:00
8efba25c19
go(stats): implement sort.Interface for types
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-20 02:36:14 +02:00
2bf3a4a767
go: collect and process mean vals
All checks were successful
continuous-integration/drone/push Build is passing
* compute and save mean values of x (e.g. 30) bench runs
* safely save mean vals for all bench-dimens combinations to AlgoMeans
  from goroutines (use mutex to protect shared access)
* rework algo/plot.go to use already computed mean values.

todo: plot mean vals of all algorithms (per benchmark) in a single pic.
2022-07-19 21:56:49 +02:00
c433b11eea
go(plot): latex-proof regular pic's caption, too
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-19 21:25:09 +02:00
c37ef263ae
go(stats): Solution -> BenchResults in FuncStats
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-19 19:58:45 +02:00
1f6bed98da
tex(report_base.tmpl): tune svg(-extract) params
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-19 19:29:17 +02:00
44cc400474
go(plot): streamline caption generation
All checks were successful
continuous-integration/drone/push Build is passing
* make sure to latex-escape captions (for correct line breaks)
* enable showing captions
* enable listing subfigure captions
* make sure latex lof (list of figures) picks up on subfigure captions
* clarify we need the subcaption package for subfigures, not subcaptions
2022-07-19 19:23:39 +02:00
333a5c4e48
go: clean up main
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 23:12:33 +02:00
3c8678a8d3
go,tmpl: plot mean values
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 22:36:47 +02:00
16cbf39a79
go(stats,algo): get,plot mean vals
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 10:08:12 +02:00
71e67bdb58
go(stats): actually calculate median
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 04:17:58 +02:00
988c20885e
go(report_base): add in-text timestamp
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 03:27:08 +02:00
ed2aece330
go: add flag -generate
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 02:33:17 +02:00
1c7fd068c5
go: add note about the report file being generated
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 02:31:04 +02:00
948a95fb7e
go(report,main): add flag -printreport
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 01:58:56 +02:00
5eaeb9c692
go(report): make report creation just workâ„¢
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 01:50:40 +02:00
9435f81fa2
tmpl(tex): format table,pic,allpics
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 01:05:17 +02:00
efbc963875
go(algo): use var for algo name
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 00:23:53 +02:00
602ee8206f
go(report): add report_base.tex,meta.sty
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 22:18:27 +02:00
fda5f46623
go(util): modify SanitiseFName, add test
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 21:50:19 +02:00
c9f15c9b99
tmpl,tex: fix leading whitespace deletion
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 21:38:48 +02:00
962edc69c9
golangci-lint: bump to go1.18.4
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 19:26:52 +02:00
852b380ea9
golangci-lint: disable bodyclose linter
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 19:23:07 +02:00
edbd58ef17
tmpl(tex): include -> input to fix nesting issues
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 18:00:19 +02:00
052b51f0df
go(report): rework gen.go,report.tmpl
All checks were successful
continuous-integration/drone/push Build is passing
make report include `report_base.tex` file verbatim and save it in
`out/tex/report.tex` as a base file of the report.

currently, this is done when running `go generate ./report` but there
are plans to switch from that to emitting the file during runtime, as is
done with all other templates.
2022-07-17 13:28:45 +02:00
6db4b60875
go(algo): use Dimensions slice from the bench pkg
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 11:57:40 +02:00
7742642e14
go(report): embed all templates
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 11:36:59 +02:00
446f63b59e
go(report): aggregate all table tex files
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-16 23:30:56 +02:00
496ddc191a
ci: refresh in parallel
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-16 22:09:08 +02:00
01a0ed12c4
go(report): aggregate all tex files tracking plots
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-16 22:05:15 +02:00
610060c88f
go(report): process pic lists in batches
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-16 21:40:53 +02:00
c47951f3ea
go(algo_test): add more checks
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-16 17:01:01 +02:00
0169196a93
go(plot): use chans, output latex from pic.tmpl
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-13 23:47:37 +02:00
3401a2e58e
go(util): add custom print func
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-13 23:18:31 +02:00
621f56f5e3
go(stats): rework table saving,structure
All checks were successful
continuous-integration/drone/push Build is passing
* create tables as defined in the report pkg.
* add new funcs to calculate stats and prepare the necessary table
  structs.
* rework existing `stats` tests
* handle a weird test behaviour when tmpl at `report/table.tmpl` is not
  found when testing a `stats` func.
2022-07-13 17:35:18 +02:00
2697b296b5
go(stats): relocate stats to common outdir
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-13 15:41:54 +02:00
96a93788da
go(report): add table.go, table.tmpl
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-13 00:15:40 +02:00