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