Versions in this module Expand all Collapse all v1 v1.0.1 Dec 22, 2019 v1.0.0 Sep 24, 2019 Changes in this version + const BaseDuration + const BaseReqDelay + const CertFile + const CommunicationSeparator + const FailRequestEvery + const FirstByteTraceName + const IpV6Localhost + const KeyFile + const ListenPort + const NonSeededRequest + const NumberOfTasksToFinish + const ReadingBodyTraceName + const ReadyString + const ReqDelayAddition + const ServerPath + const ServerTimeout + const SockAddr + const TlsHandshakeTraceName + var DummySleepTraceSummary = GenerateTestTraceSummary(100 * time.Millisecond) + var FailInRow = []int64 + var TraceHooksServerTypes = map[string]bool + func GenerateResponse(code int, body string, headers map[string][]string) []byte + func GenerateTestTraceSummary(sleepDuration time.Duration) *engine.TraceSummary + func GetRequest(url string) func(string) (*http.Request, error) + func GetTlsServerAddress() string + func GetTlsServerUrl() string + func IsValueInRange(baseVal, refVal interface{}) error + func RunLocalServer(f func(w http.ResponseWriter, r *http.Request)) *httptest.Server + func RunTest(t *testing.T, p *httpbench.Preset, benchConfig BenchConfig, ...) + func WrapTestTimeout(bench BenchConfig, finish <-chan bool) error + type BenchConfig struct + DummyTraceSummary *engine.TraceSummary + Duration time.Duration + FailType HttpResponseType + FailsEveryReq uint64 + FailsInRow uint64 + HitsGraph httpbench.HitsGraph + MaxConcurrentLimit uint64 + MaxRequests uint64 + ReqDelay time.Duration + SyncedConcurrent uint64 + Type HttpBenchType + WaitHook syncedtrace.TraceHookType + func GenerateBenchConfigs(inputBenches []BenchConfig, inputValues [][]int64) []BenchConfig + func (bench *BenchConfig) SetPermutation(permutation []int64) + type CombinedTestResult struct + ServerResults *ServerRequestResult + TraceResults *engine.TraceResult + type CombinedTestResults struct + ServerResults map[string]*ServerRequestResult + TraceResults map[string]*engine.TraceResult + func NewTestResults() *CombinedTestResults + type HttpBenchType int + const Graph + const PerDuration + const Synced + const SyncedOnce + const UnSynced + type HttpResponseType int + const Http200 + const Http400 + const Http500 + const HttpRand + func (ht HttpResponseType) Get() []byte + type ServerRequestResult struct + AggregatedDuration time.Duration + BeforeRead time.Time + EndTime time.Time + Err string + Hooks map[syncedtrace.TraceHookType]*syncedtrace.Hook + UniqueId string + type SockIpc struct + Closed bool + func (sock *SockIpc) Close() + func (sock *SockIpc) Connect() error + func (sock *SockIpc) HandleConnection(conn net.Conn, f func(data []byte)) + func (sock *SockIpc) ListenAndServe(writeOnAccept []byte, recvFunc func(data []byte)) + func (sock *SockIpc) ReadConfig() []byte + func (sock *SockIpc) SendData(data []byte) + type TestResults struct + Bench *BenchConfig + PresetResult *httpbench.PresetResult + T *testing.T + TestResults *CombinedTestResults + func (tr *TestResults) SetupAndRunServer(ServReadyChan chan error) (*TlsServerCmd, error) + func (tr *TestResults) VerifyServerResults() + func (tr *TestResults) WaitForAllResults() (int, int, bool) + type TlsServerCmd struct + Cmd *exec.Cmd + StderrPipe io.ReadCloser + StdoutPipe io.ReadCloser + func (s *TlsServerCmd) Done() <-chan struct{} + func (s *TlsServerCmd) Stop()