Skip to content

wahyuoi/yes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YES Command

Unix has yes command that print a line of spesified string or a y repeatedly until killed. This command is written by David MacKenzie.

example: yes will output:

y
y
y
y
y
y
.... (still continue)

yes man will output:

man
man
man
man
man

Result

Running on i7-6820HQ 2.70GHz, 16GB RAM, 256SSD.

How to measure? use pv -r to get rate of data transfer yes | pv -r > /dev/null

  • Build-in yes command (version 8.28) gives me 5.69 GB/s.
  • Simple python code only gives me 10.8 MB/s. 7.70 MB/s
  • C code gives me 111 MB/s
  • Rust code gives me 2.7 MB/s
  • Java code gives me 3.70 MB/s

How To Compile

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •