[#102393] [Ruby master Feature#17608] Compact and sum in one step — sawadatsuyoshi@...

Issue #17608 has been reported by sawa (Tsuyoshi Sawada).

13 messages 2021/02/04

[#102438] [Ruby master Bug#17619] if false foo=42; end creates a foo local variable set to nil — pkmuldoon@...

Issue #17619 has been reported by pkmuldoon (Phil Muldoon).

10 messages 2021/02/10

[#102631] [Ruby master Feature#17660] Expose information about which basic methods have been redefined — tenderlove@...

Issue #17660 has been reported by tenderlovemaking (Aaron Patterson).

9 messages 2021/02/27

[#102639] [Ruby master Misc#17662] The herdoc pattern used in tests does not syntax highlight correctly in many editors — eregontp@...

Issue #17662 has been reported by Eregon (Benoit Daloze).

13 messages 2021/02/27

[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...

Issue #17664 has been reported by ciconia (Sharon Rosner).

23 messages 2021/02/28

[ruby-core:102422] [Ruby master Feature#17614] Improve performance Float#negative? and Float#positive?

From: gamelinks007@...
Date: 2021-02-09 04:01:39 UTC
List: ruby-core #102422
Issue #17614 has been reported by S_H_ (Shun Hiraoka).

----------------------------------------
Feature #17614: Improve performance Float#negative? and Float#positive?
https://bugs.ruby-lang.org/issues/17614

* Author: S_H_ (Shun Hiraoka)
* Status: Open
* Priority: Normal
----------------------------------------
Improve performance `Float#negative?` and `Float#positive?`(write in Ruby)

benchmark:
```yml
prelude: |
  flo = 4.2
benchmark:
  negative?: |
    flo.negative?
  positive?: |
    flo.positive?
loop_count: 20000000

```

result:
```bash
sh@DESKTOP-L0NI312:~/rubydev/build$ make benchmark/benchmark.yml -e COMPARE_RUBY=~/.rbenv/shims/ruby -e BENCH_RUBY=../install/bin/ruby
generating vm_call_iseq_optimized.inc
vm_call_iseq_optimized.inc unchanged
compare-ruby: ruby 3.1.0dev (2021-02-08T12:46:07Z master 4186cd6435) [x86_64-linux]
built-ruby: ruby 3.1.0dev (2021-02-08T13:12:22Z improve_float_method 0dbc6d3f5f) [x86_64-linux]
# Iteration per second (i/s)

|           |compare-ruby|built-ruby|
|:----------|-----------:|---------:|
|negative?  |     80.954M|   94.642M|
|           |           -|     1.17x|
|positive?  |     79.471M|   95.963M|
|           |           -|     1.21x|
```

`COMPARE_RUBY` is `ruby 3.1.0dev (2021-02-08T12:46:07Z master 4186cd6435) [x86_64-linux]`. BENCH_RUBY is ahead of `ruby 3.1.0dev (2021-02-08T12:46:07Z master 4186cd6435) [x86_64-linux]`.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next