From ea23193787768ff718a7e379ddfbf3ff6168ce3f Mon Sep 17 00:00:00 2001 From: rasbt Date: Sun, 25 May 2014 11:46:20 -0400 Subject: [PATCH] compared python 2 and 3 speeds --- ...ey_differences_between_python_2_and_3.html | 21 ++++++++++++++++++- ...y_differences_between_python_2_and_3.ipynb | 19 +++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/tutorials/key_differences_between_python_2_and_3.html b/tutorials/key_differences_between_python_2_and_3.html index c8b8cbe..74d5094 100644 --- a/tutorials/key_differences_between_python_2_and_3.html +++ b/tutorials/key_differences_between_python_2_and_3.html @@ -2868,7 +2868,26 @@ In [8]:
-

Note
Some people pointed out the speed difference between Python 3's range() and Python2's xrange(). Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2.

+



+
+
+ +
+
+
+
+
+

Note about the speed differences in Python 2 and 3

+
+
+
+ +
+
+
+
+
+

Some people pointed out the speed difference between Python 3's range() and Python2's xrange(). Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2.

diff --git a/tutorials/key_differences_between_python_2_and_3.ipynb b/tutorials/key_differences_between_python_2_and_3.ipynb index 79065ea..8b2577a 100644 --- a/tutorials/key_differences_between_python_2_and_3.ipynb +++ b/tutorials/key_differences_between_python_2_and_3.ipynb @@ -1,7 +1,7 @@ { "metadata": { "name": "", - "signature": "sha256:8b17f6649c9b74d878c198037ee831fbec78e7ac375adfc4a62f03266d9d66c3" + "signature": "sha256:eb93a4258ce700755924939b5dc873c027a656b1faafcd0228616b8575378418" }, "nbformat": 3, "nbformat_minor": 0, @@ -881,7 +881,22 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "**Note** \n", + "
\n", + "
" + ] + }, + { + "cell_type": "heading", + "level": 4, + "metadata": {}, + "source": [ + "Note about the speed differences in Python 2 and 3" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ "Some people pointed out the speed difference between Python 3's `range()` and Python2's `xrange()`. Since they are implemented the same way one would expect the same speed. However the difference here just comes from the fact that Python 3 generally tends to run slower than Python 2. " ] },