During opiate withdrawal benzos are fucking KEY to have on hand. Now you don't want to take them for more than a week, maybe, to help you get through the worst of the physical part. You don't want to end up addicted to them, after detoxing from opiates.
Personally I prefer Valium or Klonopin during withdrawals, due to their long half life. Valium also has excellent muscle relaxing properties, and help immensely with the restless legs, muscle tension, anxiety, and especially insomnia.
Xanax is more powerful, but it lacks the muscle relaxation and isn't very good for sleep, due to its short half life. It IS good to have around though, for breakthrough anxiety. If you take a high enough dose though you will probably pass out and in my opinoin xanax is the benzo that will get you the most 'fucked up' feeling, which certainly will take your mind off of the withdrawal.
The best way to do it in my experience would be kpin/valium high dose in the am, high dose in the pm, as well as having xanax on hand and maybe taking a couple mg mid day, and some right before sleep combined with the valium. Temazepam/restoril is also a good choice for the night time, it helps with sleep greatly.
Unfortunately benzos don't help with the hot/cold flashes, sweating, stomach, pain, etc. So if you have a good supply of benzos, also invest in some loperamide (immodium) for the shits, and a decent dose of lope will also help reduce most withdrawal symptoms since it is an opiod, but it barely crosses the BBB so there isn't my recreational potential. But a high dose certainly helps reduce many symptoms. Ibuprofen is also very helpful for muscle/joint/bone pain.
Note: Benzos are addicting (obviously), so only use them for the first few days of withdrawal, to help get through the worst of it. Taking high doses to sedate/knock yourself out for a few days is fine, but you don't want to develop a dependence to benzos. benzo withdrawal is worse than opiate withdrawal in my opinion, it is horrirble