Skip to content

Latest commit

 

History

History
267 lines (244 loc) · 9.62 KB

testing.md

File metadata and controls

267 lines (244 loc) · 9.62 KB

Testing and Performance

简体中文 | Docs Index

Required Checks

GOWORK=off GOTOOLCHAIN=local go test ./... -count=1
GOWORK=off GOTOOLCHAIN=local go vet ./...
gofmt -l .
git diff --check

Focused Behavior Checks

Run focused tests while working on a small behavior change:

GOWORK=off GOTOOLCHAIN=local go test ./... -run 'TestName' -count=1

Discovered Test Entry Points

This inventory is generated from the current test sources in this repository to catch stale coverage descriptions.

Total discovered entry points: 207.

Tests (122)

  • TestBaselineExternalHarnessesCanPassStrictGateWithRepoArtifacts
  • TestBaselineGnalloyTCPEchoUsesSameLoadModel
  • TestBaselineNettyTCPEchoUsesNativeEpoll
  • TestBaselineSpecLoads
  • TestBenchmarkPayloadUsesRequestedSize
  • TestCatalogTargetsHaveOverlayFiles
  • TestClientOptionsBuild
  • TestClientOptionsBuildDisabled
  • TestClientOptionsBuildRejectsInvalidConfig
  • TestCollectOverlayMapsOnlyRequestedPackage
  • TestCollectOverlayRejectsTraversal
  • TestCompareSamplesUsesMedianAndReportsMissing
  • TestConfigRejectsInvalidScenario
  • TestConfigValidate
  • TestConfigValidate
  • TestConfigValidation
  • TestExchangeFixed
  • TestExchangeLengthField
  • TestExchangeLine
  • TestExchangeRaw
  • TestFormatValue
  • TestFullSpecAppliesProfileTimeout
  • TestFullSpecsDoNotUseHTTP1BenchmarkBypass
  • TestGnalloyHTTP1ClientToServer
  • TestGnalloyHTTP2ClientToServer
  • TestGnalloyHTTP3ClientToServer
  • TestHTTP1MatricesUseFrameworkHTTPImplementations
  • TestHTTP2MatrixSpecLoads
  • TestHTTP3MatrixSpecLoads
  • TestHTTPS1ALPNMatrixSpecLoads
  • TestHTTPServerInterop
  • TestInspectExternalHarnessesChecksExpandedCommand
  • TestLinuxFullMatrixSpecLoads
  • TestLinuxFullSpecCoversRequestedProtocolsAndFrameworks
  • TestLinuxFullSpecRejectsIllegalTLSCombinationsBySkipping
  • TestLinuxHTTP1MatrixExternalHarnessesCanPassStrictGateWithRepoArtifacts
  • TestLinuxHTTP2MatrixSpecLoads
  • TestLinuxHTTP3MatrixSpecLoads
  • TestLinuxHTTPS1ALPNMatrixSpecLoads
  • TestLinuxTLSVersionMatrixSpecLoads
  • TestLinuxUDPEchoMatrixSpecLoads
  • TestLoadSpecAllowsSkippedExternalScenarioWithoutCommand
  • TestLoadSpecRejectsInvalidScenario
  • TestLoadSpecRejectsNegativeSampling
  • TestLoadSpecRejectsUnknownMatrix
  • TestLookupHotPathSuiteBuildsStableBenchdiffInputs
  • TestLookupRejectsUnknownSuite
  • TestNonNegativeLatencyNanosClampsEarlySend
  • TestOptionsResolveRejectsFixedBuffersWithoutIOUringMmap
  • TestOptionsResolveRejectsInvalidSizes
  • TestOptionsTCPConfigEnablesFixedBuffers
  • TestOptionsWriteBufferWatermarkFlowsToConfigs
  • TestPacerDeadlineSaturatesOnOverflow
  • TestPacerDisablesInvalidRateOrTopology
  • TestPacerDistributesAggregateRate
  • TestParseBackendNames
  • TestParseBackendRejectsUnknownName
  • TestParseCipherSuitesRejectsUnknownSuite
  • TestParseCipherSuitesSupportsLegacyAndModernSuites
  • TestParseFlagsRejectsAmbiguousSource
  • TestParseFlagsRejectsNonPositiveTimeout
  • TestParseGoBenchOutputTracksPackage
  • TestParseScenarioStats
  • TestParseScenarioStatsParsesJavaDuration
  • TestPathCommandCandidatesAddsWindowsExecutableSuffix
  • TestPhasePacerDistributesAggregateRate
  • TestPhasePacerDistributesAggregateRate
  • TestPositiveLatencyNanosKeepsPositiveFloor
  • TestResolveBenchmarkSelectionKeepsExplicitOverrides
  • TestResolveBenchmarkSelectionRejectsUnknownSuite
  • TestResolveBenchmarkSelectionUsesSuiteDefaults
  • TestResolverProxyTLSHTTP1Client
  • TestRun
  • TestRunChecksRawAndLengthFieldLeaks
  • TestRunConcurrentConnections
  • TestRunDryRunKeepsDefaultExternalBehavior
  • TestRunDumpLinuxFullSpec
  • TestRunLengthFieldHalfFrameScenario
  • TestRunLoadHTTP3PacesAggregateTargetRate
  • TestRunLoadHTTP3QUIC
  • TestRunOverlayUsesRepositoryBackingFiles
  • TestRunPacesAggregateTargetRate
  • TestRunRawLongScenario
  • TestRunRejectsEmptyServerFramework
  • TestRunRejectsEmptyServerFramework
  • TestRunRejectsInvalidProtocol
  • TestRunRejectsUnexpectedResponse
  • TestRunSaturatedAndPaced
  • TestRunStrictExternalAllowsExplicitlySkippedHarness
  • TestRunTLS
  • TestRunTLSUsesALPN
  • TestRunUsesCommonUDPEchoClient
  • TestRunWritesPacedLatencyComponents
  • TestRunnerCapturesCommandOutput
  • TestRunnerDryRunProducesSkippedResults
  • TestRunnerExpandsScenarioVariables
  • TestRunnerRepeatsScenarioAndDropsWarmupOutput
  • TestRunnerSkipsScenarioMarkedSkip
  • TestSelfSignedCertificateSupportsIPName
  • TestSelfSignedCertificateSupportsRSA
  • TestSelfSignedCertificateUsesDefaultServerName
  • TestSelfSignedCertificatesDeduplicatesAlgorithms
  • TestSplitTarget
  • TestSummarize
  • TestTCPMatrixIncludesOptimizedIOUringScenario
  • TestTCPMatrixSpecLoads
  • TestTLSVersionMatrixSpecLoads
  • TestUDPEchoMatrixSpecLoads
  • TestValidateExternalHarnessesAcceptsReadyCommand
  • TestValidateExternalHarnessesAcceptsSkippedUnsupportedScenario
  • TestValidateExternalHarnessesChecksGnalloyParityHarness
  • TestValidateExternalHarnessesChecksJavaJarArgument
  • TestWaitReturnsWhenContextIsCanceled
  • TestWindowsFullMatrixSpecLoads
  • TestWindowsFullSpecUsesWindowsBackends
  • TestWindowsHTTP1MatrixExternalHarnessesCanPassStrictGateWithRepoArtifacts
  • TestWindowsTCPMatrixExternalHarnessesCanPassStrictGateWithRepoArtifacts
  • TestWindowsTCPMatrixSpecLoads
  • TestWriteJSONReport
  • TestWriteMarkdownIncludesComparisonRows
  • TestWriteMarkdownReportIncludesMachineAndScenario
  • TestWriteReady

Benchmarks (85)

  • BenchmarkAcquireResponseRoundTrip
  • BenchmarkApplicationQueueReadyEnqueue
  • BenchmarkAtomicChannelRecorderRead
  • BenchmarkBase64DecoderComposite
  • BenchmarkBase64EncoderComposite
  • BenchmarkBodylessRequestExpectHeaderScan
  • BenchmarkByteSliceDecoderComposite
  • BenchmarkByteToMessageListDecoder
  • BenchmarkChannelPoolMapGet
  • BenchmarkCompositeGetByteFragmented
  • BenchmarkCompositeIndexByteFragmented
  • BenchmarkCompositeReadableSlicesFullComponents
  • BenchmarkCompositeReadableSlicesPartialComponents
  • BenchmarkCompressMessage
  • BenchmarkCompressorCompositePayload
  • BenchmarkCopyReadableBytesComposite
  • BenchmarkDecoderContentLengthFrame
  • BenchmarkDecoderDataFrame
  • BenchmarkDecoderDataFrame
  • BenchmarkDecoderV2TCP4
  • BenchmarkDecompressMessage
  • BenchmarkDecompressorPayload
  • BenchmarkDelimiterBasedFrameDecoder
  • BenchmarkDelimiterBasedFrameDecoderFragmented
  • BenchmarkEncodeDecodeIPv4Packet
  • BenchmarkEncoderFrame
  • BenchmarkEndpointBackpressureQueue
  • BenchmarkEndpointBackpressureQueue
  • BenchmarkEventLoopSubmitBurst
  • BenchmarkFileRegionEncoderChunks
  • BenchmarkFindHeaderEndFragmented
  • BenchmarkFixedLengthFrameDecoder
  • BenchmarkFixedPoolGetPut
  • BenchmarkFrameDecoder
  • BenchmarkFrameDecoderMaskedFragmentedPayload
  • BenchmarkFrameEncoderMaskedCompositePayload
  • BenchmarkFrameLengthScanFragmented
  • BenchmarkGzipDecoder
  • BenchmarkGzipEncoderComposite
  • BenchmarkHeaderDecoderDecodeFieldsSteadyState
  • BenchmarkHeaderDecoderFragmentedBlock
  • BenchmarkHeaderEncoderEncodeFieldsSteadyState
  • BenchmarkHeapAllocatorAcquireRelease
  • BenchmarkIPFilterAllowedDatagram
  • BenchmarkLengthFieldDecoder
  • BenchmarkLengthFieldTCPRoundTrip
  • BenchmarkLineBasedFrameDecoder
  • BenchmarkLineBasedFrameDecoderFragmented
  • BenchmarkLocalChannelConcurrentReadinessWriteAndFlush
  • BenchmarkLocalChannelWriteAndFlushOwnerQueue
  • BenchmarkMPSCOfferPoll
  • BenchmarkMakeIOVectorsComposite
  • BenchmarkMakeWriteBuffersComposite
  • BenchmarkMmapAllocatorAcquireRelease
  • BenchmarkNativeTCPEchoRoundTrip
  • BenchmarkNewOwnedBufferWithReleaserRoundTrip
  • BenchmarkOwnedBufferFromChunkRoundTrip
  • BenchmarkPCAPCaptureByteBuf
  • BenchmarkParsedBodylessRequestContinueCheck
  • BenchmarkPipelineInboundNoop
  • BenchmarkPipelineWriteAndFlushDirectSink
  • BenchmarkPooledAllocatorAcquireRelease
  • BenchmarkPooledAllocatorParallelAcquireRelease
  • BenchmarkPooledBytePoolDefaultRoundTrip
  • BenchmarkPrometheusExporter
  • BenchmarkRequestDecoderChunkedFragmentedBody
  • BenchmarkRequestDecoderContiguousHeader
  • BenchmarkRequestDecoderFragmentedHeader
  • BenchmarkRequestEncoderHeader
  • BenchmarkResponseDecoder
  • BenchmarkResponseDecoderContiguousHeader
  • BenchmarkResponseEncoderCoalescedBody
  • BenchmarkResponseEncoderHeader
  • BenchmarkScanResponseHeaderFields
  • BenchmarkStreamMultiplexerReadData
  • BenchmarkStringDecoderComposite
  • BenchmarkStringSliceFragmented
  • BenchmarkUnsafeEventLoopBatchFlushDrained
  • BenchmarkUnsafeFileRegionDirectWriterDrained
  • BenchmarkUnsafeVectorWriteAndFlushSingleDirectBufferDrained
  • BenchmarkUnsafeWriteAndFlushDrained
  • BenchmarkWheelScheduleAdvance
  • BenchmarkWriteReadableBytesComposite
  • BenchmarkZlibDecoder
  • BenchmarkZlibEncoderComposite

Fuzz Targets (0)

  • No Fuzz targets are currently declared.

Examples (0)

  • No Example functions are currently declared.

Race Checks

GOWORK=off GOTOOLCHAIN=local go test -race ./... -count=1

Race checks are most valuable for core, transport, handler, resolver, observability, examples, and benchmark modules. Platform-specific transports may require native host capabilities.

Benchmarks

go run ./cmd/gnalloy-microbench -module gnalloy -package buffer -benchtime 1s -count 5

Report ns/op, B/op, allocs/op, throughput, and p99 latency separately. Include host and OS details with every result.

Pressure Testing

Pressure tests should run against a realistic assembled stack. This repository owns the repeatable matrices and load clients. Keep warmup and measurement phases separate.

CI

The repository validation workflow runs formatting, tests, and vet on Linux, macOS, and Windows for pushes and pull requests.