Write benchmark for sidorares/nodejs-mysql-native
Closed this issue · 4 comments
sidorares commented
Benchmark for http://github.com/sidorares/nodejs-mysql-native
Sannis commented
I think there are some difficulties with it. It will be good if after the completion of each query an event will be emitted. It is necessary to run queries to create tables and right time measures.
sidorares commented
client.query(q).on('end', query_done); - query finished
client.auth( ).on('end' ) - clent connected and authenticated
for (var i=0; i < max_queries; ++i)
command = client.query(q);
command.on('end', last_query_done);
-- enqueue max_queries and fire last_query_done on execution of last
Sannis commented
Thanks for this, I'll try to write bench in near future :-)