b412c399a3
Bumps [activerecord](https://github.com/rails/rails) from 6.0.3.1 to 6.0.3.5. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v6.1.3/activerecord/CHANGELOG.md) - [Commits](https://github.com/rails/rails/compare/v6.0.3.1...v6.0.3.5) Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
config | ||
db | ||
models | ||
public | ||
views | ||
.gitignore | ||
app.rb | ||
Gemfile | ||
Gemfile.lock | ||
init.rb | ||
LICENSE | ||
Rakefile | ||
README.md |
Data Transfer Test
Data Transfer Test is a software developed to measure the amount of data transferred over a period of time.
Screen
How to configure
First clone this repository to the local machine
git clone https://github.com/luizpicolo/data_transfer_test.git
After, access local respository and install the dependencies
cd data_transfer_test
bundle install
and
cd data_transfer_test/public
npm install
How to use
Add init.rb
to your cronjob or just create an infinite loop so that data is collected during a pre-defined period.
init.rb
require 'speedtest'
require 'sinatra/activerecord'
require './models/rate'
test = Speedtest::Test.new(debug: false)
while true
result = test.run
Rate.create({
download: result.pretty_download_rate,
upload: result.pretty_upload_rate,
})
# Run every 10 minutes
sleep(60 * 10)
end
And, in another terminal, run the app.rb
and access localhost:4567
ruby app.rb
or
rerun 'ruby app.rb'
License
DataTransferTest use Licença MIT. For more details read the User License