Skip to content

Commit 6bf229e

Browse files
committed
Revert "Promote the rubybench_runner gem (#266)"
This reverts commit 0fee19a. This gem is not officially under Rubybench and unreviewed yet so I'm reverting this for now.
1 parent f75806b commit 6bf229e

File tree

6 files changed

+0
-51
lines changed

6 files changed

+0
-51
lines changed

app/assets/stylesheets/modules/_run-locally.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/helpers/repos_helper.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/views/repos/_script.html.haml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
- if script_url = benchmark.script_url
2-
- if show_gem_tip
3-
%h4.l-align-center
4-
!= t('repos.run_locally_tip', path: run_locally_path)
52
%h2.l-align-center
63
= t('repos.script_title', graph_name: benchmark.category.humanize)
74

app/views/static_pages/run_locally.html.haml

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/locales/en.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ en:
5959
"%{category}" does not have any results. Please select another
6060
Benchmark Type.
6161
view_github: View on Github
62-
run_locally_tip: You can run this benchmark locally using the <code>rubybench_runner</code> gem. More details <a href="%{path}">here</a>.
6362

6463
index:
6564
commits_benchmark: Commits Benchmarks
@@ -108,34 +107,6 @@ en:
108107
desc: 'Script to set up new bare metal servers.'
109108
sponsors:
110109
title: Sponsors
111-
run_locally:
112-
title: Run locally
113-
instructions: |
114-
The <a href="https://rubygems.org/gems/rubybench_runner">rubybench_runner</a> gem allows you to run the benchmarks locally. Note the gem is still under development and it's currently limited to the Rails benchmarks. Here is how you can use it:
115-
<ul class="instructions-list">
116-
<li>Install the gem:
117-
<pre>gem install rubybench_runner</pre>
118-
</li>
119-
<li>Clone the Rails repository:
120-
<pre>git clone https://github.com/rails/rails.git</pre>
121-
</li>
122-
<li>Pick one of the <a href="https://rubybench.org/rails/rails/commits">available rails benchmarks</a> and copy the GitHub link of the script (it's the "View on Github" button).</li>
123-
<li>Run:
124-
<pre>rubybench_runner run rails &lt;script_url&gt; &lt;path_to_rails_clone&gt;</pre>
125-
</li>
126-
<li>If the benchmark requires a database server, then you need to specify the <code>--db</code> option. Run <code>rubybench_runner --help</code> for details.</li>
127-
</ul>
128-
<h3>Database server requirement</h3>
129-
Scripts that contain <code>activerecord</code> or <code>scaffold</code> in their names are the scripts that require a database server. Supported database servers are PostgreSQL and MySQL.
130-
<br>
131-
<br>
132-
If the benchmark you want to run requires a database server, then depending on the <code>--db</code> option that you specified, the gem will install either the <code>pg</code> or <code>mysql2</code> gems which require some packages to be installed on your system. For the <code>mysql2</code> gem, you can see the required packages <a href="https://github.com/brianmario/mysql2#configuration-options">in their README</a>. For the <code>pg</code> gem, you'll need to install the <code>postgresql</code> and <code>libpq-dev</code> packages using your system package manager. On Ubuntu that would be <code>sudo apt-get install postgresql libpq-dev</code>.
133-
<br>
134-
<h3>Configurations</h3>
135-
On the first run the gem will create a file called <code>.rubybench_runner_config</code> in your home directory. This file allows you to configure the name of the database that the gem will create to run the benchmarks, as well as the database user, host and port. If you have the database server running locally and it's configured to allow peer authentication, then you shouldn't need to change anything in this file (unless you want to change the database name which defaults to <code>rubybench</code>). Note that the database user must have sufficient privileges to create a database on the server.
136-
<br>
137-
<h3>Feedback</h3>
138-
If you want to report an issue in the gem, propose a feature or suggest an improvment to this guide, feel free to post at <a href="https://community.rubybench.org/">community.rubybench.org</a>.
139110

140111
top_nav:
141112
logo: RubyBench

config/routes.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
get 'hardware' => 'static_pages#hardware'
2020
get 'contributing' => 'static_pages#contribute', as: :contribute
2121
get 'sponsors' => 'static_pages#sponsors', as: :sponsors
22-
get 'run-locally' => 'static_pages#run_locally', as: :run_locally
2322
get 'benchmarks' => 'organizations#index'
2423
get ':organization_name/:repo_name/commits/overview' => 'repos#index', as: :overview
2524
get ':organization_name/:repo_name/commits' => 'repos#commits', as: :commits

0 commit comments

Comments
 (0)