Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange, strange performance impact on Windows #2062

Open
Inversion-des opened this issue Jun 12, 2019 · 0 comments
Open

Strange, strange performance impact on Windows #2062

Inversion-des opened this issue Jun 12, 2019 · 0 comments
Labels

Comments

@Inversion-des
Copy link

After some investigation in my app I found that Pry session has a significant impact on the performance of requests to MongoDB.

I have prepared a test set to show this — https://gist.github.com/Inversion-des/18cc3a25f01450f98cbfdd66dc0d735d
Here are my results — https://gist.github.com/Inversion-des/40fa039a13f9f5ccd5b5f96c62bcfb54.

As you can see, the active Pry session makes some requests 3-10 times slower.
Is it ok, or I'm doing something wrong?

And how can we explain that after closing the Pry session some requests become 3-6 times faster??? And it is not some random result, it is a stable effect.

I checked that only "require 'pry'" has no effect, you need to start and exit the session.

I checked that there are no such effects on Linux.

Environment:

  • Windows 10
  • Ruby v2.5.5.157 (2019-03-15) [x64-mingw32]
  • Pry: v0.12.2
  • Mongo: v2.9.0.rc0, BSON: v4.5.0
@kyrylo kyrylo added the windows label Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants