rubybench_runner 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -26
- data/lib/rubybench_runner/base_runner.rb +7 -0
- data/lib/rubybench_runner/rails_runner.rb +6 -2
- data/lib/rubybench_runner/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65bff81b60cf3bc552aae4af3621d0fedb582e3ea60f9277d1972587a0636870
|
|
4
|
+
data.tar.gz: 5caa5511d7afe1a971fbd9389611f818f55d2560359d6698285a34834f9a317c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: effa992a9c805bdfdf3bc9678278db66107e7f7b8d829af54c71d3359563d5477bc24ec63ee16ab63567dc59e92bd0eee7ca3df2f3c3b968a53be415bc77d735
|
|
7
|
+
data.tar.gz: 0ac1c39ef5778c309884c660131d6b86fe3714c015357b841e1d27c105b6e60e60e5c6e005e091f9ee62d7310320fe2a65259acf61d5703ef78dc2a876ba8d4b
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -1,38 +1,16 @@
|
|
|
1
1
|
# RubybenchRunner
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Add this line to your application's Gemfile:
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
gem 'rubybench_runner'
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
And then execute:
|
|
16
|
-
|
|
17
|
-
$ bundle
|
|
18
|
-
|
|
19
|
-
Or install it yourself as:
|
|
20
|
-
|
|
21
|
-
$ gem install rubybench_runner
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
TODO: Write usage instructions here
|
|
3
|
+
This gem serves as a CLI tool to run the benchmarks at rubybench.org locally. Right now it's limited to the Rails benchmark. More details and installation/usage instructions are available [here](https://rubybench.org/run-locally).
|
|
26
4
|
|
|
27
5
|
## Development
|
|
28
6
|
|
|
29
7
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
8
|
|
|
31
|
-
|
|
9
|
+
You can also use the `exe/rubybench_runner` executable to test and preview your changes.
|
|
32
10
|
|
|
33
11
|
## Contributing
|
|
34
12
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
13
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/OsamaSayegh/rubybench_runner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
36
14
|
|
|
37
15
|
## License
|
|
38
16
|
|
|
@@ -40,4 +18,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
40
18
|
|
|
41
19
|
## Code of Conduct
|
|
42
20
|
|
|
43
|
-
Everyone interacting in the RubybenchRunner project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
21
|
+
Everyone interacting in the RubybenchRunner project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/OsamaSayegh/rubybench_runner/blob/master/CODE_OF_CONDUCT.md).
|
|
@@ -222,6 +222,13 @@ module RubybenchRunner
|
|
|
222
222
|
|
|
223
223
|
log("Installing gems...")
|
|
224
224
|
comm = "bundle install"
|
|
225
|
+
if opts.db == "mysql2"
|
|
226
|
+
comm += " --without postgres"
|
|
227
|
+
elsif opts.db == "postgres"
|
|
228
|
+
comm += " --without mysql"
|
|
229
|
+
else
|
|
230
|
+
comm += " --without mysql postgres"
|
|
231
|
+
end
|
|
225
232
|
comm += " > /dev/null 2>&1" if !opts.verbose
|
|
226
233
|
Dir.chdir(File.dirname(gemfile_location)) do
|
|
227
234
|
system(comm)
|
|
@@ -32,8 +32,12 @@ module RubybenchRunner
|
|
|
32
32
|
|
|
33
33
|
gem 'rails', path: '#{@repo_path}'
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
group :mysql do
|
|
36
|
+
gem 'mysql2', '0.5.2'
|
|
37
|
+
end
|
|
38
|
+
group :postgres do
|
|
39
|
+
gem 'pg', '1.1.4'
|
|
40
|
+
end
|
|
37
41
|
gem 'benchmark-ips', '~> 2.7.2'
|
|
38
42
|
gem 'redis', '~> 4.1.2'
|
|
39
43
|
gem 'puma', '~> 3.12.1'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubybench_runner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Osama Sayegh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
|
75
75
|
files:
|
|
76
76
|
- ".gitignore"
|
|
77
77
|
- ".travis.yml"
|
|
78
|
+
- CHANGELOG.md
|
|
78
79
|
- CODE_OF_CONDUCT.md
|
|
79
80
|
- Gemfile
|
|
80
81
|
- Gemfile.lock
|