5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nerves RaspberryPi VS MangoPi Lチカ点滅速度競争

Posted at

はじめに

RISC-V搭載のMangoPiでNerves起動に成功したので、Lチカ速度競争をしてみました。

以前測定したRaspiと速度比較をしてみます。

結果

プログラム H時間 L時間 周期
RaspberryPi Zero W 6.2μS 4.8μS 11.0μS
MangoPi 10.6μS 10.6μS 21.2μS

RaspberryPiの方が速いという結果でした。
OTPやElixirのバージョンが違うのでCPUの能力以外の違いもあるかもしれませんが、コア単独の性能としては、Raspiの方が高そうですね。

# 波形(MangoPi)
image.png

実行プログラム

defmodule LED do
  alias Circuits.GPIO

  def start() do
    {:ok, output_gpio} = GPIO.open(36, :output)
    toggle_gpio(output_gpio)
  end

  def toggle_gpio(pin) do
    GPIO.write(pin, 1)
    GPIO.write(pin, 0)
    toggle_gpio(pin)
  end
end
5
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?