question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.2.3 performance issue

See original GitHub issue

Hi,

I run into a performance issue with 0.2.3 version. 0.2.2 works just fine. Below the sample from profiler output for test function. Also the profiler shows muchbigger output for 0.2.3.

from freezegun import freeze_time
import datetime
def test():
    with freeze_time('2014-10-10'):
        print datetime.datetime.now()

0.2.3:

ncalls  tottime  percall  cumtime  percall filename:lineno(function)
1    0.010    0.010    0.395    0.395 api.py:264(stop)
1    0.009    0.009    0.448    0.448 api.py:223(start)
1    0.000    0.000    0.395    0.395 api.py:220(__exit__)
1    0.000    0.000    0.448    0.448 api.py:217(__enter__)

0.2.2:

ncalls  tottime  percall  cumtime  percall filename:lineno(function)
1    0.001    0.001    0.003    0.003 api.py:223(start)
1    0.001    0.001    0.002    0.002 api.py:255(stop)
1    0.000    0.000    0.002    0.002 api.py:220(__exit__)
1    0.000    0.000    0.003    0.003 api.py:217(__enter__)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:4
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
pokidoveacommented, Nov 18, 2016

ping. The problem is urgent. I have about 0.5 sec per api.py:223(start) call. It is called 127 times, so total time is ~1 minute only for freezegun start.

3reactions
pokidoveacommented, Feb 9, 2017

I wrote my own simple tool https://github.com/pokidovea/immobilus It works on another principle. it is much faster.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HellSign v1.0.2.3 Patch Notes: Performance Issues Fixed ...
Some of the performance issues with the game such as stuttering and FX visibility issues were fixed. The game got a small VRAM...
Read more >
Rejection Reasons: 0.2.3 - Instruc… | Apple Developer Forums
Hi,. For one of our apps we submitted a minor update and received a 'Rejection Reasons: 0.2.3' (Guideline 2.3 - Performance - Accurate...
Read more >
Network performance issues, upgrade notes to 0.2.3
Network performance issues, upgrade notes to 0.2.3 ... We ran a stress test late last week that exposed quite a few issues with...
Read more >
Upbge 0.2.4 performance issue - Game Engine - Blender Artists
Hi, I have noticed that graphics quality affect physics performance, animations speed and overall game speed. For instance, when shadows are ...
Read more >
Evaluate (0.2)^3 - Mathway
Algebra Examples. Popular Problems · Algebra. Evaluate (0.2)^3. (0.2)3 ( 0.2 ) 3. Step 1. Raise 0.2 0.2 to the power of 3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found