https://github.com/audy/thrash
Randomly write to many, many files. Created out of ignorance and desperation.
https://github.com/audy/thrash
Last synced: 3 months ago
JSON representation
Randomly write to many, many files. Created out of ignorance and desperation.
- Host: GitHub
- URL: https://github.com/audy/thrash
- Owner: audy
- License: mit
- Created: 2012-10-23T19:58:05.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-18T15:57:46.000Z (over 12 years ago)
- Last Synced: 2025-03-15T05:18:56.025Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 🔥 Thrash
Randomly write to many, many files. Inspired by desperation.
```ruby
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")
endthrasher.finalize
```## Copyright
Copyright (c) 2012 Austin G. Davis-Richardson. See LICENSE.txt for
further details.