The GM 3.4 and 3.8 do get a bit of piston slap on start up
Two totally different engines . unless you mean the 3.3l .
i would first check your plugs and wires like wip99gt said . If that doesn't resolve the shake try taking a spray bottle and spray around the intake and throttle body with the engine running if it hesitates you might have a vacuum leak . also those cars are notorious for the intake gaskets and valve cover gaskets leaking . the ticking noise are usually a lifter , rocker or piston slap like wip said . I wouldn't be worried about it. Now if you start hearing a knocking sound than u need to get worried . Have u ever gotten a random misfire code .