Add the code for benchmarking the global size and limit