algorithm benchmarking
- From: SethP <kaioptera@xxxxxxxxx>
- Date: Sat, 4 Feb 2012 15:14:49 -0800 (PST)
Hi there,
I'd like to benchmark some algorithms and while I'm an experienced coder, linux internals is definitely not my area of expertise, so I have some questions:
1. Is there a solution I'm unaware of that already does this?
2. Assuming there isn't, what would be a good way to benchmark the algorithm with:
a) an accurate picture of the peak memory usage and utime
b) a simple interface for the algorithm to implement
My current idea is to have the benchmarking tool start the algorithm implementation as a child process, then get its /proc/PID/status mem info as a baseline, then send the child a signal to tell it to start, and then wait for the algorithm to send a signal indicating it's finished, then get its procinfo again and then kill it. So the algorithm implementation would need to adhere to the signaling spec and sleep when it's done and that's it.
Is this really dumb? I obviously have no idea what I'm talking about; I'd just like to measure as close to the algorithm as possible to get accurate benchmarks, without imposing a lot of complexity on the algorithm implementer.
Thanks for any help!
Seth
.
- Prev by Date: eScan Antivirus Software Products
- Next by Date: object file memory
- Previous by thread: eScan Antivirus Software Products
- Next by thread: object file memory
- Index(es):
Relevant Pages
|