Documentation ¶
Overview ¶
Package throughput provides functionality for producing content at an extremely high rate.
Example ¶
package main import ( "os" "github.com/stevenxie/dgen/throughput" ) func main() { const repstr = "test string " throughput.Dump(repstr, 3, throughput.RecommendedBufSize, os.Stdout) }
Output: test string test string test string
Index ¶
Examples ¶
Constants ¶
View Source
const RecommendedBufSize = 1000
RecommendedBufSize is the buffer size recommended for Dump's bufsize argument.
It is roughly based on the speed of writing to os.Stdout. A different size should be considered for programs that do not write directly to the display.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.