Issue #16009 has been updated by ioquatix (Samuel Williams).


```
require 'benchmark'
  
require 'objspace'

# this line prohibit lazy sweep
# Thread.new{ObjectSpace.each_object{sleep}}

Benchmark.bm{|x|
  x.report{
    100.times{
      fibers = []

      2000.times do
        fiber = Fiber.new{Fiber.yield}.resume
        fibers << fiber
      end
    }
  }
}
```

----------------------------------------
Bug #16009: Performance regression in 2.7
https://bugs.ruby-lang.org/issues/16009#change-79696

* Author: ioquatix (Samuel Williams)
* Status: Closed
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 
* ruby -v: 
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------

```
Number is requests/s

dcf5c19c9f89d732da70a1a16a2fe60cd1999bcc          7561.82

c53f87943e53c96b86d50b496d2a410ff1245b4c          7534.09

d2003a6d392b3b0054d7528e2e731584196aefad          7467.44, 7458.18, 7111.09, 7293.74, 7493.13

f54aa6c5b286b2b44bcdb1958fc9b1ebfce3559e          7558.63

18e43e823106f15c8aaceb1f56874bdf67bc36a3          7439.23, 7356.25, 7437.61, 7489.07

7069f64c419ebb9a7fd3e48d81454148ed4b2fba          7580.31

a160b2f56716f70fa3e485ae89875da48baefc1d          7597.52

88449100bc6d23a00dbf3addb97665f4f606f2b8          7258.96, 7184.62, 7190.71 *** Performance regression

e0f0ab959e9a0fa3db8dfdb2a493b057d6e7541b          7145.69, 7061.17, 7217.51

4d9c3a8c2362b7d5973057435258e447ce733741          7276.46, 7203.8

498113d5d39a4227c2b9a9c11bea895fe316e6b9          7218.93

c55db6aa271df4a689dc8eb0039c929bf6ed43ff          7149.20
```



-- 
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>