I am a complete beginner with TeX, I would like to draw JMH benchmark graph using TeX. Since I have output results in CSV format. This is my actual code:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{siunitx}
\usepackage{graphicx}
\pgfplotsset{compat=1.5}
\title{Performance Report}
\date{}
\begin{document}
\maketitle
\begin{tikzpicture}
\begin{axis}[title=Getbytes performance,
xlabel = String length,
ylabel = Performance op/s,
]
\addplot[
only marks,
mark = *,
/pgfplots/error bars/.cd,
x dir = both,
y dir = both,
x explicit,
y explicit,
]
table [
x=Param: length,
y=Score,
]
{jmh-result-getbytes.csv};
\addlegendentry{Average value}
\end{axis}
\end{tikzpicture}
\end{document}
My CSV file:
"Benchmark","Mode","Threads","Samples","Score","Score Error (99.9%)","Unit","Param: encoding","Param: length"
"test","thrpt",1,25.000000,24275.400025,695.792149,"ops/ms",ISO-8859-1,1
"test","thrpt",1,25.000000,23954.805784,545.186364,"ops/ms",ISO-8859-1,2
"test","thrpt",1,25.000000,23205.982297,573.971327,"ops/ms",ISO-8859-1,4
"test","thrpt",1,25.000000,24272.662601,937.668790,"ops/ms",ISO-8859-1,8
"test","thrpt",1,25.000000,24324.370910,1122.289177,"ops/ms",ISO-8859-1,16
"test","thrpt",1,25.000000,23960.521519,928.378626,"ops/ms",ISO-8859-1,32
For me the x is : Param: length
and y is : score
But when I run make plot.pdf I get the following message error :
! Package pgfplots Error: Sorry, could not retrieve column 'Param: length' from
table '\\pgfplotstableread@filename@@table@name '. Please check spelling (or introduce name aliases)..
