hyperifyio / statelessdb

StatelessDB is a cloud database server that processes encrypted client-side data without storing state, enabling secure and scalable computations.
Other
0 stars 0 forks source link

TASK Create initial benchmark tests #14

Closed thejhh closed 1 week ago

thejhh commented 1 week ago

Goal

Benchmark request handler.

jhh@jhh:~/git/hyperifyio/statelessdb/internal/apis$ go test -bench=. -run=^$ -benchmem -cpuprofile=cpu.prof
goos: darwin
goarch: arm64
pkg: statelessdb/internal/apis
BenchmarkHandleComputeStateRequest/with_Private-12            178855          6853 ns/op        4453 B/op         48 allocs/op
BenchmarkHandleComputeStateRequest/without_Private-12         175311          6943 ns/op        3192 B/op         28 allocs/op
PASS
ok      statelessdb/internal/apis   26.943s