benchmarking

PHP function curl_exec() slows down my script

I use the following function in CodeIgniter, to get my latest tweet: function tweet($id) { $c = curl_init(); curl_setopt($c, CURLOPT_URL, "http://twitter.com/statuses/user_timeline/".$id.".xml?count=1"); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); //Benchmark starts here $src = curl_exec($c); ...

Unexpected speed behaviour when benchmarking Perl regexs

Whilst discussing the relative merits of using index() in Perl to search for substrings I decided to write a micro benchmark to prove what I had seen before than index is faster than regular expressions when looking for a substring. Here is the benchmarking code: use strict; use warnings; use Benchmark qw(:all); my @random_data; for (1...

Java Regex performance

Hello Everybody. I'm trying to parse links with Regex with Java. But, i think its getting to slow. For example. To extract all links from: http://news.google.com.ar/nwshp?hl=es&amp;tab=wn is spending 34642 milliseconds (34 seconds!!!) Here is the regexp: private final String regexp = "<a.*?\\shref\\s*=\\s*([\\\"\\']*)(.*?)([\\\...

C\C++ LINPACK source code for window free for commercial use?

Hello! I need run benchmark to test my cpu FLOPS and compare this with raitings such as top500 org. I known Linpack is are standart for measure CPU perfomance. But i can find source code for windows on C\C++ without not free librarys like Intel MKL library, etc Maybe someone know where i can find C\C++ LINPACK source code for window free...

How to Disable Dynamic Frequency Scaling?

Hi, I would like to do some microbenchmarks, and try to do them right. Unfortunately dynamic frequency scaling makes benchmarking highly unreliable. Is there a way to programmatically (C++, Windows) find out if dynamic frequency scaling is enabled? If, can this be disabled in a program? Ive tried to just use a warmup phase that uses 10...

Benchmarks for JSON parsers?

I'm interested in benchmarks for various JSON parsing libraries, ideally, comparing Java and C/C++ implementations. Java only benchmarks by the Jackson folks: http://www.cowtowncoder.com/blog/archives/2009/02/entry_204.html Thanks! ...

Performance Estimation for a Device with Scarce Hardware Resources

For university I benchmark the influence of certain refactorings (e.g., inline class and replace inheritance with delegation) on performance. Although I use HotSpot 5 and 6 in interpreted mode (-Xint), the differences in performance between the refactored and the not refactored versions are very small (few milliseconds at best). Therefo...

Looking for Benchmark/Performance Tools to test Android Hardware.

Hello Everyone, I am looking for a free or paid (the best in the market you know of) benchmark/performance tools for Android based smart phones hardware. Basically I need some tools to test the performance of CPU, Memory, Graphics etc.. Any help will be appreciated. ...

Mysql benchamrking GUI tool

Hi I need to optimize an application which is already there for a long time. Optimization will include move inline queries from php pages to "stored procedures", get rid of sub queries and convert them to "joins" etc etc. I guess the best way is to use benchmarking tools for this purpose, but is there any GUI based tool available which ...

Is my method of measuring running time flawed?

Sorry, it's a long one, but I'm just explaining my train of thought as I analyze this. Questions at the end. I have an understanding of what goes into measuring running times of code. It's run multiple times to get an average running time to account for differences per run and also to get times when the cache was utilized better. In ...

A good line-graph generator for my benchmarking?

To learn more about a language I rewrite some of the core functions, or compare basic speeds of each set of functions per problem to see what is more suited in real world situations. Other than an ugly online line-graph generator which often only allows one or two series, I cannot find anything that would suit what I need. Do you know ...

Puzzling output of the time command

I am trying to benchmark the run time of one of my scripts. I get following output #time ./foo.py real 0m37.883s user 1m0.648s sys 0m4.680s # Internally, foo spawns multiple other processes and waits till all of them die. From this thread and my earlier understanding of real, user and sys times, I had thought that real time ...

multimaps(benchmark) source code in C

I am actually seeking the multiMAPS benchmark source code written in C. It is a benchmark that measures memory bandwidth.. Did somebody heard about it? ...

PHP Performance : Copy vs. Reference

Hey there. Today I wrote a small benchmark script to compare performance of copying variables vs. creating references to them. I was expecting, that creating references to large arrays for example would be significantly slower than copying the whole array. Here is my benchmark code: <?php $array = array(); for($i=0; $i<100000; ...

In Rails, why "action_controller/benchmarking.rb" is running?

While checking why a page is loading fairly slowly, I saw that /vendor/rails/actionpack/lib/action_controller/benchmarking.rb is being run. Why is it running (is it something in the config file? or is it something standard in development mode?) Won't it cause a page to load extra slow? Is there a way to turn it off? (using Rails ...