This is just a data point I think some gun owners will find interesting. I tested this all by myself after I was given an extra pair of safety glasses that didn’t fit to well with my headphones. The safety glasses had a one piece frame and lens construction which is better than having those pieces separate. I shot the spare pair of safety glasses twice with a 18.5″ barreled 12 gauge shotgun loaded with salt-of-the-earth 7.5 birdshot rounds. The distance was ten yards for both shots and the glasses were rated ANSI Z87+ which is nothing too special.
The force from the cloud of shot smashed the nose pads off, as well as the temples (the temples are the spindly pieces that rest on your ears). The removal of the temples may have been caused by the way I had the glasses braced up against the post it was on. The other factors could have been that the temples are maybe made of a skimpier plastic. As you can see, the frame was deformed a bit but still resisted complete penetration from the shotgun pellets.
If you wanted higher eye protection against high velocity objects you could buy glasses that meet the U.S. Military Standard known as MIL-PRF-31013. This standard requires that glasses stop a .15 caliber, 5.8 grain blunt projectile traveling at 640fps. The ANSI Z87+ standard means it can withstand a .25 caliber ball weighing 16 grains moving at 150 fps. If you do the math on that, MIL-PRF-31013 protective glasses can hold up to a skinnier projectile that is carrying five times the energy.