I have to disagree with this as an Iranian working in Germany who moved with an offer on a Blue Card.
After getting an offer, getting visa was 1 week, I started working immediately, have changed job with only bureaucracy being involved is a small email to the Foreigners employment Office(LABO) to confirm my new contract looks good.
I think people have an unfair view of state of immigration in EU.
Regarding your other point about racism, that experience is not representative of the whole of EU. I am biased as I live in Berlin but I think you are also biased (probably) if you live in the multi cultural centers of US(SV/LA/NYC/Seattle etc.).
I have not had any horrible racism experience neither my friends whom I discuss these things regularly. I am sure if I lived in a small town/city, I will get racism behavior regularly, independent of EU, USA, Canada etc.
To clarify: Took 1 week from Turkey where I was living then, from Iran would have been longer due to German Embassy inadequate staffing, etc.