There was a small debate regarding the speed of fnmatch over pathinfo here : http://stackoverflow.com/questions/2692536/how-to-check-if-file-is-php
I wasn't totally convinced so decided to benchmark the two functions.
Using dynamic and static paths showed that pathinfo was faster.
Is my benchmarking logic and conclusion valid?
EDI...
I wrote multiple scripts in Perl and shell and I have compared the real execution time. In all the cases, the Perl script was more than 10 times faster than the shell script.
So I wondered if it possible to write a shell script which is faster to the same script in Perl? And why is Perl faster than shell although I use the system functi...
As we can see from The Computer Language
Benchmarks Game:
go is in average 10x slower then C
go is 3x slower then Java !?
How it can be bearing in mind that go compiler produces native code for execution?
Immature compilers for go? Or there is some intrinsic problem with the go language?
EDIT:
Most answers deny intrinsic slowness...
Hi,
When using something like: ab -n 1000 -c 10 h t t p : / / localhost / ci
I get about 380 requests/sec.
When using: ab -n 1000 -c 10 h t t p : / / localhost / ci /
I get about 12 requests/sec.
Does anyone knows what's going on?
Thanks
Edit: Tried HttpFox for Firefox and what i see is that when putting localhost/ci it shows a 3...
I have 2 tables:
author with 3 millions of rows.
book with 20 miles rows.
.
So I have benchmarked this query with a join:
SELECT BENCHMARK(100000000, 'SELECT book.title, author.name
FROM `book` , `author` WHERE book.id = author.book_id ')
And this is the result:
Query took 0.7438 sec
ONLY 0.7438 seconds for 100 millions of que...
On a previous question the pathinfo and fnmatch functions were benchmarked and the answers all came out opposite to my benchmark results.
You can read the different results with the benchmark code here:
http://stackoverflow.com/questions/2693428/pathinfo-vs-fnmatch
I couldn't work it out until I ran the same code on a machine running v...
I am looking for ways to perform micro-benchmarks on multi-core processors.
Context:
At about the same time desktop processors introduced out-of-order execution that made performance hard to predict, they, perhaps not coincidentally, also introduced special instructions to get very precise timings. Example of these instructions are rdt...
I am currently writing a small graphical performance test benchmark for JavaFX.
Thus, I need to get the current FPS at which the JavaFX scene is being refreshed.
So far, I haven't found a solution how to accomplish this.
Does anyone know if there is some kind of event that I could use in order to get the FPS?
...
When I run apache bench I get results like:
Command: abs.exe -v 3 -n 10 -c 1 https://mysite
Connection Times (ms)
min mean[+/-sd] median max
Connect: 203 213 8.1 219 219
Processing: 78 177 88.1 172 359
Waiting: 78 169 84.6 156 344
Total: 281 389 86.7 391 563
I ...
I'm developing a .NET wrapper for WinPcap called Pcap.Net.
I'm trying to make sure this wrapper has high performance and I want to compare it to WinPcap and to other .net wrappers for WinPcap.
The features I want to profile are:
WinPcap native features (sending packets in different ways, receiving packets in different ways...)
Interp...
Oracle recently released a Berkeley DB back-end to SQLite. I happen to have a hundreds-of-megabytes SQLite database that could very well benefit from "improved performance, concurrency, scalability, and reliability", but Oracle's site appears to lack any measurements of the improvements. Has anyone here done some benchmarking?
...
I've heard this term used, but I'm not entirely sure what it means, so:
What DOES it mean and what DOESN'T it mean?
What are some examples of what IS and ISN'T microbenchmarking?
What are the dangers of microbenchmarking and how do you avoid it?
(or is it a good thing?)
...
I have two simple microbenchmarks trying to measure thread- and process-switching overheads, but the process-switching overhead is turning out to be lower than that of thread-switching, which is unexpected. The setup: 1.8GHz Core 2 Duo, 2GB RAM, Linux 2.6.32-21-generic x86_64 (Ubuntu 10.04). I'm getting:
~2.1-2.4us per process switch
~...
After I upgraded my projects to .NET 4.0 (With VS2010) I realized than they run slower than they were in .NET 2.0 (VS2008). So i decided to benchmark a simple console application in both VS2008 & VS2010 with various Target Frameworks:
using System;
using System.Diagnostics;
using System.Reflection;
namespace RuntimePerfTest
{
class...
I watched Nicholas Zakas' talk, Speed up your Javascript, with some interest. I liked how he benchmarked the various performance improvements created by various optimization techniques, e.g. reducing calls to deeply nested objects, changing loops to count down instead of up, etc.
I would like to run these benchmarks myself though, to se...
Wondering for benchmarking purposes if there is a DOM event or other way to determine when the browser has finished parsing/rendering the CSS. I'm trying to optimize CSS selectors and need a way to measure the drawing/rendering/reflowing times.
Thanks.
...
Hi All,
I am using the following code to compute execution time in milli-secs.
struct timespec tp;
if (clock_gettime (CLOCK_REALTIME, &tp) == 0)
return ((tp.tv_sec * 1000000000) + tp.tv_nsec);
else
return ;
Can you please tell me whether this is correct?
Let's name this function comptime_nano().
Now, I write the following cod...
I'm trying to find a resource that has benchmarks of Dojo, jquery, mootools, etc of the most popular javascript libraries.
...
Hi,
I need to optimize some code that sorts a vector<pair<int, float >>a where the pairs needs to be sorted on the float value. The vector will have an length between 0 and 5. I've been googling and reading up on sorting methods in C++ but cannot find any benchmarks on sorting tiny data sets. For the system it's important be as fast as ...
I have a web application written in PHP using MySQL that I would like to test to see how many users it can handle, how much activity, etc.
What method should I use to do this?
...