{"id":1775,"date":"2022-05-30T20:22:59","date_gmt":"2022-05-30T15:22:59","guid":{"rendered":"https:\/\/dicecamp.com\/insights\/?p=1775"},"modified":"2022-05-30T20:38:10","modified_gmt":"2022-05-30T15:38:10","slug":"python-to-get-64-faster-in-new-3-11-version","status":"publish","type":"post","link":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/","title":{"rendered":"Python to get 64% faster in new 3.11 version"},"content":{"rendered":"\n<p>We all are curious of how the new Python 3.11 version improves things compared to what we already have in Python 3.10. This snippet explores the performance capability of the new version in comparison with its predecessor 3.10.<\/p>\n\n\n\n<p><a href=\"https:\/\/medium.com\/@radecicdario\" target=\"_blank\" rel=\"noreferrer noopener\">Dario Radecic<\/a>, who\u2019s a Data Scientist and the CEO and founder at \u2018<em>Deep Data Digital<\/em>\u2019 recently published exciting news about the upcoming Python version 3.11.<\/p>\n\n\n\n<p>While the new version of Python is set to be released by October this year, Dario explored the&nbsp; <strong>Release Candidate- RC<\/strong> version of Python 3.11 and compared the performance metrics with earlier Python 3.10 to see which one is faster.<\/p>\n\n\n\n<p>It turned out that Python 3.11 achieves <strong>relatively faster performance<\/strong> with an average of 14% over its earlier version Python 3.10.&nbsp;<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Performance Benchmark: 3.11 vs. 3.10<\/h1>\n\n\n\n<p>In a tentative attempt to compare the newly released Python 3.11 (RC version) with the existing Python 3.10, Dario specified certain settings to objectively measure results.&nbsp;<\/p>\n\n\n\n<p>These included, installing two versions in separate Docker containers, a PC setup such as M1 Pro with a 10 core CPU (5 cores dedicated for each version), and using <a href=\"https:\/\/pyperformance.readthedocs.io\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Pyperformance package<\/strong><\/a> was used to measure performance of each version.<\/p>\n\n\n\n<p><strong><em>Quick Tip<\/em><\/strong>: <a href=\"https:\/\/www.docker.com\/resources\/what-container\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Docker<\/em><\/a><em> is an essential tool for Data Science and Machine Learning applications that eases the code sharing across a wide range of systems. A Docker container offers an isolated environment for your applications that would otherwise not run on other systems with different operating systems.<\/em><\/p>\n\n\n\n<p>After arranging the experimental setup, Dario ran a number of benchmark tests to find out the accuracy for each version. The <strong>results<\/strong> showed that overall, Python 3.11 is 14% more efficient than its predecessor Python 3.10.&nbsp;<\/p>\n\n\n\n<p>Moreover, considering each test separately, for a number of tests, the new version came out to be 64% faster while on others it performed slower. The details of the tests are as follows.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/SXYaDaHoER2msrL1wr84QL_ewcYncoy0ihxXyZ0tvHktlfsvFLCI1oUVZMP4MJoADjZW6LtU4316Gwcja3RZzVyYUoA4puJN9Grf-nNYvIIhm3g-WnSX53Tcm66g0T3iRcjmRB0YMs0hO4c10w\" alt=\"\" \/><figcaption><em>Image by <\/em><a href=\"https:\/\/medium.com\/@radecicdario\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Dario Radecic<\/em><\/a><em> at <\/em><a href=\"https:\/\/towardsdatascience.com\/python-is-about-to-become-64-faster-python-3-10-vs-python-3-11-benchmark-3a6abcc25b90\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Medium<\/em><\/a><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Python for Data Science<\/h1>\n\n\n\n<p>Python is a powerful programming language that enables advanced, scalable, automated, and efficient data science functions. These functions include, data wrangling, data visualization, and machine learning tasks.\u00a0<\/p>\n\n\n\n<p>With new work on improving the speed of Python processing, these steps are critical in enhancing development of data science applications where performance on huge datasets matters.\u00a0<\/p>\n\n\n\n<p>We look forward to seeing more work in making Python the fastest programming language on Earth.<\/p>\n\n\n\n<p><em>Happy Coding!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The new Python version 3.11 performs 64% faster in some tasks and achieves an overall 14% more efficiency compared to earlier 3.10 version.<\/p>\n","protected":false},"author":7,"featured_media":1785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9,17],"tags":[44,69,73],"class_list":{"0":"post-1775","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-analytics","8":"category-data-science","9":"category-machine-learning","10":"tag-data-science","11":"tag-machine-learning","12":"tag-news"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.14 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python to get 64% faster in new 3.11 version - Dicecamp Insights<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python to get 64% faster in new 3.11 version - Dicecamp Insights\" \/>\n<meta property=\"og:description\" content=\"The new Python version 3.11 performs 64% faster in some tasks and achieves an overall 14% more efficiency compared to earlier 3.10 version.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/\" \/>\n<meta property=\"og:site_name\" content=\"Dicecamp Insights\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-30T15:22:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-30T15:38:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dicecamp.com\/insights\/wp-content\/uploads\/2022\/05\/Picture3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"4436\" \/>\n\t<meta property=\"og:image:height\" content=\"2502\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ayesha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ayesha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/\",\"url\":\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/\",\"name\":\"Python to get 64% faster in new 3.11 version - Dicecamp Insights\",\"isPartOf\":{\"@id\":\"https:\/\/dicecamp.com\/insights\/#website\"},\"datePublished\":\"2022-05-30T15:22:59+00:00\",\"dateModified\":\"2022-05-30T15:38:10+00:00\",\"author\":{\"@id\":\"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/1b7d4bef40ac58bbedfa718df21e2463\"},\"breadcrumb\":{\"@id\":\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dicecamp.com\/insights\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python to get 64% faster in new 3.11 version\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dicecamp.com\/insights\/#website\",\"url\":\"https:\/\/dicecamp.com\/insights\/\",\"name\":\"Dicecamp Insights\",\"description\":\"All Things Tech!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dicecamp.com\/insights\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/1b7d4bef40ac58bbedfa718df21e2463\",\"name\":\"Ayesha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fc0617698baa4b6b794771cffa4c63de5ee5febb87eef29e53208d83b8be582e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fc0617698baa4b6b794771cffa4c63de5ee5febb87eef29e53208d83b8be582e?s=96&d=mm&r=g\",\"caption\":\"Ayesha\"},\"description\":\"I engineer the content and acquaint the science of analytics to empower rookies and professionals.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ayesha-saeed-13as96\/\"],\"url\":\"https:\/\/dicecamp.com\/insights\/author\/ayesha\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python to get 64% faster in new 3.11 version - Dicecamp Insights","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/","og_locale":"en_US","og_type":"article","og_title":"Python to get 64% faster in new 3.11 version - Dicecamp Insights","og_description":"The new Python version 3.11 performs 64% faster in some tasks and achieves an overall 14% more efficiency compared to earlier 3.10 version.","og_url":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/","og_site_name":"Dicecamp Insights","article_published_time":"2022-05-30T15:22:59+00:00","article_modified_time":"2022-05-30T15:38:10+00:00","og_image":[{"width":4436,"height":2502,"url":"https:\/\/dicecamp.com\/insights\/wp-content\/uploads\/2022\/05\/Picture3.png","type":"image\/png"}],"author":"Ayesha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ayesha","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/","url":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/","name":"Python to get 64% faster in new 3.11 version - Dicecamp Insights","isPartOf":{"@id":"https:\/\/dicecamp.com\/insights\/#website"},"datePublished":"2022-05-30T15:22:59+00:00","dateModified":"2022-05-30T15:38:10+00:00","author":{"@id":"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/1b7d4bef40ac58bbedfa718df21e2463"},"breadcrumb":{"@id":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dicecamp.com\/insights\/python-to-get-64-faster-in-new-3-11-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dicecamp.com\/insights\/"},{"@type":"ListItem","position":2,"name":"Python to get 64% faster in new 3.11 version"}]},{"@type":"WebSite","@id":"https:\/\/dicecamp.com\/insights\/#website","url":"https:\/\/dicecamp.com\/insights\/","name":"Dicecamp Insights","description":"All Things Tech!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dicecamp.com\/insights\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/1b7d4bef40ac58bbedfa718df21e2463","name":"Ayesha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dicecamp.com\/insights\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fc0617698baa4b6b794771cffa4c63de5ee5febb87eef29e53208d83b8be582e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc0617698baa4b6b794771cffa4c63de5ee5febb87eef29e53208d83b8be582e?s=96&d=mm&r=g","caption":"Ayesha"},"description":"I engineer the content and acquaint the science of analytics to empower rookies and professionals.","sameAs":["https:\/\/www.linkedin.com\/in\/ayesha-saeed-13as96\/"],"url":"https:\/\/dicecamp.com\/insights\/author\/ayesha\/"}]}},"_links":{"self":[{"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/posts\/1775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/comments?post=1775"}],"version-history":[{"count":6,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/posts\/1775\/revisions"}],"predecessor-version":[{"id":1782,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/posts\/1775\/revisions\/1782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/media\/1785"}],"wp:attachment":[{"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/media?parent=1775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/categories?post=1775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dicecamp.com\/insights\/wp-json\/wp\/v2\/tags?post=1775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}