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.

Improve performance when configuring fake method

See original GitHub issue

AssemblyExtesions.Name creates a new AssemblyName when I don’t think it has to. If I stop:

image

And garbage collection time drops from 16% to 6%.

Or if you like the diff format:

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslevesquecommented, Oct 6, 2018

Ah, I see. ProxyUtil.IsProxyType!

0reactions
thomaslevesquecommented, Jan 7, 2019

This change has been released in FakeItEasy 5.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

High performance mocking for load testing | by Marcel Dempers
Mocking is a concept of simulating the behavior of a real system in a controlled way. We can achieve mocking by building a...
Read more >
Fake timers override mocks on performance object #374
From what I get is that FakeTimers mock performance.now() etc... but is it possible to preserve values that were added to performance object...
Read more >
How to test software: mocking, stubbing, and contract testing
What is mock testing? Mocking means creating a fake version of an external or internal service that can stand in for the real...
Read more >
Isolating Code Under Test with Microsoft Fakes
Learn how Microsoft Fakes helps you isolate the code you are testing by replacing other parts of the application with stubs or shims....
Read more >
Timer Mocks
In the following example we enable fake timers by calling jest. ... a custom mock function for performance.mark() in jsdom environment:.
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