Sannis/node-mysql-benchmarks

Write benchmark for sidorares/nodejs-mysql-native

Closed this issue · 4 comments

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.

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

Thanks for this, I'll try to write bench in near future :-)

Add benchmark code for sidorares/nodejs-mysql-native, closed by 68cd7a2