Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6255545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:23:07+00:00 2026-05-24T14:23:07+00:00

I had issues with debugging some very complex integration test in our application. The

  • 0

I had issues with debugging some very complex integration test in our application. The test involves setting environment, deploying database and tested code uses a lot of database queries with NHibernate, Spring.NET (DI, AoP, transactions, …), multithreading and some network activity when communicating with integration platform (includes calls to native dlls).

I have two systems where I work with the same code base:

Notebook

  • i7 (2 cores with HT = 4 logical CPUs), 4GB RAM, 5400 rpm disk, Win 7 64bit

Virtual machine (Oracle Virtual Box)

  • Host: i7 (4 cores with HT = 8 logical CPUs, 12 GB RAM, system runs from SSD, virtual machine from 7200 rpm disk, Win 7 64bit)
  • Virtual machine: 4 cores assigned, 8 GB RAM assigned, Win 2008 R2 Enterprise (64 bit)
  • VPN for network communication
  • No other virtual machine runs on the host

Now if I run the test without debugging the execution time is almost the same 12-15s (so network communication should not be the issue) but if I run the test with debugging it takes less then 2 minutes on notebook but more then 4 minutes on the virtual machine (I need to debug some code at very end of the test). I would expect that virtual machine will perform better then notebook but it is more then two times slower!

The test code uses NUnit, Spring.NET test base classes and it runs from VS 2010 Ultimate + Resharper test session.

It is proof of concept code so unit test coverage was quite low. I wrote some additional unit tests to test as much code as possible separately but still some parts are not written in the way they would be easy to cover with unit tests.

Side note: the point of this proof-of-concept is among others identify these parts for further refactoring, not to refactor the code now.

What can cause the speed difference?

Edit:

When I was writing this question I thought about other reason not related to programming itself – I put separate question on SuperUser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:23:07+00:00Added an answer on May 24, 2026 at 2:23 pm

    The problem was probably caused by anitivirus on the host machine. I made exceptions from scanning for virtual disks as described in linked SuperUser question and performance was improved.

    Another performance boost was using attaching to debugger on demand by using Debugger class (just for fixing issues) instead of running whole test attached to debugger.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have had issues with Mootools not being very backward compatible specifically in the
Has anyone had luck with removing large amount of issues from a jira database
We're in the middle of debugging some memory issues. We were watch 5 instances
I upgraded from SQl server 05 to 08 and had a few issues. After
I recently resolved an issue my VB6 application had when saving large binary objects
What are some best practises for prototyping a filesystem? I've had an attempt in
Quite recently, I asked a question about debugging a seg fault: What are some
I've had an issue with Visual Studio that has been bugging me for some
here is the problem, today I had a bad time debugging my project, the
Our team has been testing our application with Selenium as it's heavily JavaScript driven

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.