Using sdk_perf to generate 1 million unique topics

Ooh, I didn’t know about the -hm option. That’s extremely helpful. Thanks!

@marc said:

@tkunnumpurath said:
I needed to do a test to generate messages with 1 million unique topics. Initially, I thought of writing a simple application that did this but then discovered that the free to download sdk_perf utility gives you this flexibility with the following parameters
-ptc=1000000 -ptp=topic/prefix/

This will generate incrementing topics starting with topic/prefix/000000 all the way to 999999. Note that if you are using java, you will have to increase the heap size significantly.

Nice, thanks @tkunnumpurath ! Also a hint for folks that want to give sdkperf a shot: you can of course see a bunch of options by running sdkperf with the -h help flag but you can also use -hm which will show you many more options the tool offers. I’ve found sdkperf super useful over the years but it has so many options that it’s impossible (at least for me!) to remember them all.