Massive performance degradation since v1.7.5
See original GitHub issueusing node v12.18.3
Version 1.7.5 introduced a regression which causes a massive performance degradation.
Test code:
const fs = require('fs');
const git = require('isomorphic-git');
const dir = '.';
const filepath = 'README.md';
const ref = 'master';
const run = async (label) => {
console.time(label);
console.time('resolveRef');
const commitSha = await git.resolveRef({ fs, dir, ref });
console.timeEnd('resolveRef');
console.time('status');
const status = await git.status({ fs, dir, filepath });
console.timeEnd('status');
console.time('readObject #1');
const { oid } = await git.readObject({ fs, dir, oid: commitSha, filepath });
console.timeEnd('readObject #1');
console.time('readObject #2');
const { object: content } = await git.readObject({ fs, dir, oid });
console.timeEnd('readObject #2');
console.timeEnd(label);
}
const main = async () => {
await run('total run #1');
await run('total run #2');
}
main().catch(err => console.log(err));
I’ve tested with this repository: https://github.com/davidnuescheler/pages
Results using 1.7.4:
resolveRef: 2.276ms
status: 364.792ms
readObject #1: 2.695ms
readObject #2: 1.940ms
total run #1: 376.457ms
resolveRef: 0.672ms
status: 9.638ms
readObject #1: 2.091ms
readObject #2: 1.598ms
total run #2: 14.323ms
Results using 1.7.5:
resolveRef: 2.181ms
status: 359.206ms
readObject #1: 224.917ms
readObject #2: 228.641ms
total run #1: 819.938ms
resolveRef: 2.451ms
status: 247.968ms
readObject #1: 218.427ms
readObject #2: 229.541ms
total run #2: 698.930ms
=> The second run takes ~40-50x longer using 1.7.5.
related issue: #1237
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Server very slow for certain repositories · Issue #233 - GitHub
7.5 introduced a regression which causes a massive performance degradation in git-server : requests to non-existing files ( 404 ) are now ~20- ......
Read more >Massive Performance Degradation On Statistics For Large ...
Massive Performance Degradation On Statistics For Large Partitioned Tables After Upgrade To 19c (Doc ID 2611336.1) · Applies to: · Symptoms.
Read more >Detect and Resolve Performance Issues - Mendix Docs
Describes possible performance issues with root causes and resolutions.
Read more >Server having massive Memory(RAM) issues. Memory Leak?
The memory usage would just slowly creep up, idling at 7.5GB with 0-3 players after startup, and would occasionally shoot up 1GB or...
Read more >Comparison Between Bare-metal, Container and VM using ...
➢ Compared to Baremetal, the performance of VM degrades significantly to 30%. (In synthetic data, it is 20%). ➢ VM suffers from the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I went ahead and tested with before mentioned repo:
v1.7.8:
exposed cache param:
It’s roughly a 100x improvement.
Thank you very much, @wmhilton. That solved our performance issue.