I have only modified the pgfplots xbar example very little and it completely fails:
EDIT: Removed original example, it contained only a missing comma.
And do I really need to define for every entry a symbolic y coords? My complete list is about 40 entries.
EDIT: I implemented the answer with pgfplotstable, but the result looks wrong:
\pgfplotstableread[header=false, col sep=comma]{ % Read data table.
% First row doesn't have column names, hence the "header=false"
0.34,LaTeX Kernel
0.36,pre document class
0.48,document class
0.54,template packages
0.64,encoding (documents)
0.72,encoding (files)
0.88,Fonts
0.98,Packages: Base
1.01,Packages: Bugfix
1.03,relsize
1.13,Math
1.43,Math (using LaTeX 3)
2.64,pgf/tikz
2.72,siunitx
2.81,Symbols
2.85,Tables
3.01,Text
3.04,Quotes (csquotes)
3.3475,Bibliography (biblatex)
3.365,Figures
3.48,Captions
3.58,Index
3.745,Glossary
3.85,{Verbatim, Listings}
3.91,Fancy
3.92,Layout
4.015,Head and Foot
4.03,Headings
4.33,PDF
4.46,Additional
4.55,Style.tex
6.57,Document
}\compilationtimes
\begin{tikzpicture}
\begin{axis}[
xbar, xmin=0,
width=12cm, height=10cm, enlarge y limits=0.5,
xlabel={compilation time / seconds},
ytick=data,
nodes near coords, nodes near coords align={horizontal},
yticklabels from table={\compilationtimes}{1} % Get tables from second column of data table
]
\addplot table [
y expr=-\coordindex, % Use negative coordinate index as y coordinate
x index=0 % Use first column as x coordinate
] {\compilationtimes};
\end{axis}
\end{tikzpicture}


