[Python-Dev] Pure pickle bechmark. (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sun Jul 9 19:47:16 EDT 2017
- Previous message (by thread): [Python-Dev] Pure pickle bechmark.
- Next message (by thread): [Python-Dev] Pure pickle bechmark.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Please explain how to reproduce your benchmark. Maybe write a shell script?
Victor
Le 9 juil. 2017 17:49, "Bhavishya" <bhavishyagopesh at gmail.com> a écrit :
Hello,
1).I was going through the code of python pickle to search any optimization possibility.But the only thing that I found very alarming was again the import time(I tried with lazy-import but it didn't helped much.) I found py3 to be ~45 times slower on* initial imports(very raw measure..using "time." ) *as compared to py2 on an usual example. py3-> ./python -c ' favoritecolor = { "lion": "yellow", "kitty": "red" } pickle.dump( favoritecolor, open( "save.p", "wb" ) )' 0.009715557098388672(time taken to do initial imports...measured using time.time() ) py2-> ./python -c ' favoritecolor = { "lion": "yellow", "kitty": "red" } pickle.dump( favoritecolor, open( "save.p", "wb" ) )' 0.000236034393311(time taken to do initial imports...measured using time.time() ) Do you have any thought/ideas on improving this?
Thank You.
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ victor.stinner%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170710/8fe7a4d1/attachment.html>
- Previous message (by thread): [Python-Dev] Pure pickle bechmark.
- Next message (by thread): [Python-Dev] Pure pickle bechmark.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]