benchmark 0.4.0 → 0.4.1

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: 145433cc28066cac5af1cb90961edfde1bd7b54e2ac05357874fb2f4be169a19
4
- data.tar.gz: 3732c4e2aaef0eaf7ef4d9513e2bb5116ef18ee7e74546345ccb88f1b3bbddc2
3
+ metadata.gz: 5c8a929d80c7226cb317950efed766404d6dff1f921c0c9235ac5c812bed298b
4
+ data.tar.gz: 2f7a36ecb752ab4505fd7cbf731c8ae3b160972b2b500821e75243e2f7f8b7ae
5
5
  SHA512:
6
- metadata.gz: a11e3910a7c5a636d7993c80ba736682c41a407c3b5d18fe936096c383ffb7c8781a8fae4013760271c05a819c8f126cf17835e91d327c3cb7066e735aed3272
7
- data.tar.gz: 3d003fd533f1b4291ac21cdb6b02b93ebbb19e6ca5f7a90dd677416321c49fa2713cc75ccd9a92a89ccdc62d0e0a3cf48f6c2c671ae8935854194fbecc9eafee
6
+ metadata.gz: 58043fc0c11da02f8abc4fcd0535eee0724d7950e0c593c8079077869c473e1c36a9dfd69b559e8761d1c79fc461f2cb2fcba68d8b3f16e4bdd40a2d1a90cba8
7
+ data.tar.gz: 9e620a007cb7c9d7beaf15779cf160be1b4726fe49791a229048dd6d1730dba490e7ac1f9f614b9eb466b84eb6140b84634fcaa08c8b4d0c0e5e2176f68f972e
@@ -23,7 +23,7 @@ jobs:
23
23
 
24
24
  steps:
25
25
  - name: Harden Runner
26
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
26
+ uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
27
27
  with:
28
28
  egress-policy: audit
29
29
 
@@ -36,7 +36,7 @@ jobs:
36
36
  ruby-version: ruby
37
37
 
38
38
  - name: Publish to RubyGems
39
- uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
39
+ uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
40
40
 
41
41
  - name: Create GitHub release
42
42
  run: |
data/README.md CHANGED
@@ -35,7 +35,7 @@ On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates:
35
35
  0.350000 0.400000 0.750000 ( 0.835234)
36
36
  ```
37
37
 
38
- This report shows the user CPU time, system CPU time, the sum of the user and system CPU times, and the elapsed real time. The unit of time is seconds.
38
+ This report shows the user CPU time, system CPU time, the total time (sum of user CPU time, system CPU time, children's user CPU time, and children's system CPU time), and the elapsed real time. The unit of time is seconds.
39
39
 
40
40
  Do some experiments sequentially using the #bm method:
41
41
 
data/lib/benchmark.rb CHANGED
@@ -30,8 +30,9 @@
30
30
  #
31
31
  # 0.350000 0.400000 0.750000 ( 0.835234)
32
32
  #
33
- # This report shows the user CPU time, system CPU time, the sum of
34
- # the user and system CPU times, and the elapsed real time. The unit
33
+ # This report shows the user CPU time, system CPU time, the total time
34
+ # (sum of user CPU time, system CPU time, children's user CPU time,
35
+ # and children's system CPU time), and the elapsed real time. The unit
35
36
  # of time is seconds.
36
37
  #
37
38
  # * Do some experiments sequentially using the #bm method:
@@ -121,7 +122,7 @@
121
122
 
122
123
  module Benchmark
123
124
 
124
- VERSION = "0.4.0"
125
+ VERSION = "0.4.1"
125
126
 
126
127
  BENCHMARK_VERSION = "2002-04-25" # :nodoc:
127
128
 
@@ -503,7 +504,7 @@ module Benchmark
503
504
  # accepts the following extensions:
504
505
  #
505
506
  # <tt>%u</tt>:: Replaced by the user CPU time, as reported by Tms#utime.
506
- # <tt>%y</tt>:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem")
507
+ # <tt>%y</tt>:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem")
507
508
  # <tt>%U</tt>:: Replaced by the children's user CPU time, as reported by Tms#cutime
508
509
  # <tt>%Y</tt>:: Replaced by the children's system CPU time, as reported by Tms#cstime
509
510
  # <tt>%t</tt>:: Replaced by the total CPU time, as reported by Tms#total
@@ -511,7 +512,7 @@ module Benchmark
511
512
  # <tt>%n</tt>:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame")
512
513
  #
513
514
  # If +format+ is not given, FORMAT is used as default value, detailing the
514
- # user, system and real elapsed time.
515
+ # user, system, total and real elapsed time.
515
516
  #
516
517
  def format(format = nil, *args)
517
518
  str = (format || FORMAT).dup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2025-05-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: a performance benchmarking library
14
14
  email:
@@ -37,7 +37,7 @@ licenses:
37
37
  metadata:
38
38
  homepage_uri: https://github.com/ruby/benchmark
39
39
  source_code_uri: https://github.com/ruby/benchmark
40
- post_install_message:
40
+ post_install_message:
41
41
  rdoc_options: []
42
42
  require_paths:
43
43
  - lib
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubygems_version: 3.5.11
56
- signing_key:
56
+ signing_key:
57
57
  specification_version: 4
58
58
  summary: a performance benchmarking library
59
59
  test_files: []