You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env python3fromdatetimeimportdatetimefromfluvioimportFluvioimporttimePARTITION=0if__name__=="__main__":
# Connect to clusterfluvio=Fluvio.connect()
producer=fluvio.topic_producer("simple")
start_time=time.time()
forxinrange(10000):
producer.send_string("{}: timestamp: {}".format(x, datetime.now()))
# Flush the last entryproducer.flush()
print("completed in {} seconds", (time.time()-start_time))
10K records pushed in 1.2153611183166504 seconds, when if you increase the range to 100000
python3 producer100K.py
The same code takes 64.67606687545776 to complete.
Rust producer doesn't have such behaviour.
The text was updated successfully, but these errors were encountered:
slack thread: https://infinyon.slack.com/archives/CQ8UX6SBH/p1684349700779719
simple producer in python:
10K records pushed in 1.2153611183166504 seconds, when if you increase the range to 100000
python3 producer100K.py
The same code takes 64.67606687545776 to complete.
Rust producer doesn't have such behaviour.
The text was updated successfully, but these errors were encountered: