<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Rust</anon>
    <anon>Python</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>ループ(繰り返し処理)の書き方はプログラミング言語により様々です．使いやすい書き方を選択すればよいとは思いますが，気になったので処理速度を比較してみました． みーがよく使っている，Python, Rust, Node.js について，1千万個の要素を含む配列を用意して，前から順番に要素を取得する処理速度を計測しました． なお，言語によって配列という仕組みが異なるので，この記事では，ヒープ領域に保持されるものを配列と呼ぶことにします．したがって Python では List を，Rust では Vec を，Node.js では Array を用います． 環境 すべて共通の環境で実行して比較しまし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2023%2F11%2F10%2F225614&quot; title=&quot;ループの速度を Python, Rust, Node.js で比較する - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-11-10 22:56:14</published>
  <title>ループの速度を Python, Rust, Node.js で比較する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2023/11/10/225614</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
