これでテストした結果、

●シフトを使った版
>iftestsh
5917 msec

●||を使った版
>iftestnd
5425 msec
でした。
誤差は+-80msecのぐらいです。
下手に小細工しない方が速いのかな・・