dragetd / borgbench

Results and a simple script to benchmark compression and deduplication of borg/borgbackup
MIT License
5 stars 2 forks source link

Poor code quality #3

Open dragetd opened 7 years ago

dragetd commented 7 years ago

The python code was written when I was starting to learn python. It has very poor quality. I should rewrite these simple scripts!

n-st commented 7 years ago

"A friend is someone who has seen your code and still loves you." :wink:

n-st commented 7 years ago

Alright, I had a go at modularising the code to make it easier to re-use:

Let me know if I've missed anything. :)

Complete overkill for a benchmark script, of course, but I needed a sense of achievement to unwind from upgrading legacy computer systems at work today. :sweat_smile:

dragetd commented 7 years ago

Uh, I love it!

I almost forgot about this repository. xD Yes, your code looks a lot nicer. Especially with the borg 1.1 or 1.2 release, I'd like to re-run the benchmark. There had been various updates to the hashing and IO code.

And maybe write down some conclusions that can be backed up by numbers. Like 'Do not go too crazy with chunking as RAM will explode' or 'LZMA, is only worth it on extremely* slow network links.

Anyhow… please feel free to replace the link on the borg community repository. Once I get around to play with it, I'll send a PR with updated benchmark data. :)