My specs are now:
- CPU is AMD Athlon(tm) Dual Core Processor 4850e, 2500MHz, 64 bits
(unchanged)
- RAM is 5474MiB (upgraded +4GB, anyway today ledger+OS did not pass
the 1.8GB RAM usage)
- OS is Ubuntu 11.10 (upgraded from 9.10)

In Aug 2010, my ledger file was 24920 non empty lines (I do not have
lines with only comments).
Today, my ledger file is 29901 non empty lines.

On Aug 2010, my price.db daily values was 14804 lines (I still have
that old file, but I do not use anymore price.db file with daily
values.

On Aug 2010, my price.db monthly values was 963 lines.
Today, my price.db is 1162 lines.

In the table below:
- 1st column are tests from 12-Aug-2010
- 2nd column are tests from today before compiling with Boost.Graph
- 3rd column are tests from today after compilation including
Boost.Graph

The compilation was done using :
$ ./acprep distclean
$ ./acprep opt update --no-patch

Output is redirected to /dev/null.

I re-used my tests from my 12-Aug-2010 post:

| reg -X € -J                                 | 2m07.451s | 2m01.476s
| 1m16.583s |
| reg -X € -J --price-db prices.db-monthly    | 0m42.755s | 1m04.551s
| 0m58.373s |
| reg -X € -J -M                              | 0m34.802s | 0m34.283s
| 0m24.437s |
| reg -X € -J -M --price-db prices.db-monthly | 0m12.562s | seg fault
| 0m19.944s |
| reg -X € -J -Y                              | 0m09.555s | 0m08.683s
| 0m07.117s |
| reg -X € -J -Y --price-db prices.db-monthly | 0m03.401s | 0m04.280s
| 0m05.448s |

My first conclusions is that having a price.db with daily values
(instead of monthly value) has less negative impact on performance
(now 25% slower instead of 100%slower). This is helpfull, because
maintaining my price.db with only monthly values is painful has I have
to filter by hand.

I digged further and compiled with
$ ./acprep gprof update

John, I will send you privately the gmon.out and gmon.txt files as
they are big.

With this profiling enabled, I believe that the culprit are functions
like exchange_commodities and find_price.

Best regards,
Thierry


On Mar 5, 12:07 pm, John Wiegley <[email protected]> wrote:
> >>>>> thierry  <[email protected]> writes:
> > Hello, On below tests, ledger v3 is 21 and 46 times slower that ledger v2.
> > Some specs:
> > - CPU is AMD Athlon(tm) Dual Core Processor 4850e, 2500MHz, 64 bits
> > - RAM is 1790MiB
> > - OS is Ubuntu 9.10
>
> At last, Thierry, this is solved.  I'm now using the Boost.Graph library to
> manage historical commodity prices, and Dijkstra's shortest-path algorithm to
> find most-recent conversion rates.
>
> Care to test out your example again? :)
>
> John

Reply via email to