| 56 | // so that the construction cost is only paid by the first run. |
| 57 | |
| 58 | std::string DjinniPerfBenchmarkImpl::returnString(int32_t size) { |
| 59 | static int32_t cachedReturnValueSize; |
| 60 | static std::string cachedReturnValue; |
| 61 | if (size != cachedReturnValueSize) { |
| 62 | cachedReturnValue = std::string(size, '@'); |
| 63 | cachedReturnValueSize = size; |
| 64 | } |
| 65 | return cachedReturnValue; |
| 66 | } |
| 67 | |
| 68 | std::vector<uint8_t> DjinniPerfBenchmarkImpl::returnBinary(int32_t size) { |
| 69 | static int32_t cachedReturnValueSize; |
nothing calls this directly
no outgoing calls
no test coverage detected