It may not be entrapment, but I would think that cop would be as equally guilty of street racing as you were. In my opinion, unless the cop had his lights on, him revving and pulling away from a light like that would be him street racing.
Do you think that an undercover officer who poses as a prostitute to catch solicitors should be charged with prostitution?