Open hendriknielaender opened 6 months ago
I think this is a good idea! Reading the proposed structure, I was wondering what we want do be :) src
and main.zig
suggests a binary (application) to me - isn't it a library actually?
Good point, adjusted it to lib
and zbench.zig
.
since you're at it, I was also wondering if the util directory is needed :) Some ideas:
color.zig
would fit in therestatistics
and tracking_allocator
might also go into "benchmark"config
and definition
could maybe go in one zig file ?True, adjusted to output and moved these files to benchmark. I will also put in all other files into the graph. Currently this was more a basic draft, but with all files mentioned the process will be cleaner.
Merging files i would see in another PR, since this will already be a bigger change.
Ahh for the github actions i meant the output format from an actual benchmark action (see: https://github.com/benchmark-action/github-action-benchmark)
Overview
This proposal outlines a new folder structure for the
zbench
project to improve modularity and maintainability. Some of the folder structure we already have, other parts are not yet part of the project likeformats
. It is more of a draft, to keep an eye of the growing codebase.Proposed Folder Structure
The new folder structure is organized as follows:
Advantages of the New Structure