In reference to a posting in another thread I did a brief comparison of debug times between Visual Studio 2010 and 2012 (Universal version) running on my Windows 8 Enterprise development system. Can someone try this and confirm my findings as I’m wondering if some special tools that I have installed with VS2012 are impacting my timings.
First the setup, the simplest app I could think of, a Hydra board flashing its debug LED every second. A new project was started for each version of VS to avoid any impact of conversion.
namespace DebugTiming
{
public partial class Program
{
private GT.Timer _timer = new GT.Timer(1000);
private bool _flash;
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
/*******************************************************************************************
Modules added in the Program.gadgeteer designer view are used by typing
their name followed by a period, e.g. button. or camera.
Many modules generate useful events. Type +=<tab><tab> to add a handler to an event, e.g.:
button.ButtonPressed +=<tab><tab>
If you want to do something periodically, use a GT.Timer and handle its Tick event, e.g.:
GT.Timer timer = new GT.Timer(1000); // every second (1000ms)
timer.Tick +=<tab><tab>
timer.Start();
*******************************************************************************************/
// Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
Debug.Print("Program Started"); <<<<<--- When the debug reached a breakpoint here the time was stopped
_timer.Tick += new GT.Timer.TickEventHandler(_timer_Tick);
_timer.Start();
}
void _timer_Tick(GT.Timer timer)
{
_flash = !_flash;
Mainboard.SetDebugLED(_flash);
}
}
}
Times
Initial Compile and Debug
VS2010 - 16.92 sec
VS2012 - 35.35 sec
No code changes, just debug runs (2 runs)
VS2010 - 11.65 sec, 11.54 sec
VS2012 - 23.24 sec, 22.74 sec
Next I let ReSharper have its way with the code in removing unused usings and references and then did a build debug run
VS2010 - 15.61 sec
VS2012 - 29.70 sec
No code changes, just debug runs (2 runs)
VS2010 - 11.37sec, 11.17sec
VS2012 - 21.43sec, 22.21sec
So on my machine and with my Visual Studio setup it does appear that VS2010 is faster, but like I said can someone try this and let me know.