Dave Marquardt wrote:
Gabriel Díaz wrote:> How is possible to make a microbenchmark library portable? > well, i mean, can i compile the lib on other OS and do the > test agaist it, and compare results? It's not a library, it's a collection of microbenchmarks. But I can see why you might think so, given the name.
Well, that's not completely true. The static library libmicro.a contains the entire libMicro framework (we're just a little naughty to include main() in there too). One cool thing about this is that it is possible to write a simple test case which only supplies the benchmark() function. More complex cases supply additional functions as required. The library simply provides defaults to fill in the gaps.
The collection of microbenchmarks (and scripts) we ship with libMicro could be considered just as examples of how to use the libMicro framework -- templates, even.
And it is portable! We've had it running on Solaris (all platforms, both 32-bit and 64-bit), Linux, AIX, HP-UX, MacOS X, and Windows XP (using Microsoft's own Services For UNIX as well as the Cygnus environment). However, some of these needed quite a lot of hand crafting, and we didn't have time to tidy up our Makefiles sufficiently to include more than SunOS, Linux and AIX.
Again, we would welcome contributions which are able take us forward without breaking the simplicity of libMicro.
Cheers, Phil
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org