Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add vm init and start benchmarking (runfinch#344)
*Description of changes:* Basic vm init and start benchmarking without automation, mainly for barebone example. More scenarios like finch pull/build can be added later on top of this. It can be added to CI later by integrating this continuous benchmark Github [action](https://github.com/marketplace/actions/continuous-benchmark), which can report in every PR and also persistent diagram. *Testing done:* Ran `make test-benchmark` locally ``` ➜ finch git:(main) ✗ INSTALLED=true make test-benchmark cd benchmark/vm && go test -ldflags "-X github.com/runfinch/finch/pkg/version.Version=v0.4.1-47-g5f12ef3.modified -X github.com/runfinch/finch/pkg/version.GitCommit=5f12ef322d08cfaaf4a23eddd2859a8fb98f0ee1.m" -bench=. -benchmem --installed="true" goos: darwin goarch: arm64 pkg: github.com/runfinch/finch/benchmark/vm BenchmarkVMInit-8 1 69722391084 ns/op 8920 B/op 58 allocs/op BenchmarkVMStart-8 1 18059120667 ns/op 9024 B/op 54 allocs/op PASS ok github.com/runfinch/finch/benchmark/vm 191.405s ``` - [ X ] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: Ziwen Ning <[email protected]>
- Loading branch information