ori-drs / allan_variance_ros

ROS compatible tool to generate Allan Deviation plots
BSD 3-Clause "New" or "Revised" License
496 stars 87 forks source link

How long should this take to run? #15

Closed seajayshore closed 2 years ago

seajayshore commented 2 years ago

Not complaining - trying to plan - but approx. how long should the allan_variance computation process take for say ~3hr long data?

I have a rosbag ~3hrs (11214s) long being processed. The message Computed X averages for period Y is progressing through 1-unit of "period" every ~3.5s real-time. If I take "period" to mean the seconds in the rosbag it looks like my computer will take >10hrs to process... Is just how it is or am I missing something?

Obviously this is dependant on my hardware. I'm on a Ryzen 3600X based machine 16GB if that helps.

seajayshore commented 2 years ago

Solved! I bothered to read the code (shame on me being lazy).

The program iterates 10,000 times (going from "period" = 0.0 -> 1000.0). So when you look at this message in the terminial don't think it refers to the time / duration in your bag file.

On my system, with my ~3hr bag, it took 3924s (just over 1hr) to complete. :+1:

It'd still be great to know if that's similar to other people. :-)

v-lopez commented 2 years ago

If you build with Release it's much faster.

I processed a 8h bag in 215seconds on a 3950X.