[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] heads up on nvm.stripped
From: |
Jack Lloyd |
Subject: |
Re: [Monotone-devel] heads up on nvm.stripped |
Date: |
Wed, 12 Nov 2008 14:23:53 -0500 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
On Wed, Nov 12, 2008 at 07:19:06PM +0100, Markus Wanner wrote:
> It rather looks like botan offers something similar to benchmark
> various sha1 engines. I didn't look into that, though, but don't
> think we need to duplicate that work.
I've attached a patch for sha1.cc demoing the new benchmark code. For
informative purposes only, since it currently only works on an
unreleased version (future 1.7.22, nrb head), and API-wise things are
still in flux in this area.
In the future it may be useful to extend Monotone to run a quick test
and then choose the fastest SHA-1 provider to use for the rest of the
program run. 20 milliseconds of benchmark time at startup could pay
for itself quickly in many cases.
-Jack
$ ./mtn version --full
monotone 0.41 (base revision: c18c4c9d2fbcdaaf08fb448837b778e6f30968a6)
Running on : Linux 2.6.27-gentoo-3 #5 SMP Thu Oct 16 15:40:05 EDT 2008
x86_64
C++ compiler : GNU C++ version 4.3.2
C++ standard library: GNU libstdc++ version 20080827
Boost version : 1_35
SQLite version : 3.5.9 (compiled against 3.5.9)
Lua version : Lua 5.1
PCRE version : 7.8 2008-09-05 (compiled against 7.8)
Botan version : 1.7.22 (compiled against 1.7.22)
Changes since base revision:
unknown
$ ./mtn benchmark_sha1
mtn: Benchmarking botan's SHA-1 core
mtn: SHA-1 provider 'amd64': 213.701 MiB/s
mtn: SHA-1 provider 'core': 212.217 MiB/s
mtn: SHA-1 provider 'openssl': 338.027 MiB/s
mtn: SHA-1 provider 'sse2': 297.789 MiB/s
sha1_botan_benchmark.patch
Description: Text document