[U-Boot] [PATCH v3] fs/fs.c: do_fsload: measure throughput

Anatolij Gustschin
2012-11-14T12:59:49Z

Hi,

On Tue, 30 Oct 2012 12:49:26 +0100
Andreas Bie?mann <andreas.devel@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@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