Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.01 KB

README.md

File metadata and controls

59 lines (42 loc) · 2.01 KB

Randomtext

Build Status Go Reference Go Report Card Downloads Latest release

Command line random text generator

Usage

$ randomtext -h
Usage of randomtext:
  -profile string
    	Type of profile - cpu,mem
  -size string
    	Size of generated random text in KB, MB, GB, TB (default "1MB")
  -type string
    	Type of text to be generated - chars, words, zeros (default "chars")

Examples

  • Generate 1 KB random characters
    • randomtext --size=1KB | pv > output.txt
  • Generate 100MB random words
    • randomtext --size=100MB --type=words | pv > output.txt
  • Generate 1GB of zeros
    • randomtext --size=1GB --type=zeros | pv > output.txt

Source of words. The above commands use pv for pipeline visualization only.

Use cases

  • Testing the capacity of code editors/IDEs
  • Generate logs to generate load for log forwarders like fluent bit

Installation

Mac OSX

$ brew install kishaningithub/tap/randomtext

Other platforms

Prebuilt binaries for various platforms are available in the releases page. Download it, Extract it and add the binary in your $PATH

Development

To build

make build