|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | 3 | "name": "", |
4 | | - "signature": "sha256:ae2429a793f28d6caf410da8ce5690a243070d84b5eb141245c096e374c168d5" |
| 4 | + "signature": "sha256:9b684ae1d67b480d34f80c15b281859c0bc91e94b26b941fa04ce142f3505c5d" |
5 | 5 | }, |
6 | 6 | "nbformat": 3, |
7 | 7 | "nbformat_minor": 0, |
|
1108 | 1108 | "input": [ |
1109 | 1109 | "def test_plainlist(plain_list):\n", |
1110 | 1110 | " for i in plain_list:\n", |
1111 | | - " print(i)\n", |
| 1111 | + " pass\n", |
1112 | 1112 | "\n", |
1113 | 1113 | "def test_listcompr(listcompr):\n", |
1114 | 1114 | " for i in listcompr:\n", |
1115 | | - " print(i)\n", |
| 1115 | + " pass\n", |
1116 | 1116 | "\n", |
1117 | 1117 | "def test_generator(generator):\n", |
1118 | 1118 | " for i in generator:\n", |
1119 | | - " print(i)\n", |
| 1119 | + " pass\n", |
1120 | 1120 | "\n", |
1121 | 1121 | "def test_generator_yield(generator_yield):\n", |
1122 | 1122 | " for i in generator_yield:\n", |
1123 | | - " print(i)\n", |
| 1123 | + " pass\n", |
1124 | 1124 | "\n", |
1125 | 1125 | "print('plain_list: ', end = '')\n", |
1126 | 1126 | "%timeit test_plainlist\n", |
|
1138 | 1138 | "output_type": "stream", |
1139 | 1139 | "stream": "stdout", |
1140 | 1140 | "text": [ |
1141 | | - "plain_list: 10000000 loops, best of 3: 54.5 ns per loop" |
| 1141 | + "plain_list: 10000000 loops, best of 3: 55.6 ns per loop" |
1142 | 1142 | ] |
1143 | 1143 | }, |
1144 | 1144 | { |
|
1147 | 1147 | "text": [ |
1148 | 1148 | "\n", |
1149 | 1149 | "\n", |
1150 | | - "listcompr: 10000000 loops, best of 3: 54.4 ns per loop" |
| 1150 | + "listcompr: 10000000 loops, best of 3: 54.8 ns per loop" |
1151 | 1151 | ] |
1152 | 1152 | }, |
1153 | 1153 | { |
|
1165 | 1165 | "text": [ |
1166 | 1166 | "\n", |
1167 | 1167 | "\n", |
1168 | | - "generator_yield: 10000000 loops, best of 3: 52.4 ns per loop" |
| 1168 | + "generator_yield: 10000000 loops, best of 3: 54.7 ns per loop" |
1169 | 1169 | ] |
1170 | 1170 | }, |
1171 | 1171 | { |
|
1176 | 1176 | ] |
1177 | 1177 | } |
1178 | 1178 | ], |
1179 | | - "prompt_number": 1 |
| 1179 | + "prompt_number": 2 |
1180 | 1180 | }, |
1181 | 1181 | { |
1182 | 1182 | "cell_type": "code", |
|
0 commit comments