A hand-held, self-contained, battery-powered test instrument for analyzing composition of a sample includes an exciter for exciting at least a portion of the sample, a compact cross-dispersed spectrometer for receiving an optical signal from the excited portion of the sample and a processor for processing spectral data about the optical signal from the spectrometer. The exciter may include a spark generator and a counter electrode, a laser or other device for generating the optical signal from the sample portion. The spectrometer has a wavelength range broad enough to enable the test instrument to detect and determine relative quantities of carbon, phosphorous, sulfur, manganese, silicon, iron and other elements necessary to identify common alloys. The spectrometer includes a structural member made of a light-weight material having a small coefficient of thermal expansion (CTE). The spectrometer is dimensionally stable over a range of expected ambient temperatures, without controlling the temperature of the spectrometer.