-
-
Notifications
You must be signed in to change notification settings - Fork 392
1.29-1.32.2: performance regression with many accounts #2153
Copy link
Copy link
Closed
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.Affects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.Major usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..Thar's some kind o' loot on offer..performanceAnything performance-related (run time, memory usage, disk space..)Anything performance-related (run time, memory usage, disk space..)regressionA backwards step, indicating a weakness in our QA. We don't like these.A backwards step, indicating a weakness in our QA. We don't like these.
Description
Metadata
Metadata
Assignees
Labels
A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.Affects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.Major usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..Thar's some kind o' loot on offer..performanceAnything performance-related (run time, memory usage, disk space..)Anything performance-related (run time, memory usage, disk space..)regressionA backwards step, indicating a weakness in our QA. We don't like these.A backwards step, indicating a weakness in our QA. We don't like these.
This issue was discussing a severe performance regression affecting 1.29-1.32.2 with many accounts.
(There is a separate moderate drop in general performance affecting hledger 1.26 and later, see #2122.
The issue for comparing hledger vs Ledger performance is #2363.)
Lately I noticed that hledger was not as fast as it was. It is an issue because some scripts that I have that execute hledger multiple times are becoming very slow.
I decided to benchmark it against ledger.
My system:
Balance command
Then I converted my journal file in order to use it with ledger:
And tested it again with ledger
The result is that for balance operation, hledger takes 10 times more time that ledger.
My system is a small Linux VM with 2 CPU and 4 GB RAM. Hledger is the latest one built from source.
Other commands are also slower. Notice above that
hledger printtook 3.45 seconds. In ledger it's less than 1 second.