Skip to content

Instantly share code, notes, and snippets.

@ChristianAmannKT
ChristianAmannKT / main.cpp
Last active August 23, 2023 07:00
ESP32 code to benchmark the arrays from https://github.com/K-Type-de/SubBitPackedArray/
#include <Arduino.h>
#include "bitpackedarray.h"
#include "subbitpackedarray.h"
#include "superbitpackedarray.h"
constexpr uint16_t num_states = 17;
constexpr std::size_t array_size = 100000;
constexpr std::size_t loop_size = 10000000;