Which one code is faster?

Mastino:
So the first one is faster. Thank you very much!

Only by a few percent, digitalWrite is a slow routine.

Perhaps you meant to ask "how do I do fast pin I/O?" to which the answer is direct-port manipulation.