benchmark_driver 0.16.3 → 0.16.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0286746ad8c7c0b6c5c5eaaa9e224c9a1e62785c55a5285053c9150eb2297f8a'
4
- data.tar.gz: 9cb1292f11551d0ad1de357532d8ae5b1b6b97ad666395c53e1ebc787221e536
3
+ metadata.gz: 7f9cf509e30003805a04ef225d6941f96b355f833121ef8bc3dcb35476a12569
4
+ data.tar.gz: d8709282ed2d0505322b124c68a6a618f3085f906ae3f503cf6b2333756c7d02
5
5
  SHA512:
6
- metadata.gz: 9bb68b47e082eff267c213968ef34684a032bbb93152cb592307114e787480a21237307be72a0b22f553b3a0102547abc662cf00fac0e797c92cc6078aecc34a
7
- data.tar.gz: a22277c75ef96e21c9dafda77a7d7fbe8ac279dfe7c48cf9c55bb02cd7c74597edc397cac7db24902ab05225f795ec10a0b01618e6fb401f4480a7b8ced3b0d6
6
+ metadata.gz: dcc32a63dc71bfa73a80f2e21adff057ef24baa939c17f613e7c26c4cd737c1345ecd713c5f4245eb8877fa08528d219e44a31b1dfe2c2924a683f003293a53f
7
+ data.tar.gz: deff92f21009fe2d306a49b100b3a04c1ec490f4658400573dc71345f276ffee99956c8c340cd0704548d99b6bb716ebd0d35c8e91b07692d32a79fa8b240830
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.16.4
2
+
3
+ - Fix broken output on `-o markdown --output-compare`
4
+
1
5
  # v0.16.3
2
6
 
3
7
  - Unset `GEM_PATH` and `GEM_HOME` in child processes to avoid warnings when using chruby
@@ -133,13 +133,9 @@ class BenchmarkDriver::Output::Markdown
133
133
  if context == worst
134
134
  result = '-'
135
135
  else
136
- result = result.values.first[1]
137
- if order == :min_by
138
- result = result.fdiv(worst_result)
139
- else
140
- result = best_result.fdiv(worst_result)
141
- end
142
- result = sprintf("%.2fx", result)
136
+ val = result.values.first[1]
137
+ ratio = val.fdiv(worst_result)
138
+ result = sprintf("%.2fx", ratio)
143
139
  end
144
140
  length = [context.name.length, NAME_LENGTH].max
145
141
  $stdout.printf("|%*s", length, result)
@@ -1,3 +1,3 @@
1
1
  module BenchmarkDriver
2
- VERSION = '0.16.3'
2
+ VERSION = '0.16.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.4.1
150
+ rubygems_version: 3.4.10
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Fully-featured accurate benchmark driver for Ruby