Pythonとそのライブラリやフレームワークのパフォーマンス調査結果リスト

2021年10月18日



Python(フレームワークなし)

PythonのListの連結方法で算術演算子やextendを使ったときのパフォーマンス測定

https://chico-shikaku.com/2021/09/python-add-list-extend-performance/

PythonのStringで空文字をif文で判定したい場合のパフォーマンス調査

https://chico-shikaku.com/2019/11/python-string-empty-performance/

Pythonの条件分岐でnotをつけるとやっぱり動作は遅くなる?(Python3)

https://chico-shikaku.com/2019/11/python-conditional-branch-not-speed/

if 〇〇 != 〇〇とif not 〇〇 == 〇〇はどっちが早い?(Python3)

https://chico-shikaku.com/2019/11/python3-if-if-not-speed/

PythonでTrueとFalse、どちらを初期で格納した方が処理が早いのか(Python3)

https://chico-shikaku.com/2019/11/python-bool-ture-false-speed/

Pythonの計算でマイナスをするときは足し算で計算した方が早い説

https://chico-shikaku.com/2021/10/python-cal-add-perform-minus/

Pythonでisinstance(〇〇, ××)とtype(〇〇) is ××はどちらがパフォーマンスが良いのか

https://chico-shikaku.com/2021/10/python-isinstance-type-is-performance/

ライブラリ

PandasのDataFrameで空かどうか判定するためにパフォーマンスの最も良い方法

https://chico-shikaku.com/2020/12/pandas-dataframe-check-empty-performance/

Django

querysetでlen()よりcount()の方が圧倒的にパフォーマンスが良いから使うべき

https://chico-shikaku.com/2020/01/queryset-count-more-than-len/

querysetの存在確認にexists()とcount()はどちらの方が早い?

https://chico-shikaku.com/2020/01/queryset-which-exists-count/

querysetでbulk_create()とcreate()のパフォーマンス比較

https://chico-shikaku.com/2020/01/queryset-bulk_create-create-performace/

querysetで複数updateしたいならbulk_updateの方が早いから使うべき

https://chico-shikaku.com/2020/01/queryset-bulk_update-more-than-update/

exists()を使うよりもif querysetの方が実は早い?公式ドキュメントとは逆

https://chico-shikaku.com/2020/01/if-queryset-more-than-exists/

最後までお読みいただきありがとうございます。
よろしければブログやTwitterでのシェアをお願いしております。
コメントもお待ちしております。
誤植や勘違いなどございましたらコメント欄にて教えていただけると幸いです。

Youtubeチャンネル開設いたしました。
チャンネル登録者1000人を目指しているので、良いと思った方はチャンネル登録をお願いしたいです。
https://www.youtube.com/channel/UC219XhmSRxmXltTy6COxSMw






Posted by ちこ