We analyze the optimization of the running times of Green's function first-passage (GFFP) algorithms. The running times for these new first-passage (FP) algorithms [1][2][3][4], which use exact Green's functions for the Laplacian to eliminate the absorption layer in the "walk on spheres" (WOS) method [5][6][7][8][9], are compared with those for WOS algorithms. It has been empirically observed that GFFP algorithms are more efficient than WOS algorithms when high accuracy is required [2][3][4]. Additionally, it has been observed that there is always an optimal distance from the surface of the absorbing boundary, δ I , for a GFFP algorithm within which a FP surface can be permitted to intersect the boundary [2][3][4]. In this paper, we will provide a rigorous complexity analysis consistent with these observations. This analysis is based on estimating the numbers of WOS and GFFP steps needed for absorption on the boundary, and the complexity and running times of each WOS and GFFP step.As an illustration, we analyze the running times for calculating the capacitance of the unit cube using both GFFP and WOS.