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 8875787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:04:03+00:00 2026-06-14T19:04:03+00:00

I am operating on the .NET Framework 4.5 using C# I wish to measure

  • 0

I am operating on the .NET Framework 4.5 using C#

I wish to measure code performance but have the additional complication that I would like to have a comparison between machines (different hardware).

One of the core goals is to come up with benchmarks that compare algorithms (algo X vs algo Y using dataset Z) which is fine if I consistently use the same exact hardware but I would also like to have the option to distribute these performance tests across many machines – which are mostly different.

How can I efficiently measure the performance of a particular machine?

I am currently using the System.Diagnostics.StopWatch class mixed with a Fibonacci suite, trying to measure how many sequences the machine can handle in order to use X ticks/milliseconds. However as you may already know this technique is not very precise.

Is the answer in Stopwatch.Frequency?

Anyone have any better suggestions?

ADDED INFORMATION —–

Example: Compare algorithms that are not multi-threaded (number of cores won’t matter) say like the difference between running a sequential scan and using a red/black tree.

  • 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-06-14T19:04:05+00:00Added an answer on June 14, 2026 at 7:04 pm

    simply: you can’t. Or at least, not reliably.

    For example, I once had a discussion with someone about static methods and threading in .NET, and I ran a test of a couple of machines. Running the same executable, the machine with single core outperformed the dual-core machine. Obviously the problem there was the .NET runtime using different internal algorithms to determine safety (ie it put more locks in on the dual-core machine than were needed on the single-core, or the runtime was different between the single-core workstation and the dual-core server). The point being that you can’t even run the same executable to get a different baseline.

    So if you ran algorithm X on machines A and B, and record the difference (lets say machine B was twice as fast), you cannot then run algorithm Y on machine A and assume that the algorithm would run twice as fast if executed on machine B.

    The complexity of the factors you’d have to take into account would be too great. All you can do is compare the same thing on different machines, if you’re testing machine performance, or different things on the same machine, etc.

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

Sidebar

Related Questions

I have problems during serialization/deserialization. I'm using a WCF service (that used .NET framework)
I have a list comprehension operating on elements of an .NET array like obj.arr
I have a small question: For example I'm using System.IO.File.Copy() method from .NET Framework.
Context Language: C# Platform Version: Microsoft .Net Framework 4.0 Operating System: Windows 7 Professional
I have some task regarding do operations on database using ADODB in Vb.NET. Can
I like operating systems and would eventually like to become a OS developer mostly
I have heard that applications created in .net can be run on linux and
I am working on a project in C#.NET using the .NET framework version 3.5.
I have an asp.net application which uses the web part framework to allow users
From Entity Framework using ASP .NET MVC 3.0, is it possible to use 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.