The paper concerns the Gelfand-Kirillov dimension and the generating series of nonsymmetric operads. An analogue of Bergman's gap theorem is proved, namely, no finitely generated locally finite nonsymmetric operad has GK-dimension strictly between 1 and 2. For every r ∈ {0} ∪ {1} ∪ [2, ∞) or r = ∞, we construct a single-element generated nonsymmetric operad P such that GKdim(P) = r. We also provide counterexamples to two expectations of Khoroshkin and Piontkovski about the generating series of operads.