<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/benchmark/test_benchmark.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/benchmark] Adjust ljust Benchmark#bm with labels was not using the highest length among the labels to adjust the correct ljust. Instead of printing the result during the report generation, now it is waiting to print the result once it is generated.</title>
<updated>2024-11-08T02:32:30+00:00</updated>
<author>
<name>Kaíque Kandy Koga</name>
<email>kaiquekandykoga@gmail.com</email>
</author>
<published>2022-08-08T17:53:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9523f53465bff9e77dfeba82526112e2de91bdb4'/>
<id>9523f53465bff9e77dfeba82526112e2de91bdb4</id>
<content type='text'>
Benchmark.bm { |x|
  x.item("aaaa") { 1 }
  x.item("aaaaaaaa") { 0 }
}

After

              user     system      total        real
aaaa      0.000005   0.000002   0.000007 (  0.000003)
aaaaaaaa  0.000001   0.000001   0.000002 (  0.000002)

Before

       user     system      total        real
aaaa  0.000005   0.000001   0.000006 (  0.000003)
aaaaaaaa  0.000002   0.000001   0.000003 (  0.000003)

https://github.com/ruby/benchmark/commit/3e74533ead
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Benchmark.bm { |x|
  x.item("aaaa") { 1 }
  x.item("aaaaaaaa") { 0 }
}

After

              user     system      total        real
aaaa      0.000005   0.000002   0.000007 (  0.000003)
aaaaaaaa  0.000001   0.000001   0.000002 (  0.000002)

Before

       user     system      total        real
aaaa  0.000005   0.000001   0.000006 (  0.000003)
aaaaaaaa  0.000002   0.000001   0.000003 (  0.000003)

https://github.com/ruby/benchmark/commit/3e74533ead
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/benchmark] Add comment about terminating newline in captions; fix test method name.</title>
<updated>2021-04-22T02:51:37+00:00</updated>
<author>
<name>Keith Bennett</name>
<email>keithrbennett@gmail.com</email>
</author>
<published>2021-03-03T20:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4f39a35b60de7fe80ace6978aae3346f0d76ced4'/>
<id>4f39a35b60de7fe80ace6978aae3346f0d76ced4</id>
<content type='text'>
https://github.com/ruby/benchmark/commit/02ce298d3e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/benchmark/commit/02ce298d3e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/benchmark] Adds `Tms#to_h`</title>
<updated>2021-02-08T04:06:17+00:00</updated>
<author>
<name>Keith Bennett</name>
<email>keithrbennett@gmail.com</email>
</author>
<published>2021-02-08T04:02:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3a7ff66abc0c389851ab3c5cd0ac53ebe0647eec'/>
<id>3a7ff66abc0c389851ab3c5cd0ac53ebe0647eec</id>
<content type='text'>
[Feature #17601]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Feature #17601]
</pre>
</div>
</content>
</entry>
<entry>
<title>Aliases capture_output to capture_io for test-unit compatiblity.</title>
<updated>2019-08-08T08:19:23+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2019-08-08T08:19:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b39efb163dd97a6b2c92cac3d2b1c19f898d0c04'/>
<id>b39efb163dd97a6b2c92cac3d2b1c19f898d0c04</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/benchmark.rb: Specify frozen_string_literal: true.</title>
<updated>2017-01-03T02:00:01+00:00</updated>
<author>
<name>kazu</name>
<email>kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-01-03T02:00:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=aa710736b48112f8a1d4e48e2de932a1ff71327a'/>
<id>aa710736b48112f8a1d4e48e2de932a1ff71327a</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Add frozen_string_literal: false for all files</title>
<updated>2015-12-16T05:07:31+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2015-12-16T05:07:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3e92b635fb5422207b7bbdc924e292e51e21f040'/>
<id>3e92b635fb5422207b7bbdc924e292e51e21f040</id>
<content type='text'>
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Ruby can delay arbitrarily because Ruby is not a realtime system, </title>
<updated>2014-09-02T15:47:53+00:00</updated>
<author>
<name>akr</name>
<email>akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2014-09-02T15:47:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50190956c261986f96025a7a2b4b12cc51507448'/>
<id>50190956c261986f96025a7a2b4b12cc51507448</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>test_benchmark.rb: use assert_in_epsilon</title>
<updated>2014-08-31T02:49:50+00:00</updated>
<author>
<name>nobu</name>
<email>nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2014-08-31T02:49:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d723b930387e992a1d632a5d20052c789f229d41'/>
<id>d723b930387e992a1d632a5d20052c789f229d41</id>
<content type='text'>
* test/benchmark/test_benchmark.rb (test_realtime_output): use
  assert_in_epsilon which compares in relative range, instead of
  assert_in_delta which compares in absolute range.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/benchmark/test_benchmark.rb (test_realtime_output): use
  assert_in_epsilon which compares in relative range, instead of
  assert_in_delta which compares in absolute range.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>test_benchmark.rb: extend sleep time</title>
<updated>2014-08-30T06:18:57+00:00</updated>
<author>
<name>nobu</name>
<email>nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2014-08-30T06:18:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=42e5ff998bc70698131a06120f07d1e12cdabfc3'/>
<id>42e5ff998bc70698131a06120f07d1e12cdabfc3</id>
<content type='text'>
* test/benchmark/test_benchmark.rb: extend sleep time, as 1ms is
  too short on some environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/benchmark/test_benchmark.rb: extend sleep time, as 1ms is
  too short on some environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/benchmark.rb: speedup by reducing allocations</title>
<updated>2014-08-24T02:03:06+00:00</updated>
<author>
<name>normal</name>
<email>normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2014-08-24T02:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=249bd1ed2a00c9c3defdd09224b22a6691f73789'/>
<id>249bd1ed2a00c9c3defdd09224b22a6691f73789</id>
<content type='text'>
* lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK
  (realtime): use Process.clock_gettime(BENCHMARK_CLOCK)
  [Feature #10165]

* test/benchmark/test_benchmark.rb (test_realtime_output): new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK
  (realtime): use Process.clock_gettime(BENCHMARK_CLOCK)
  [Feature #10165]

* test/benchmark/test_benchmark.rb (test_realtime_output): new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
