NMF benchmarks - function generation