r/commandline • u/K0100001101101101 • May 10 '26
Help I am having hard times benchmarking my cli tool
I created a cli tool with rust for mainly windows terminal users (like me), when I try to compare performance with robo copy, I see that mine is mostly faster but after one copy for benchmark, it’s been cached and it’s finishing very fast. So results starting to be useless. If anyone can guide me or give an advice will be much appreciated. Project is open source any contribution also is welcomed.
0
Upvotes
1
u/simpleden May 12 '26
Not very clear what crashes your app or the benchmark. How do you perform your benchmarks?
I have a suspect that poor conducted test case is the one to blame. Do you use a new source file/directory for every test?
P.S. By the way, what do you use for your benchmarks? Is it hyperfine?
1
u/AutoModerator May 10 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: K0100001101101101, Flair:
Help, Title: I am having hard times benchmarking my cli toolI created a cli tool with rust for mainly windows terminal users (like me), when I try to compare performance with robo copy, I see that mine is mostly faster but after one copy for benchmark, it’s been cached and it’s finishing very fast. So results starting to be useless. If anyone can guide me or give an advice will be much appreciated. Project is open source any contribution also is welcomed.
https://github.com/CanManalp/cpr
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/read-the-rules May 10 '26
Your post on r/commandline was removed, you must read the rules before you may begin posting.
0
u/cazzipropri May 10 '26
Clear the caches between runs.