Skip to content

Commit

Permalink
Merge pull request #18 from piotr-iohk/100_wallets
Browse files Browse the repository at this point in the history
100 wallets
  • Loading branch information
piotr-iohk committed Oct 20, 2020
2 parents 36e93a2 + 3347a0f commit da78eb4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -32,6 +32,10 @@ export BENCH_DB_PATH=sqlite:/tmp/test.db
export BUILDKITE_API_TOKEN=fake_token
rake db:migrate

# To set up data being downloaded from buildkite set up as a cron job or
# in heroku scheduler
rake bk:latest

# Run all tests
rspec tests

Expand Down
7 changes: 7 additions & 0 deletions db/migrations/008_latency_100_wallets.rb
@@ -0,0 +1,7 @@
Sequel.migration do
change do
self[:latency_benchmarks].where(name: "Latencies for 100 fixture wallets scenario").
update(name: "Latencies for 100 fixture wallets")

end
end
2 changes: 1 addition & 1 deletion env.rb
Expand Up @@ -13,7 +13,7 @@
LATENCY_BENCHMARKS = ["Non-cached run",
"Latencies for 2 fixture wallets scenario",
"Latencies for 10 fixture wallets scenario",
"Latencies for 100 fixture wallets scenario",
"Latencies for 100 fixture wallets",
"Latencies for 2 fixture wallets with 10 txs scenario",
"Latencies for 2 fixture wallets with 20 txs scenario",
"Latencies for 2 fixture wallets with 100 txs scenario",
Expand Down
2 changes: 1 addition & 1 deletion helpers/app.rb
Expand Up @@ -34,7 +34,7 @@ def nighbuild_results_table(res)
</thead>
<tbody>
}
res.sort_by{|r| -r[:bench_name].reverse }.each do |m|
res.each do |m|
table += %Q{
<tr>
<td scope="row">
Expand Down
6 changes: 6 additions & 0 deletions views/restoration_graphs.erb
Expand Up @@ -44,6 +44,9 @@ when "all"
<%= restoration_graph dataset, "0.1-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "0.2-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "0.4-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "1-wallets-to-0.1", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "10-wallets-to-0.01", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "100-wallets-to-0.01", url, [params[:type_of_measurement]] %> <br/>
</div>
<div class="col">
<%= restoration_graph dataset, "0-percent-rnd", url, [params[:type_of_measurement]] %> <br/>
Expand All @@ -59,6 +62,9 @@ when "Seq"
<%= restoration_graph dataset, "0.1-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "0.2-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "0.4-percent-seq", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "1-wallets-to-0.1", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "10-wallets-to-0.01", url, [params[:type_of_measurement]] %> <br/>
<%= restoration_graph dataset, "100-wallets-to-0.01", url, [params[:type_of_measurement]] %> <br/>

<%
when "Rnd"
Expand Down

0 comments on commit da78eb4

Please sign in to comment.