
Benchmark Rust Code Reliably With Criterion
Set up Criterion 0.5 in Rust 1.83, write a bench_function with black_box, run cargo bench and read the time estimate, outliers and change detection.
Tag
445 posts

Set up Criterion 0.5 in Rust 1.83, write a bench_function with black_box, run cargo bench and read the time estimate, outliers and change detection.

Build a Yocto 5.0 standard SDK installer with bitbake -c populate_sdk, install it, source the environment script and cross-compile a program.

Run low-priority background work in vApplicationIdleHook: enable it, keep it short and non-blocking, work in slices, and know when a task is better.

Learn how I2C and SPI work on the wire, what each costs in pins and speed, and how Linux splits each into controller drivers and client drivers for developers.

The number systems and bit operations behind every emulator: binary, hex, shifts, AND, OR, XOR, masks, signed bytes and sign extension, with C examples.

Learn what IEEE 754 NaN, infinity and negative zero are, how they arise, why NaN is not equal to itself, and how to test for each safely in C.

Write LLVM IR from C with clang -S -emit-llvm, then read types, basic blocks, loads, stores, phi nodes and calls well enough to check what the compiler did.

Compile a C program with clang -g, load it in LLDB, break on main, run, read the stop report, step with next and step, and quit. A first session with output.

The fixed rules of JCL syntax on z/OS: the // identifier, name, operation and operand fields, column 72, continuing a statement, and comment lines with //*.

Build Google Benchmark 1.9, write a first BM_ function with the state loop, read the Time, CPU and Iterations columns, and avoid beginner traps.

Learn when to set IMAGE_FEATURES in an image recipe and EXTRA_IMAGE_FEATURES in local.conf, which features exist on Yocto 5.0, and how to verify the result.

Change a running FreeRTOS timer's period with xTimerChangePeriod: what happens to the countdown, the block time, ISR use and a retry backoff example.