On 20 авг, 22:18, Isaac Schlueter <
i...@izs.me> wrote:
> npm publish?
>
> --i
Yep, I just did it. I hope I have correctly figured out in npm.
On this occasion, I would suggest the possibility of using npm not
only for the root user,
as well as be able to automatically publish a package version for all
tags in the repository.
On 20 авг, 22:39, Felix Geisendörfer <
fe...@debuggable.com> wrote:
> Nice, ideally we'll end up with two good mysql implementations : ).
>
> A few questions:
> - Do you already have some benchmark results to share?
> - Is your driver now async for everything (including connect), or just
> querying?
> - In your test-async.js, you are doing result.fetchAll(). Is that
> actually sync, or why do you need to call that in addition to just the
> query callback?
>
> --fg
You have done a great job over the node-mysql, I can not mention(I
cann't find a more appropriate word :-( ) it.
Yes, I can share my results on workstation(openSUSE 11.3, g++ 4.5.0,
node v0.2.0, mysqld 5.1.46):
Benchmarking Sannis-node-mysql-libmysqlclient:
**** Benchmark initialization time is 0.062s
**** 100000 escapes in 0.219s (456621/s)
**** 1000 sync reconnects in 0.243s (4115/s)
**** 10000 async insertions in 1.189s (8410/s)
**** 10000 rows sync selected in 0.07s (142857/s)
** Total time is 1.787s
Benchmarking felixge-node-mysql:
**** Benchmark initialization time is 0.101s
**** 100000 escapes in 0.198s (505051/s)
**** 1000 async reconnects in 1.003s (997/s)
**** 10000 async insertions in 1.962s (5097/s)
**** 10000 rows async selected in 1.365s (7326/s)
** Total time is 4.631s
Benchmarking stevebest-node-mysql:
**** Benchmark initialization time is 0.093s
**** 100000 escapes in 0.209s (478469/s)
**** 1000 async reconnects in 1.609s (622/s)
**** 10000 async insertions in 3.624s (2759/s)
**** 10000 rows async selected in 3.837s (2606/s)
** Total time is 9.373s
Your module without a doubt faster than the development of Yuichiro
MASUI and Stepan Stolyarov.
I understand that choosing the number of different benchmarks can be
achieved
first place in performance for both node-mysql-libmysqlclient and for
your node-mysql.
Main difference is for selecting and i think, that pure C
implementation of parser and access to V8 objects is expectedly
faster.
I admit that I could make a mistake in the benchmark and propose
overlook its code to avoid misunderstanding.
On 21 авг, 00:24, Guillermo Rauch <
rau...@gmail.com> wrote:
>
http://github.com/Sannis/node-mysql-libmysqlclient/blob/v0.0.7/tests/...
> I think `*query`* should be async, and the sync version should be the
> explicit one (`*querySync`*), in a similar fashion to how *fs* is
> architectured.
>
> --
> Guillermo Rauch
For you and last Felix question:
At this moment only query sending is async, fetch* functions are sync.
I received a few comments about the methods naming,
and soon all synchronous functions will be adopted by the 'Sync'
suffix. But I do not really understand how to deal
with the connected() method, which I would have left synchronous. I
plan to make asynchronous implementation connect() and fetch*()
by early September, when they are needed for my application.
I think to release an interim version 0.0.8, and for 0.1.0 implement
full asynchrony and freeze the API.
More will be only prepared statements, but I would not propose so far.