Optical gadgets will take the role of electronic devices in the following decade due to their fast speed, low power consumption, and low heat tolerance. As a consequence, photonic crystal (PhC) based all-optical Buffer, AND, and OR (BAO) logic gates (LoG) were constructed by exploiting square lattice silicon rods with an air background. The suggested LoGs function efficiently by altering the phase of light beams having a wavelength of 1550 nm and are working on the beam-interference principle. The structure is modeled and tested through the finite-difference timedomain (FDTD) approach. For each logic gate, the performance parameter of extinction ratio (ER) is determined by tweaking the silicon rod radius and refractive index over a set of parameters. The suggested all-optical BAO LoG has extinction ratios of 11.84 dB, 33.9 dB, and 11.65 dB, respectively. The response time and operating speeds for each input combination are also calculated and tabulated. The processing speeds of BAO were observed to be 38 THz, 27.7 THz, and 38.46 THz, respectively.