File:Arduino float-point operation speed.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Arduino_float-point_operation_speed.png(651 × 596 pixels, file size: 130 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Speed of various float-point operations in Arduino.

Board used: noname clone of Sparkfun Promicro 32U4-16MHz-5V.
All variables declared as volatile float.
Compiled/uploaded in Arduino IDE 1.8.13.
Speed measured by toggling a port pin (direct port XOR) and measuring the period of resulting pulses on this pin with a digital scope (one period = two loop cycles). All interrupts were disabled.
The overhead of toggling the pin and looping the loop(), 7 clock cycles or 0.44 us, has been deducted from measured values.

The anomalous short summation time (marked with asterisk) applies to cases when operands are so disparate in value, that after the normalization one of them is reduced to zero and the summation per se is skipped.
Date
Source Own work
Author Retired electrician

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current04:00, 28 December 2020Thumbnail for version as of 04:00, 28 December 2020651 × 596 (130 KB)Retired electrician (talk | contribs){{Information |Description={{en|Speed of various float-point operations in Arduino.<br> Board used: noname clone of Sparkfun Promicro 32U4-16MHz-5V.<br> All variables declared as volatile float.</br> Speed measured by toggling a port pin (direct port XOR) and measuring period of resulting pulses on this pin.<br> The overhead of toggling the pin and looping the loop(), 7 clock cycles or 0.44 us, has been deducted from measured values. |Source={{own}} |Date=2021-12-28 |Author= [[User:Retired el...

There are no pages that use this file.

Metadata