Project

thrash

0.0
No commit activity in last 3 years
No release in over 3 years
Randomly write to many, many files using an in-memory buffer
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

🔥 Thrash

Randomly write to many, many files. Inspired by desperation.

thrasher = Thrash.new

random_numbers = (0..10_000).to_a

1_000_000.times do |x|
  filename = "thrash-#{random_numbers.sample}"
  thrasher.write(filename, "data")
end

thrasher.finalize

Copyright

Copyright (c) 2012 Austin G. Davis-Richardson. See LICENSE.txt for further details.