performance-comparison

SQL Server table perf comparison -- temp tables, or table variables? Or something else?

In SQL Server, I'm trying to do a comparative analysis between two different table structures with regard to insert performance given different keys. Does it matter if I use a table variable to do this testing, or should I use a temporary table? Or do I need to go to the trouble of actually creating the tables and indexes? Specificall...

C# vs C++ performance comparison

Possible Duplicate: How much faster is C++ than C#? Hello! Are there any cases in which C# is faster (has better performance) than C++ in practical use? I heard that generic collections are a significant performance advantage over stl - is that true? Has native code written in C# (unsafe block, pin pointers, Marshal...) the...

Which of those 2 MySQL queries is more efficient?

SELECT * FROM openorders_tracking WHERE id NOT IN (SELECT tracking_id FROM openorders_commission) SELECT * FROM openorders_tracking LEFT JOIN openorders_commission ON openorders_tracking.id=openorders_commission.tracking_id WHERE openorders_commission.id IS NULL I'm wondering both specifically for this query, and in general if...

SQL Sorting: server vs. client

Most of the times, when it comes to sort some data, we have two options: Sort on the SQL server -- use ORDER BY clause Sort on client one we get the data from the database When would you use one over the other and why? ...

Which costs more while looping; assignment or an if-statement?

Consider the following 2 scenarios: boolean b = false; int i = 0; while(i++ < 5) { b = true; } OR boolean b = false; int i = 0; while(i++ < 5) { if(!b) { b = true; } } Which is more "costly" to do? If the answer depends on used language/compiler, please provide. My main programming language is Java. Please do n...

Performing unbiased program/script performance comparison

I want to perform a comparison of multiple implementations of basically the same algorithm, written in Java, C++ and Python, the latter executed using Pypy, Jython and CPython on a Mac OS X 10.6.4 Macbook Pro with normal (non-SSD) HDD. It's a "decode a stream of data from a file" type of algorithm, where the relevant measurement is tota...

C++ backend with C# frontend?

Hi guys, I have a project in which I'll have to process 100s if not 1000s of messages a second and process/plot this data on graphs accordingly (The user will search for a set of data in which the graph will be plotted in real time, not literally having to plot 1000s of values on a graph). I'm having trouble understanding using dlls fo...