This can be done with a gh-ci actions plugin: https://github.com/benchmark-action/github-action-benchmark