Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChunkSize = 1 << 14 DefaultPieceSize = 2 << 20 DefaultNumPieces = 16 )
Variables ¶
This section is empty.
Functions ¶
func BenchmarkPieceMarkComplete ¶
func BenchmarkPieceMarkComplete( b *testing.B, ci storage.ClientImpl, pieceSize int64, numPieces int, capacity int64, )
This writes chunks to the storage concurrently, and waits for them all to complete. This matches the behaviour from the peer connection read loop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.