benchmarking

Best practice method to find execution time in Zend Framework

I'm interested in the best/standard way to find the execution time of my Zend Framework app. Currently I'm starting the timer on the public/index.php then registering it in Zend_Registry, for a later call, which the layout then uses to calculate the total time. Is there a better way to do this? I know this isn't even entirely accurate, ...

Why is List<>.OrderBy LINQ faster than IComparable+List<>.Sort in Debug mode?

I was interested in whether it would be faster to sort my classes using LINQ, or by implementing the IComparable interface and List.Sort. I was quite surprised when the LINQ code was faster. To do the test, I made a very simple class with the not-so-apt name of TestSort, implementing IComparable. class TestSort: IComparable<TestSort> ...

Performance of message-passing in the Actor model

I've seen benchmarks of Actor model implementations done in terms of their actors. For example, Akka actors are very lightweight (600 bytes per actor) and millions of them can be created. However, I've never seen a benchmark done in terms of message-passing throughput. For example, given some number of actors, how many messages can pass...

How to benchmark and optimize a really database-intensive Rails action?

There is an action in the admin section of a client's site, say Admin::Analytics (that I did not build but have to maintain) that compiles site usage analytics by performing a couple dozen, rather intensive database queries. This functionality has always been a bottleneck to application performance whenever the analytics report is being...

Some slow request on tomcat 5.5

Hello, we are testing our Tomcat 5.5 Server on a debian system. And we can see, that a few requests are very slow and can't find a reason therefore. We did some tests with Apache benchmark like this: # ab -n 10 -c 1 http://localhost/demo/startseite ... Connection Times (ms) min mean[+/-sd] median max Connect: ...

Does anyone have considerable proof that CHAR is faster than VARCHAR ?

Any benchmark, graph anything at all ? Its all academic and theoretical across the web. Ok its not the first time that this question has been asked, they all say that using CHAR results in faster selects? I even read in MySQL books, its all the same but I have not come across any benchmark that proves this. Can any one shed some light...

Benchmarking rails ActiveRecord Queries

I'm looking to benchmark a couple of my ActiveRecord requests in my app. What's the simplest way in the console to benchmark something like User.find_by_name("Joe").id versus User.find(:first, :select => :id, :conditions => ["name = ?","Joe"]).id Thanks ...

How can I benchmark different languages / frameworks?

I'd like to compare the performance of different languages and/or different frameworks within the same language. This is aimed at server-side languages used for web development. I know an apples to apples comparison is not possible, but I'd like it to be as unbiased as possible. Here are some ideas : Simple "Hello World" page Object in...

PHP Performance Measurement

How can I benchmark certain peices of code in PHP? I can use timers to calculate the differences, I'm just not sure if it is the best solution out there. ...

mysql 5.1: how can i use benchmark() command to test a call to a stored procedure ?

Hello I'm trying to benchmark a stored procedure. select benchmark(100000000,(select 1)); this benchmark works but the following benchmark doesn't: do benchmark(1000,(call test_login_user('a'))); it produces the following error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your...

Which language is easiest to learn?

This is a subjective question just to get a general impression. As Java is the most popular programming language right now it is used as a benchmark. Lets say I have to spend T amount of time/effort to learn/master Java. By what factor should I multiply T to get a time/effort needed to learn/master other language instead, say C, C++, C#...

I want to benchmark solaris and linux with java

Can anyone point me out to a project out there that I can download and run it and it would load / stress test itself and then provide me with reports? I want the project to be as big as it can and to involve as many components in java as it can, also i need it free... or to some very good already made results over the web that I can alre...

Javascript Loop Benchmark suite

I'm creating a javascript loop bench mark test suite: http://www.vervestudios.co/jsbench/ Basically, I am just looking for some feedback, ideas, bug reports, etc to improve the benchmark. I know this may not be a SO question...if you vote to close I won't have any hard feelings. :-) (you could suggest a more appropriate forum for my...

Benchmarks of scripting languages doing the same task?

This is not a X vs Y question - do not reply as same. Does anyone know where I could find reviews or reports on tasks that people did in two or more high-level scripting languages to see which one was more suited for a certain job? (note that this is different from looking for a language suited for all jobs!) I really want to know which...

How to track project statistics (included pages, sql dumps, memory) in PHP?

That is a common question, but I would like to hear some expert opinions. I'm starting a new PHP project that I would like to keep an eye on. What I want to track is: included files - frameworks that use index.php and bootstrap files and load many files on page load sql dumps - this one is easier because most frameworks have DB loggin...

Timing rapid events

I'd like to measure the amount of time taken to complete a rapid event but the time taken is comparable to the accuracy of my timer. Can I measure the distribution of times taken to perform the operation several times and then reverse engineer the underlying distribution, i.e. solve p₁= p₂* p₂ using deconvolution? ...

jQuery vs GQuery Benchmark

I remember stumbling upon a benchmark comparing jQuery vs GQuery (run time selectors) vs GQuery (compile time selectors). Once the site was loaded one could click "Start" and the benchmark (mostly CSS selectors) would run for all three versions and present the results (overall time spent) after finishing. Unfortunately, I cannot find it ...

looking for link to runtime complexity and/or benchmarks table for JAXB

Hi all, I think the title should be pretty clear, but: I am looking to determine what kind of performance I can expect from a software component that is running JAXB--both for marshal and un-marshal operations. I'd hoped to find a page of benchmarks, or some sort of white paper that spoke about complexity, but my web searches haven't tu...

Basic guidelines for high-performance benchmarking

Hello, I am going to benchmark several implementations of a numerical simulation software on a high-performance computer, mainly with regard to time - but other resources like memory usage, inter-process communication etc. could be interesting as well. As for now, I have no knowledge of general guidelines how to benchmark software (in ...

How do you repeat a raw SQL query # times to MySQL?

I want to test the load a MySQL server can handle using a couple versions of a query and for that I'm looking for something like apachebench (but for mysql). I'm hoping to run 500 or more concurrent requests every second for a couple minutes and see if MySQL is up to the challenge. ...