[U-Boot] [PATCH v3] fs/fs.c: do_fsload: measure throughput
Anatolij Gustschin
agust at denx.de
Wed Nov 14 13:59:49 CET 2012
Hi,
On Tue, 30 Oct 2012 12:49:26 +0100
Andreas Bießmann <andreas.devel at googlemail.com> wrote:
> This patch adds time measurement and throughput calculation for all supported
> fsload commands.
>
> The output of ext2load changes from
>
> ---8<---
> 1830666 bytes read
> --->8---
>
> to
>
> ---8<---
> 1830666 bytes read in 237 ms (7.4 MiB/s)
> --->8---
>
> Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
> ---
> since v1:
> * use 'time' instead of 'time_start' as suggested by Wolfgang
>
> since v2:
> * rebase on top of 045fa1e1142552799ad3203e9e0bc22a11e866ea
> Now there is some more overhead in the measurement caused by the respective
> fs-type functions (detect fs-type, eventually do mount and so on).
> Nevertheless I think such a measurement is good for further improvements
> like increasing throughput by whatever measures.
>
> fs/fs.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
Applied to staging/agust at denx.de after rebasing. Also slightly revised
commit log. Thanks!
Anatolij
More information about the U-Boot
mailing list