1
0
mirror of https://gitlab.com/lander-team/plots.git synced 2025-06-15 14:36:40 +00:00

teensy plot

This commit is contained in:
Anson 2021-09-19 20:39:53 -07:00
parent fc785f7751
commit f755449b4a
2 changed files with 33 additions and 0 deletions

BIN
Teensybenchmark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

33
teensybenchmark.jl Normal file
View File

@ -0,0 +1,33 @@
using Plots
theme(:juno)
table = [
("Teensy 4.1*", 2314),
("Teensy 3.6", 440.72),
("Sparkfun ESP32", 351.33),
("Adafruit HUZZAH 32", 351.35),
("Teensy 3.5", 265.50),
("Adafruit Metro M4", 214.85),
("Teensy 3.2", 168.62),
("Arduino Due", 94.95),
("Arduino Zero", 56.86),
("Arduino Nano", 8.20),
("Arduino Mega", 7.03),
]
names = [row[1] for row in table]
performances = [row[2] for row in table]
let
bar(
names,
performances,
xrotation = 45,
label = "CoreMark Performance\nLarger is better",
)
title!("Performance of Common Microcontrollers")
end
savefig("Teensybenchmark.png")