|
3-phase PV router
|
Performance benchmarks for assembly multiplication functions. More...
#include <Arduino.h>#include <unity.h>#include "../bench_report.h"#include "../bench_timer.h"#include "../halt_after_tests.h"#include "mult_asm.h"
Go to the source code of this file.
Functions | |
| void | loop () |
| void | setUp (void) |
| void | setup () |
| void | tearDown (void) |
| void | test_performance_isr_simulation (void) |
| ISR-like performance test simulating real-world usage. | |
| void | test_performance_mult16x8_q8 (void) |
| Performance comparison for Q8 fractional multiplication. | |
| void | test_performance_multS16x16_to32 (void) |
| Performance comparison between assembly and standard multiplication. | |
| void | test_performance_multU16x16_to32 (void) |
| Performance comparison for unsigned multiplication (multU16x16_to32) | |
Variables | |
| uint8_t | i = 0 |
| uint8_t | max_blinks = 1 |
Performance benchmarks for assembly multiplication functions.
This file contains performance benchmarks for the assembly-optimized multiplication functions. They run in CI in the simavr simulator (uno_sim environment), which is cycle-accurate: the timings are exact and the same from run to run. Every result is also printed as a BENCH line (bench_report.h).
Based on:
Definition in file test_main.cpp.
| void loop | ( | ) |
| void setUp | ( | void | ) |
Definition at line 28 of file test_main.cpp.
| void setup | ( | ) |
Definition at line 479 of file test_main.cpp.
| void tearDown | ( | void | ) |
Definition at line 33 of file test_main.cpp.
| void test_performance_isr_simulation | ( | void | ) |
ISR-like performance test simulating real-world usage.
Definition at line 352 of file test_main.cpp.

| void test_performance_mult16x8_q8 | ( | void | ) |
Performance comparison for Q8 fractional multiplication.
Definition at line 247 of file test_main.cpp.

| void test_performance_multS16x16_to32 | ( | void | ) |
Performance comparison between assembly and standard multiplication.
Definition at line 41 of file test_main.cpp.

| void test_performance_multU16x16_to32 | ( | void | ) |
Performance comparison for unsigned multiplication (multU16x16_to32)
Definition at line 144 of file test_main.cpp.

| uint8_t i = 0 |
Definition at line 485 of file test_main.cpp.
| uint8_t max_blinks = 1 |
Definition at line 486 of file test_main.cpp.