This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients jimmylai, vstinner, yselivanov
Date 2017-09-05.18:58:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 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 :-)
Date User Action Args
2017-09-05 18:58:35vstinnersetrecipients: + vstinner, yselivanov, jimmylai
2017-09-05 18:58:35vstinnersetmessageid: <>
2017-09-05 18:58:35vstinnerlinkissue31350 messages
2017-09-05 18:58:34vstinnercreate