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

  • SEARCH
  • Home
  • 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 6010285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:05:40+00:00 2026-05-23T02:05:40+00:00

When I do small unit tests (small exe that calls my function from my

  • 0

When I do small unit tests (small exe that calls my function from my library, or calls a piece of code literally embedded before main(), it seems it takes 50 times quicker in Linux than in msvc:

1) In Linux:

vi test1.c; cut-and-paste includes.
cut-and-pase code. add int main(int
argc, char **argv) { declare_data;
call_my_function(); } :wq! cc test1.c
&& ./a.out done every step takes
seconds. if not, helper scripts make
it seconds.

2) In msvc:

create console project. until project
creation is finished, it is already
more time than whole (1). paste code.
fiddle with project settings. try to
pass argv. try to pass different argv.

It seems everything is x10 times much slower than in Linux.

In your experience, how small unittests can be created and done really quickly — in seconds — in msvc ?

  • 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-23T02:05:40+00:00Added an answer on May 23, 2026 at 2:05 am

    Nothing is stopping you from compiling and running your MSVC code from the command line. The actual compiler is a command-line tool, so if the IDE is getting in your way, just bypass it. You could even find a Windows port of Vi, and you’d have pretty much exactly the same workflow as on Linux.

    But if you choose to use a heavy-duty IDE which is designed for working with large code bases, then yes, there’ll be quite a bit of overhead.

    Unless you write a MSVC addin to make it faster and easier to do these things. (And if you do, please make it public, because a lot of us would find it useful. ;))

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

Sidebar

Related Questions

If someone has created a small diagnostic, internal web app that uses (unit) tests
I'm writing unit tests for a module in a small Javascript application. In order
I am trying to write some unit tests for a small web service written
Using Rails 3.0, I have a small bit of code that I seem to
For unit tests, demonstrations and Hibernate tasks I would like to use a small
I have never written unit tests before, for various reasons. I have a chance
As best-behaved as I try to be about keeping my unit tests disconnected from
We have a small wrapper class that uses ResourceManager to load string resources from
I am looking for a (small) library that helps me cleanly implement a front
Maintaining unit tests is difficult. I am sure that we all have experienced a

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.