project-mahiwa / mahiwa-frontend-rust

mahiwaのRust向けフロントエンド
https://docs.rs/mahiwa_frontend_rust/latest/mahiwa_frontend_rust/
MIT License
0 stars 0 forks source link

[✨Feature]:素数判定測定 #27

Open usuyuki opened 11 months ago

usuyuki commented 11 months ago

✨ 概要

なぜ必要

備考

usuyuki commented 11 months ago

(164042+ 164043+ 164043+ 164043+ 164043)/5=164042.8≒164043

full

❯ m r-core2
pio run -t upload -e m5stack-core2
Processing m5stack-core2 (platform: espressif32; board: m5stack-core2; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html
PLATFORM: Espressif 32 (6.4.0+sha.6186d2c) > M5Stack Core2
HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20011.230801 (2.0.11) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - tool-mkfatfs @ 2.0.1 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 2.230.0 (2.30) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wasm3 @ 0.5.0
Building in release mode
Compiling .pio/build/m5stack-core2/src/lib/roader/wasm-roader.cpp.o
Linking .pio/build/m5stack-core2/firmware.elf
Retrieving maximum program size .pio/build/m5stack-core2/firmware.elf
Checking size .pio/build/m5stack-core2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.9% (used 40864 bytes from 4521984 bytes)
Flash: [=         ]   5.9% (used 386881 bytes from 6553600 bytes)
Building .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Serial port /dev/ttyUSB0
Connecting.....
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:f9:a4:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0006efff...
Compressed 17536 bytes to 12202...
Writing at 0x00001000... (100 %)
Wrote 17536 bytes (12202 compressed) at 0x00001000 in 0.7 seconds (effective 194.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 267.3 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 385.5 kbit/s)...
Hash of data verified.
Compressed 387248 bytes to 208038...
Writing at 0x00010000... (7 %)
Writing at 0x0001c6da... (15 %)
Writing at 0x0002a00c... (23 %)
Writing at 0x0003228b... (30 %)
Writing at 0x000374d7... (38 %)
Writing at 0x0003ceb0... (46 %)
Writing at 0x00042478... (53 %)
Writing at 0x00047718... (61 %)
Writing at 0x0004d0c2... (69 %)
Writing at 0x0005559f... (76 %)
Writing at 0x0005e56d... (84 %)
Writing at 0x00064d07... (92 %)
Writing at 0x0006a84d... (100 %)
Wrote 387248 bytes (208038 compressed) at 0x00010000 in 5.0 seconds (effective 615.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
=============================================================================================== [SUCCESS] Took 14.03 seconds ===============================================================================================

Environment    Status    Duration
-------------  --------  ------------
m5stack-core2  SUCCESS   00:00:14.025
=============================================================================================== 1 succeeded in 00:00:14.025 ===============================================================================================
make[1]: ディレクトリ '/opt/usuyuki/mahiwa_space/mahiwa-backend' に入ります
pio device monitor -b 115200
--- Terminal on /dev/ttyUSB0 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
[   455][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
Project Mahiwa started🎉
ESP32 Mode
CPU Frequency:240 MHz
Project Mahiwa : WebAssembly launch
Rust mahiwa | check_1s
result: prime
time(micro): 164042
Project Mahiwa : WebAssembly done
WebAssembly already done. if you want to re run, please restart.
usuyuki commented 11 months ago

これcheck_1sになってるけど,ただのtypoo