benchmark-ips 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b0795c8f86b241fbf0e02d13401e209cac488ad
4
- data.tar.gz: bd46b20f496f074e93c33a378da27e7ae225fe62
3
+ metadata.gz: 8acfa69c132c3a56ee713ef09c4d2fb1882bf4ab
4
+ data.tar.gz: 53529931e75cc105984b7a3b546450c7eb0a9f3f
5
5
  SHA512:
6
- metadata.gz: f7d3b4ca509f2fcca1ec8f5eef9b0f2d0e2bc218abe7d69b359f9c41a64767dc19b16f8be1ee6bafd3c33d1f738ae0cc54fdbb12922d67cecd0092f885dc8c42
7
- data.tar.gz: 3ca470bf622922c813cf8f6f6a82a4124b681d172cb1662488507a020ea314244ad012ee6ae724c81509135b8ce24539da4492dc8f0a7711c80b98f98974310d
6
+ metadata.gz: aaef11c1b2f020783fe2b3bc8e7884e3a58849dfa1adcf7b4f28365f07b4ba960acfcb8b44490c8e70479f8328e7a2ac5e39b4fcbe381c52943ad63ff1763115
7
+ data.tar.gz: 2bfa31d9ea71e9af04a9aae4f72932c3de6a1b87ebaae97e0b0634740a00cdbfaf6fc796aac5793796877f4fb1bffe416cd7c065ac63558992b0e814fcc891c7
@@ -1,3 +1,17 @@
1
+ === 2.1.1 / 2015-01-12
2
+
3
+ * 1 minor fix:
4
+ * Don't send label through printf so that % work directly
5
+
6
+ * 1 documenation changes:
7
+ * Use HEREDOC and wrap at 80 chars for example result description
8
+
9
+ * 1 usage fix:
10
+ * Add gemspec for use via bundler git
11
+
12
+ * 1 PR merged:
13
+ * Merge pull request #24 from zzak/simple-format-result-description
14
+
1
15
  === 2.1.0 / 2014-11-10
2
16
 
3
17
  * Documentation changes:
data/README.md CHANGED
@@ -64,17 +64,17 @@ This will generate the following report:
64
64
 
65
65
  ```
66
66
  Calculating -------------------------------------
67
- addition 71254 i/100ms
68
- addition2 68658 i/100ms
69
- addition3 83079 i/100ms
67
+ addition 71.254k i/100ms
68
+ addition2 68.658k i/100ms
69
+ addition3 83.079k i/100ms
70
70
  addition-test-long-label
71
- 70129 i/100ms
71
+ 70.129k i/100ms
72
72
  -------------------------------------------------
73
- addition 4955278.9 (±8.7%) i/s - 24155106 in 5.002163s
74
- addition2 24011974.8 (±9.5%) i/s - 114246912 in 4.995446s
75
- addition3 23958619.89.9%) i/s - 115064415 in 4.996349s
73
+ addition 4.955M 8.7%) i/s - 24.155M
74
+ addition2 24.011M 9.5%) i/s - 114.246M
75
+ addition3 23.958M10.1%) i/s - 115.064M
76
76
  addition-test-long-label
77
- 5014756.0 (±9.1%) i/s - 24545150 in 5.009754s
77
+ 5.014M 9.1%) i/s - 24.545M
78
78
 
79
79
  Comparison:
80
80
  addition2: 24011974.8 i/s
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
5
5
 
6
6
  Hoe.plugin :minitest
7
7
 
8
- Hoe.spec 'benchmark-ips' do
8
+ hoe = Hoe.spec 'benchmark-ips' do
9
9
  developer('Evan Phoenix', 'evan@phx.io')
10
10
 
11
11
  self.readme_file = 'README.md'
@@ -13,4 +13,13 @@ Hoe.spec 'benchmark-ips' do
13
13
  license "MIT"
14
14
  end
15
15
 
16
+ file "#{hoe.spec.name}.gemspec" => ['Rakefile', "lib/benchmark/ips.rb"] do |t|
17
+ puts "Generating #{t.name}"
18
+ File.open(t.name, 'wb') { |f| f.write hoe.spec.to_ruby }
19
+ end
20
+
21
+ desc "Generate or update the standalone gemspec file for the project"
22
+ task :gemspec => ["#{hoe.spec.name}.gemspec"]
23
+
24
+
16
25
  # vim: syntax=ruby
@@ -11,7 +11,7 @@ module Benchmark
11
11
  module IPS
12
12
 
13
13
  # Benchmark-ips Gem version.
14
- VERSION = "2.1.0"
14
+ VERSION = "2.1.1"
15
15
 
16
16
  # CODENAME of current version.
17
17
  CODENAME = "Springtime Hummingbird Dance"
@@ -207,7 +207,7 @@ module Benchmark
207
207
  @suite.warming item.label, @warmup if @suite
208
208
 
209
209
  unless @quiet
210
- $stdout.printf item.label_rjust
210
+ $stdout.print item.label_rjust
211
211
  end
212
212
 
213
213
  Timing.clean_env
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark-ips
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Phoenix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest