wrote benchmark for pipeline C