MCPcopy Create free account
hub / github.com/eth-easl/dirigent / busySpin

Function busySpin

workload/http_workload.go:57–63  ·  view source on GitHub ↗
(multiplier, runtimeMilli uint32)

Source from the content-addressed store, hash-verified

55}
56
57func busySpin(multiplier, runtimeMilli uint32) {
58 totalIterations := int(multiplier * runtimeMilli)
59
60 for i := 0; i < totalIterations; i++ {
61 takeSqrts()
62 }
63}
64
65func rootHandler(w http.ResponseWriter, req *http.Request) {
66 workload := req.Header.Get("workload")

Callers 1

rootHandlerFunction · 0.85

Calls 1

takeSqrtsFunction · 0.85

Tested by

no test coverage detected