Four well-known algorithms for calculation of the Voigt profile [R.J. Wells, J. Quant. Spectrosc. Radiat. Transfer 62, 29-48 (1999); M. Kuntz and M. Hopfner, J. Quant. Spectrosc. Radiat. Transfer 63, 97-114 (1999); J. Humlicek, J. Quant. Spectrosc. Radiat. Transfer 27, 437 (1982); and S.R. Draison, J. Quant. Spectrosc. Radiat. Transfer 16, No. 7, 611-614 (1976)] are compared in the speed and accuracy. It is shown that the Draison's algorithm provides the best results. Simple estimating equations are given for optimization of the rule of transition from one grid to another in a multigrid algorithm [B.A. Fomin, "Effective line-by-line technique to compute radiation absorption in gases," Preprint IAE-5658/1 (Russian Research Center "Kurchatov Institute," Moscow, 1993); B.A. Fomin, J. Quant. Spectrosc. Radiat. Transfer 53, 663-669 (1995)] for the line-by-line method.