alecthomas / go_serialization_benchmarks

Benchmarks of Go serialization methods
https://alecthomas.github.io/go_serialization_benchmarks/
1.56k stars 158 forks source link

report: Initial Version #147

Closed matheusd closed 3 months ago

matheusd commented 3 months ago

This adds the initial version of a dynamic benchmark results report.

The report shows both marshsal and unmarshal metrics individually and aggregated. It also records how the serialization of time.Time values is done and what is the general coding paradigm used by code that intends to use the serializer.

The report is generated as an HTML report and uses ParamQuery's Grid component to provide a better UX.

Example rendering of the report: https://htmlpreview.github.io/?https://github.com/matheusd/go_serialization_benchmarks/blob/master/report/index.html

Supersedes #119

alecthomas commented 3 months ago

This is awesome @matheusd! I'll set up GH Pages and a CI action to publish this.

alecthomas commented 3 months ago

What's the mechanism for getting the data into the report?

matheusd commented 3 months ago

What's the mechanism for getting the data into the report?

go test -tags genreport -run TestGenerateReport

This will re-generate the report/data.js file with updated data.