Documentation
¶
Overview ¶
Package benchmarks provides API performance benchmarks
Package benchmarks provides federation performance benchmarks ¶
Package benchmarks provides performance benchmarks for critical paths
Index ¶
- func BenchmarkBatchActorCreation(b *testing.B)
- func BenchmarkConcurrentActorAccess(b *testing.B)
- func BenchmarkSearchPerformance(b *testing.B)
- func BenchmarkStorageMemoryUsage(b *testing.B)
- func BenchmarkTimelinePerformance(b *testing.B)
- type APIBenchmarkSuite
- func (s *APIBenchmarkSuite) BenchmarkActivityPubInbox(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkConcurrentRequests(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkCreateStatus(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkEndToEndScenario(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkGetActor(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkGetHomeTimeline(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkHealthCheck(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkJSONParsing(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkMemoryUsage(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkRateLimiting(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkResponseTime(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkVerifyCredentials(b *testing.B)
- func (s *APIBenchmarkSuite) BenchmarkWebfinger(b *testing.B)
- func (s *APIBenchmarkSuite) Cleanup()
- func (s *APIBenchmarkSuite) RunAllAPIBenchmarks(b *testing.B)
- func (s *APIBenchmarkSuite) Setup(b *testing.B)
- type FederationBenchmarkSuite
- func (s *FederationBenchmarkSuite) BenchmarkActivityDelivery(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkActivityValidation(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkActorResolution(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkBatchActivityProcessing(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkConcurrentFederation(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkFederationCaching(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkHTTPSignatureVerification(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkInboxProcessing(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkRemoteInstanceDiscovery(b *testing.B)
- func (s *FederationBenchmarkSuite) BenchmarkWebfingerLookup(b *testing.B)
- func (s *FederationBenchmarkSuite) RunAllFederationBenchmarks(b *testing.B)
- func (s *FederationBenchmarkSuite) Setup(_ *testing.B)
- type StorageBenchmarkSuite
- func (s *StorageBenchmarkSuite) BenchmarkCreateActor(b *testing.B)
- func (s *StorageBenchmarkSuite) BenchmarkFollowActor(b *testing.B)
- func (s *StorageBenchmarkSuite) BenchmarkGetActivity(b *testing.B)
- func (s *StorageBenchmarkSuite) BenchmarkGetActor(b *testing.B)
- func (s *StorageBenchmarkSuite) BenchmarkGetTimeline(b *testing.B)
- func (s *StorageBenchmarkSuite) BenchmarkStoreActivity(b *testing.B)
- func (s *StorageBenchmarkSuite) RunAllBenchmarks(b *testing.B)
- func (s *StorageBenchmarkSuite) Setup(b *testing.B)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkBatchActorCreation ¶
BenchmarkBatchActorCreation benchmarks bulk actor creation performance
func BenchmarkConcurrentActorAccess ¶
BenchmarkConcurrentActorAccess benchmarks concurrent read/write access to actor data
func BenchmarkSearchPerformance ¶
BenchmarkSearchPerformance benchmarks full-text search and filtering operations
func BenchmarkStorageMemoryUsage ¶
BenchmarkStorageMemoryUsage benchmarks memory allocation patterns in storage operations
func BenchmarkTimelinePerformance ¶
BenchmarkTimelinePerformance benchmarks timeline query performance under various load conditions
Types ¶
type APIBenchmarkSuite ¶
type APIBenchmarkSuite struct {
// contains filtered or unexported fields
}
APIBenchmarkSuite provides API endpoint benchmarks
func NewAPIBenchmarkSuite ¶
func NewAPIBenchmarkSuite(handler http.Handler) *APIBenchmarkSuite
NewAPIBenchmarkSuite creates a new API benchmark suite
func (*APIBenchmarkSuite) BenchmarkActivityPubInbox ¶
func (s *APIBenchmarkSuite) BenchmarkActivityPubInbox(b *testing.B)
BenchmarkActivityPubInbox benchmarks ActivityPub inbox
func (*APIBenchmarkSuite) BenchmarkConcurrentRequests ¶
func (s *APIBenchmarkSuite) BenchmarkConcurrentRequests(b *testing.B)
BenchmarkConcurrentRequests benchmarks concurrent API access
func (*APIBenchmarkSuite) BenchmarkCreateStatus ¶
func (s *APIBenchmarkSuite) BenchmarkCreateStatus(b *testing.B)
BenchmarkCreateStatus benchmarks status creation
func (*APIBenchmarkSuite) BenchmarkEndToEndScenario ¶
func (s *APIBenchmarkSuite) BenchmarkEndToEndScenario(b *testing.B)
BenchmarkEndToEndScenario benchmarks a complete user interaction scenario
func (*APIBenchmarkSuite) BenchmarkGetActor ¶
func (s *APIBenchmarkSuite) BenchmarkGetActor(b *testing.B)
BenchmarkGetActor benchmarks actor retrieval endpoint
func (*APIBenchmarkSuite) BenchmarkGetHomeTimeline ¶
func (s *APIBenchmarkSuite) BenchmarkGetHomeTimeline(b *testing.B)
BenchmarkGetHomeTimeline benchmarks timeline retrieval
func (*APIBenchmarkSuite) BenchmarkHealthCheck ¶
func (s *APIBenchmarkSuite) BenchmarkHealthCheck(b *testing.B)
BenchmarkHealthCheck benchmarks the health check endpoint
func (*APIBenchmarkSuite) BenchmarkJSONParsing ¶
func (s *APIBenchmarkSuite) BenchmarkJSONParsing(b *testing.B)
BenchmarkJSONParsing benchmarks JSON parsing performance
func (*APIBenchmarkSuite) BenchmarkMemoryUsage ¶
func (s *APIBenchmarkSuite) BenchmarkMemoryUsage(b *testing.B)
BenchmarkMemoryUsage benchmarks memory usage during API operations
func (*APIBenchmarkSuite) BenchmarkRateLimiting ¶
func (s *APIBenchmarkSuite) BenchmarkRateLimiting(b *testing.B)
BenchmarkRateLimiting benchmarks rate limiting performance
func (*APIBenchmarkSuite) BenchmarkResponseTime ¶
func (s *APIBenchmarkSuite) BenchmarkResponseTime(b *testing.B)
BenchmarkResponseTime benchmarks response time consistency
func (*APIBenchmarkSuite) BenchmarkVerifyCredentials ¶
func (s *APIBenchmarkSuite) BenchmarkVerifyCredentials(b *testing.B)
BenchmarkVerifyCredentials benchmarks credential verification
func (*APIBenchmarkSuite) BenchmarkWebfinger ¶
func (s *APIBenchmarkSuite) BenchmarkWebfinger(b *testing.B)
BenchmarkWebfinger benchmarks WebFinger lookup
func (*APIBenchmarkSuite) Cleanup ¶
func (s *APIBenchmarkSuite) Cleanup()
Cleanup closes the test server
func (*APIBenchmarkSuite) RunAllAPIBenchmarks ¶
func (s *APIBenchmarkSuite) RunAllAPIBenchmarks(b *testing.B)
RunAllAPIBenchmarks runs all API benchmarks
func (*APIBenchmarkSuite) Setup ¶
func (s *APIBenchmarkSuite) Setup(b *testing.B)
Setup prepares test data for API benchmarks
type FederationBenchmarkSuite ¶
type FederationBenchmarkSuite struct {
// contains filtered or unexported fields
}
FederationBenchmarkSuite provides federation benchmarks
func NewFederationBenchmarkSuite ¶
func NewFederationBenchmarkSuite() *FederationBenchmarkSuite
NewFederationBenchmarkSuite creates a new federation benchmark suite
func (*FederationBenchmarkSuite) BenchmarkActivityDelivery ¶
func (s *FederationBenchmarkSuite) BenchmarkActivityDelivery(b *testing.B)
BenchmarkActivityDelivery benchmarks activity delivery
func (*FederationBenchmarkSuite) BenchmarkActivityValidation ¶
func (s *FederationBenchmarkSuite) BenchmarkActivityValidation(b *testing.B)
BenchmarkActivityValidation benchmarks ActivityPub activity validation
func (*FederationBenchmarkSuite) BenchmarkActorResolution ¶
func (s *FederationBenchmarkSuite) BenchmarkActorResolution(b *testing.B)
BenchmarkActorResolution benchmarks remote actor resolution
func (*FederationBenchmarkSuite) BenchmarkBatchActivityProcessing ¶
func (s *FederationBenchmarkSuite) BenchmarkBatchActivityProcessing(b *testing.B)
BenchmarkBatchActivityProcessing benchmarks processing multiple activities
func (*FederationBenchmarkSuite) BenchmarkConcurrentFederation ¶
func (s *FederationBenchmarkSuite) BenchmarkConcurrentFederation(b *testing.B)
BenchmarkConcurrentFederation benchmarks concurrent federation operations
func (*FederationBenchmarkSuite) BenchmarkFederationCaching ¶
func (s *FederationBenchmarkSuite) BenchmarkFederationCaching(b *testing.B)
BenchmarkFederationCaching benchmarks federation data caching
func (*FederationBenchmarkSuite) BenchmarkHTTPSignatureVerification ¶
func (s *FederationBenchmarkSuite) BenchmarkHTTPSignatureVerification(b *testing.B)
BenchmarkHTTPSignatureVerification benchmarks HTTP signature verification
func (*FederationBenchmarkSuite) BenchmarkInboxProcessing ¶
func (s *FederationBenchmarkSuite) BenchmarkInboxProcessing(b *testing.B)
BenchmarkInboxProcessing benchmarks inbox activity processing
func (*FederationBenchmarkSuite) BenchmarkRemoteInstanceDiscovery ¶
func (s *FederationBenchmarkSuite) BenchmarkRemoteInstanceDiscovery(b *testing.B)
BenchmarkRemoteInstanceDiscovery benchmarks discovering remote instances
func (*FederationBenchmarkSuite) BenchmarkWebfingerLookup ¶
func (s *FederationBenchmarkSuite) BenchmarkWebfingerLookup(b *testing.B)
BenchmarkWebfingerLookup benchmarks WebFinger lookups
func (*FederationBenchmarkSuite) RunAllFederationBenchmarks ¶
func (s *FederationBenchmarkSuite) RunAllFederationBenchmarks(b *testing.B)
RunAllFederationBenchmarks runs all federation benchmarks
func (*FederationBenchmarkSuite) Setup ¶
func (s *FederationBenchmarkSuite) Setup(_ *testing.B)
Setup prepares test data for federation benchmarks Note: b parameter is used for reporting allocation stats during setup
type StorageBenchmarkSuite ¶
type StorageBenchmarkSuite struct {
// contains filtered or unexported fields
}
StorageBenchmarkSuite provides storage operation benchmarks
func NewStorageBenchmarkSuite ¶
func NewStorageBenchmarkSuite(storage *mocks.EnhancedMockStorage) *StorageBenchmarkSuite
NewStorageBenchmarkSuite creates a new storage benchmark suite
func (*StorageBenchmarkSuite) BenchmarkCreateActor ¶
func (s *StorageBenchmarkSuite) BenchmarkCreateActor(b *testing.B)
BenchmarkCreateActor benchmarks actor creation
func (*StorageBenchmarkSuite) BenchmarkFollowActor ¶
func (s *StorageBenchmarkSuite) BenchmarkFollowActor(b *testing.B)
BenchmarkFollowActor benchmarks following relationships
func (*StorageBenchmarkSuite) BenchmarkGetActivity ¶
func (s *StorageBenchmarkSuite) BenchmarkGetActivity(b *testing.B)
BenchmarkGetActivity benchmarks activity retrieval
func (*StorageBenchmarkSuite) BenchmarkGetActor ¶
func (s *StorageBenchmarkSuite) BenchmarkGetActor(b *testing.B)
BenchmarkGetActor benchmarks actor retrieval
func (*StorageBenchmarkSuite) BenchmarkGetTimeline ¶
func (s *StorageBenchmarkSuite) BenchmarkGetTimeline(b *testing.B)
BenchmarkGetTimeline benchmarks timeline retrieval
func (*StorageBenchmarkSuite) BenchmarkStoreActivity ¶
func (s *StorageBenchmarkSuite) BenchmarkStoreActivity(b *testing.B)
BenchmarkStoreActivity benchmarks activity storage
func (*StorageBenchmarkSuite) RunAllBenchmarks ¶
func (s *StorageBenchmarkSuite) RunAllBenchmarks(b *testing.B)
RunAllBenchmarks runs all storage benchmarks
func (*StorageBenchmarkSuite) Setup ¶
func (s *StorageBenchmarkSuite) Setup(b *testing.B)
Setup prepares test data for benchmarks