Author vstinner
Recipients jimmylai, vstinner, yselivanov
Date 2017-09-05.18:58:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504637915.03.0.798298216603.issue31350@psf.upfronthosting.co.za>
In-reply-to
Content
According to Jimmy, asyncio.get_event_loop() behaves differently if it's called while an event loop is running. So my first benchmark was wrong.

Attached bench_get_event_loop.py measures asyncio.get_event_loop() performance when an event loop is running. I get a different result: 

haypo@selma$ ./python -m perf compare_to ref.json patch.json 
Mean +- std dev: [ref] 555 ns +- 11 ns -> [patch] 498 ns +- 11 ns: 1.11x faster (-10%)

Ok, now it's 10% faster :-)
History
Date User Action Args
2017-09-05 18:58:35vstinnersetrecipients: + vstinner, yselivanov, jimmylai
2017-09-05 18:58:35vstinnersetmessageid: <1504637915.03.0.798298216603.issue31350@psf.upfronthosting.co.za>
2017-09-05 18:58:35vstinnerlinkissue31350 messages
2017-09-05 18:58:34vstinnercreate