|
From: | Luigi Rizzo |
Subject: | Re: [Qemu-devel] memcpy speed (Re: [PATCH v2] netmap backend (revised)) |
Date: | Wed, 23 Jan 2013 18:55:59 -0800 |
> I'm even doubtful that it's always a win on FreeBSD. You have a
> threshold to fall back to bcopy() and who knows what the "best" value
> for various CPUs is.
indeed.
With the attached program (which however might be affected by the
fact that data is not used after copying) it seems that on a recent
linux (using gcc 4.6.2) the fastest is __builtin_memcpy()
./testlock -m __builtin_memcpy -l 64
(by a factor of 2 or more) whereas all the other methods have
approximately the same speed.
[Prev in Thread] | Current Thread | [Next in Thread] |