エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Python performance the easy(ish) way
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Python performance the easy(ish) way
Very nice! But let's say we're summing a LOT of numbers, like 0 through 10**8 (that's 100,000,000... Very nice! But let's say we're summing a LOT of numbers, like 0 through 10**8 (that's 100,000,000). >>> %timeit sumrange(10**2) 1000000 loops, best of 3: 1.42 us per loop >>> %timeit sumrange(10**8) 1 loops, best of 3: 1.13 s per loop >>> %timeit sumrange(10**10) 1 loops, best of 3: 701 s per loop