Performance Testing @ the Frontline

A hidden world where small things make a big difference

Posts Tagged ‘Delphi’

Creating a DLL with Delphi for LoadRunner

Posted by Kim on Tuesday, April 13, 2010

This article extends my previous post on Using a Custom DLL in LoadRunner and now shows by example how a DLL is actually created in Delphi and used from LoadRunner.

The DLL I’ll create here is a simple stub with a few basic functions and can serve as a template for any type of DLL that you want to create.

I’ll show how to avoid the most common problems of sending/retrieving strings to/from the DLL as well as how to handle the Unicode situation with D2009 and D2010 (LR is not Unicode enabled). Read the rest of this entry »

Posted in Delphi, LoadRunner | Tagged: , , | 5 Comments »

Delphi is NOT dying… at least not for me!

Posted by Kim on Saturday, January 16, 2010

I happened to see a blog post about Delphi Dying, and I definitely feel the need to say that “NO, DELPHI IS NOT DYING” (at least not for me)!

It’s still my tool of choice for any kind of development, be it server or client . I’ve seen too many issues with both performance and stability when it comes to Java client apps… Just the other day I had a time tracking software (written in Java). Didn’t work anymore for no reason whatsoever, worked yesterday. Had to downgrade the to update 7 to get it to work.. Just a total PAIN IN THE BUTT with all those update this and update that things .. How hard can it be to get the freaking java-code to work with different updates .. I just don’t get it .. but enough of rant on that for now ..

This also merits a small example of why I think Delphi is good: A buddy at work seemed surprised that I made a TCP Port redirection Desktop app in less than a day, with all the UI parts and load/save things. He used to do lots of Java coding (on the server side) and just seemed to be surprised that with I D2010 managed to complete the app in so short a time?!

I think this goes to prove that Delphi really is an excellent RAD tool that produces fast & reliable code without the need to deploy anything but the .exe itself (= no dependencies on update packs 🙂 ).

I’ve always been, and always will be a Delphi developer.

Posted in Delphi | Tagged: | Leave a Comment »

Using a custom DLL in LoadRunner

Posted by Kim on Tuesday, February 24, 2009

Sometimes LoadRunner does not provide all the needed features that one needs when doing performance testing. One option is to write DLL’s to handle the needed stuff and writing your own custom DLL’s is really easy once you get the hang of it!

I needed to do a few HTTP calls “under the radar” from a script so using Delphi 2009 I wrote my own HTTPClient DLL that allows me to do a HTTP GET to a specific URL without adding to the statistics (Pages and Hits/Sec stats). Read the rest of this entry »

Posted in Delphi, LoadRunner | Tagged: , | 17 Comments »

Optimizing a Delphi 2009 app using Firebird 2.5 Alpha 1

Posted by Kim on Tuesday, February 3, 2009

The last few days I’ve spent optimizing an application written in Delphi 2009 that talks to a Firebird database using the standard TIBDatabase, TIBTransaction and TIBSQL components  The application needs to do alot of reading/writing to the database, and was rather slow so I had to optimize it a little … Read the rest of this entry »

Posted in Delphi, Firebird | Tagged: , , | 15 Comments »

The impact of Digital Signatures

Posted by Kim on Wednesday, May 7, 2008

I recently tested a service that had a Digital Signature system option. At first the Digital Signatures where not enabled, and we were happily testing and getting around 500 ms response times for the service.

Then the Digital Signatures where enabled, and we had to first sign the messages sent, then the server needed to verify the signatures as well.

This turned out to be a major CPU and TIME hog, since on average, regardless of load the verification of the signature took around 200 ms to perform. This made the allover response times increase to around 700 ms for each transaction (200 ms is around 28.5% of 700 ms!). Read the rest of this entry »

Posted in Main | Tagged: , , | Leave a Comment »

Performance Testing Blog – And so it begins

Posted by Kim on Saturday, April 5, 2008

Today it begins, my Performance Testing and Performance Engineering blog, where I’ll outline some of the things I will encounter in this field…

I hope this is going to be a fun and informative place for all of you, but only time and your feedback can determine that!

Helpful tools

The tools I use mostly at work is LoadRunner from HP, but I also use a myriad of other utilities that assist me. The one biggest helpful “utility” i use is probably  Delphi, since I can make DLL’s and custom made applications that assist me in the testing process.

Also PHP and Apache are valuable help, since most of my testing is web based. Other very useful tools are WireShark (Network Analyzer) and FireBug (Firefox plugin, HTML analysis).

Posted in Main | Tagged: , , , | Leave a Comment »