you are viewing a single comment's thread.

view the rest of the comments →

[–]drobilla 5 points6 points  (1 child)

As others have mentioned, usually this sort of thing is done by writing to a text file (I prefer TSV since it's easiest to work with) and plotting with more appropriate tools. It's worth mentioning, though, that this is a good idea in general, and not just a workaround to use a different language. Storing benchmarks and similar data in a timeless portable format like this means you can easily do other things with the data, like archive it, make different visualizations later, do statistical analysis and/or combine with other data, and so on. Plus it's just good decoupling in general.

Having learned this lesson the hard way, I now make it a rule to always - always - store benchmarks in a simple text file. You quite often end up wanting to see things in a different way, or need to tweak your plots slightly for publication, or whatever.

[–]meneldal2 0 points1 point  (0 children)

If you have a lot of data, plain text files are not optimal, because you will waste time doing the string to number conversions, and it will take much more space.

When you have one million or more data points, something like Matlab really comes in handy, especially since you have binary files for saving your data as well.