The document describes the firefly algorithm, a meta-heuristic optimization algorithm inspired by the flashing behaviors of fireflies. It discusses the concepts behind the algorithm including attractiveness proportional to brightness, and movement of fireflies towards brighter ones. It then applies the firefly algorithm to six benchmark optimization test functions, and finds it performs well obtaining optimal or near-optimal solutions, though it may get trapped in local optima for some functions and converges more slowly with larger populations.