Skip to content

RSpec memory leak re-production script when having multiple runs in the same process

Notifications You must be signed in to change notification settings

iridakos/rspec-memory-issue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please check the following RSpec issue

rspec/rspec-core#2767

Usage

# Clone the repo
# Navigate to it
$ bundle install

Reproduce the leak

$ bundle exec ruby test.rb

On the 10.000th iteration the process' memory is at ~800Mb.

Confirm fix

$ WITH_FIX=true bundle exec ruby test.rb

The process' memory has reached a plateau - on the 10.000th iteration it is at ~33Mb.

About

RSpec memory leak re-production script when having multiple runs in the same process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%