benchmarking

How can I determine the amount of time a set of operations in C# require to execute ?

Hi, Is there a high precision timer that I can use to benchmark the amount of time a series of operations/statements take when executing ? A timer that returns the number of seconds since epoch would be insufficient, as the resolution is in seconds. I am thinking that the general implementation would be: Get starting time in millise...

WSDL parser validation & benchmarking tests?

Please recommend WSDL parser validation & benchmarking tests. I need for both 1.1 and 2.0 . Thank you in advance! ...

Lightweight microbenchmark library with graph output (Java)

Is there a good Java library for taking the legwork out of writing good micro-benchmarks? I'm thinking something which can provide (with a minimum of hassle) provide text (CSV or HTML, take your pick) output of results and maybe graphs summarizing results. Ideally, it should be something that plays nicely with JUnit or equivalent, and ...

Tools for automated benchmark testing of Java apps?

Does anyone know of any tools for automated benchmark testing of Java applications? By benchmark testing, I mean comparison of results to previous results and/or presenting results along a continuum of bad-to-good rather than pass/fail. ...

Objects versus Arrays

I am working on a site at the moment, and there is a concentrated focus on efficiency and speed in loading, processing and such like. I'm using the mysqli extension to get my database bits and bobs, but I'm wondering what's the best / most efficient way of outputting my dataset? At the moment I'm using $mysqli->fetch_assoc() and a fore...

Measuring Web Page Performance on Client vs. Server

I am working with a web page (ASP.net 3.5) that is very complicated and in certain circumstances has major performance issues. It uses Ajax (through the Telerik AjaxManager) for most of its functionality. I would like to be able to measure in some way the amounts of time for the following, for each request: On client submitting reques...

Web CMS Performance: pages/second (Joomla, Drupal, Plone, WP)

Note: I am not into web programming, so forgive my ignorance in case the question is trivial. Also, please don't comment about "how flawed" the out-of-box comparison of these products is. The question is not about how they compete against each other, rather about the reason behind the incredible slowness of ALL of them. Just read about ...

How can I benchmark the resources used by GETTEXT for language support in PHP?

Not long ago I was playing around with GETEXT in PHP for language files and doing a lot of research on the best way to offer multilingual support in a PHP app, it seems the general consensus was to use GETEXT instead of arrays or constants or any of the other options. I often look over big name projects code like wordpress, vbulletin...

How do you test PHP classes/objects?

I have read many times on the web that when dealing with dependency in PHP that it is good to use dependency injection instead of Globals because it makes it easiar to test. Can someone explain how this make it easiar to test? And what I would use to do the test? ...

Reducing performance variations on Linux

Hi all, I am trying to benchmark a piece of software that runs on an Intel Pentium with Linux on top of it. The problem is, that I get considerable performance variations during consecutive test runs, when using the RDTSC instruction. Runtimes of exactly the same piece of software vary between 5 million and 10 million clock cycles, so i...

Using Skein for File integrity checking.

Hi Id like to know that is it possible to use skein instead of MD5 or SHA1 for file integrity checking? How? Is that really better or faster than SHA1 and MD5?Explain please. ...

Data processing benchmarks.

We are using a ORM to interact with Microsoft SQL Server database and Oracle database, we do a lot of record processing and updations. I am looking into how I should benchmark my data processing capabilities.Should it be time versus data processed ? GOALS: Amount of time it takes to process invalid records to valid records.(trace/ti...

Moonlight 2 vs Silverlight 3: huge performance gap

I have tried the simple test "Silverlight 2.0 animation test" at http://bubblemark.com, surprisingly Moonlight provided only 26 fps on Linux. Windows/Silverlight 3 gave me 192 fps on the exact same machine. Why is Moonlight so much slower than Silverlight? This performance gap is really important if you are planning to develop high fps,...

Suggestions for profiling a webserver...

I developed a small nifty webserver in C and would like to evaluate its performance. For this I'm doing the following: Measuring the socket establishment time, file transfer time (for files of random sizes) and socket teardown time in the following scenarios: Single-Threaded Multi-Threaded And this should give me the throughput/band...

Java: Would decreasing the stack size speed up frequent method invocations?

Hello, everyone! Everywhere I keep reading about increasing the JVM stack size (i.e. to allow deeper recursions). But I'm asking myself, would decreasing of the stack size speed up method invocation? Probably my understanding is wrong, but I assume, that the allocation speed of each stack (not only for recursive method calls) depends ...

An objective way to benchmark memory/speed of different Inheritance Patterns in JavaScript?

I often see arguments between Classical (faked via some library), Pseudo-Classical and Prototypal Inheritance mention "efficiency." However, I've never seen any data backing any of this kind of stuff up. Not to mention "efficiency" seems like an ambiguous word when it comes to a coding style, rather than an algorithm. I'd like to do som...

Why is .NET faster than C++ in this case?

Make sure you run outside of the IDE. That is key. -edit- I LOVE SLaks comment. "The amount of misinformation in these answers is staggering." :D Calm down guys. Pretty much all of you were wrong. I DID make optimizations. It turns out whatever optimizations I made wasn't good enough. I ran the code in GCC using gettimeofday (I'll past...

Benchmarking Rails Model Methods

Is there something similar to Ruby Benchmark within Rails? I have used Ruby benchmark in the past to compare different bits of code, but none of it was Rails related. I would like to use my application models in some benchmarking to do something along the lines of... #!/usr/bin/ruby require 'benchmark' Benchmark.bmbm do |x| x.report(...

Developer oriented hardware benchmarks?

Perhaps I'm looking in the wrong places, but every hardware benchmark I've found, for nearly any component, is oriented towards gamers and/or workstations (video editing etc). Is there anyone doing benchmarks that are relevant to software developers? For example, take SSDs. I don't care how fast Crysis loads off an SSD -- that is comple...

Any program that calculates the throughput from the output of tcpdump?

I am currently using tcptrace but am observing some ridiculous throughputs on a test that I'm running. I am pretty sure something is wrong with the way I am testing but before spending any more time is there any other program I can use to verify this? EDIT: This is for a router simulator that I am running locally on my system that gene...