performance

Determining the performance consequences of PHP code

How can you determine the performance consequences of your PHP code if you are not familiar with the internals? Are there ways to figure out how your code is being executed (besides simply load testing it)? I am looking for things like memory usage, execution time for algorithms. Perhaps Joel would say, "learn C, then read the internals...

Performance gain in compiling java to native code?

Is there any performance to be gained these days from compiling java to native code, or do modern hotspot compilers end up doing this over time anyway? ...

Name of the process with highest cpu usage

I have a Samurize config that shows a CPU usage graph similar to Task manager. How do I also display the name of the process with the current highest CPU usage percentage? I would like this to be updated, at most, once per second. Samurize can call a command line tool and display it's output on screen, so this could also be an opt...

What is the real overhead of try/catch in C#?

So, I know that try/catch does add some overhead and therefore isn't a good way of controlling process flow, but where does this overhead come from and what is it's actual impact? ...

How do you test the performance of a website?

Are there specific tools to perform the following job or there is a suite of tools that help me do the following: How can I check page load times? How can I track down a page that hogs memory? How can I track a page that consumes a lot of CPU cycles? I just want to glean from the experience of this forum and come across a holistic v...

Website performance monitoring tools

I have websites that we are performance tuning and wanted to know if anyone has a good tool for monitoring secure web sites? What I am looking for is a tool that can log on to a web site and test a few links and the performance. At least one of the links will access another web-based product using single sign on. I would set it up to ...

Website load testing

My team has just developed a website for a client and wants to test that it'll work under the expected usage for 50 simultaneous users. So the plan is to write a test program that will act as 50 simultaneous users. We need this test program to be able to: Be logged in with a cookie. Our session ids are not embedded in our URLs and w...

Profiling visualization tools?

I need to display profiling information pulled from a deeply embedded CPU, presenting it in a way which other developers on my team will be able to act upon. The profiling data is a snapshot of a cycle counter at the entry and exit of every function, so we have a call graph annotated with sub-microsecond timing accuracy. I'd prefer not t...

One big SQL Select statement or several small ones (Performance)?

Hi everyone, I'm building a PHP page with data sent from MySQL. Is it better to have 1 SELECT query with 4 table joins, or 4 small SELECT queries with no table join (I do select from an ID). Which is faster and what is the pro/con of each method? PS. I only need one row from each tables. ...

Find out where your PHP code is slowing down (Performance Issue)

Here's my first question at SO. I have a internal application for my company which I've been recently ask to maintain. The applications is built in PHP and its fairly well coded (OO, DB Abstraction, Smarty) nothing WTF-ish. The problem is the applications is very slow. How do I go about finding out what's slowing the application down...

Creating Custom Performance Counters in Visual C++

Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged Visual C++? I know that it can be done easily using managed C++, but I need to do it using an unmanaged Windows service. I also know that you can retrieve performance counter data, but I need to create some custom counters and increment them d...

Push or Pull for a near real time automation server?

We are currently developing a server whereby a client requests interest in changes to specific data elements and when that data changes the server pushes the data back to the client. There has vigorous debate at work about whether or not it would be better for the client to poll for this data. What is considered to be the ideal method,...

SqlServer Express slow performance

Yesterday, I did a stress test for a .NET web application. I did this for 2 reasons, I wanted to see what performance was like under real world conditions and also to make sure we hadn't missed any problems during testing. We had 30 concurrent users in the application using it as they would during the normal course of their jobs. Most us...

MapPoint 2009 Load Performance

I'm having some problems integrating MS MapPoint 2009 into my WinForms .Net 2.0 application in C#. I've added the ActiveX MapPoint control onto a form and have no problems getting it to display a maps and locations; my concern is the time it takes to load a map once it is created. The tests on my development machine have shown the av...

Should I use a dedicated network channel between the database and the application server?

Should I use a dedicated network channel between the database and the application server? ...or... Connecting both in the switch along with all other computer nodes makes no diference at all? The matter is performance! ...

Find out how much memory is being used by an object in C#?

Does anyone know of a way to find out how much memory an instance of an object is taking? For example, if I have an instance of the following object: TestClass tc = new TestClass(); Is there a way to find out how much memory the instance "tc" is taking? The reason for asking, is that although C# has built in memory management, I ofte...

Quick and dirty way to profile your code

What method do you use when you want to get performance data about specific code paths? ...

Python vs PHP, Python runs slower?

I've heard that Python is meant to be faster than PHP in terms of Runtime, I simply took this as a given and sat down today to make a blog post about it. After being told by Vinko Vrsalovic how to time scripts I took converted some code for getting prime numbers into Python and PHP then ran each 3 times and recorded the numbers. All time...

C++/Java Performance for Neural Networks?

I was discussing neural networks (NN) with a friend over lunch the other day and he claimed the the performance of a NN written in Java would be similar to one written in C++. I know that with 'just in time' compiler techniques Java can do very well, but somehow I just don't buy it. Does anyone have any experience that would shed light...

Trying to understand web services performance

I bought an ASP.NET script about a year ago to retrieve FedEx shipping values. It builds an XML string that passes to the FedEx server using an HttpWebRequest, then parses the raw XML. The average response time for the script is about 900 milliseconds. So the other day I was poking around in the FedEx developer center and discover...