Jump to content

Best way to log benchmark


eelyroc

Recommended Posts

I dont think there is one best way, it really depends on what you are doing.  The two obvious choices are logging to a file or logging to a database.  Logging to a database in most cases would be faster.  I would closely analyze exactly what information you are hoping to retrieve and focus on that.  If your application is already a database driven application it should be simple to add a log table that you can write performance benchmarks to (just make sure you garbage collect or it could get really big!).  Alternatively you can write performance data to a file, however this is harder to do as multiple processes are going to want to access the file.  You will need to use some sort of semaphore to assure that only one process rights to the log at a time.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.