You asked

Canon ef s 10 22mm f 3 5 4 5 usm vs tamron 10 24mm f 3 5 4 5?

Here is what the site says about that.

From Canon EF-S 10-22mm f/3.5-4.5 USM: Canon EF-S 10-22mm f/3.5-4.5 USM: A zoom lens by Canon for APS-C cameras, 10-22mm f/3.5-4.5. Specs - Maker: Canon - Focal length: 10-22mm (zoom) - Maximum aperture: f/3.5-4.5 (it gets darker as you zoom in) - Made for: APS-C sensors - Mounts: Canon EF - Stabilised: no - Autofocus: yes What it frames like - On APS-C (Canon) (Canon EF): like 16-35mm on full frame; f/3.5-4.5 gives about the depth of field of f/5.6-7.2 there. ...

From Lenses: Third-party lenses: Sigma, Tamron, Samyang and Viltrox make good lenses for many mounts, often for much less than the camera maker's own. Check that the lens supports your body's autofocus features, and that the maker allows third-party lenses on that mount: not every brand does.

Quoted from this site's pages.

From these pages