From dabe980e67d45d6445246ee0f3c0dac96c795947 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 26 Feb 2021 09:20:05 -0600 Subject: [PATCH] docs: rpi benchmarks, build instructions --- README.md | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d27de13..5a1ce44 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,13 @@ Requires: - [Catch2](https://github.com/catchorg/Catch2) (on macOS, `brew install catch2`) ``` -$ mkdir build -$ cd build -$ cmake .. -DSC_PATH=/path/to/supercollider -DCMAKE_INSTALL_PREFIX=/path/to/extensions -$ make -$ ./test_bytebeat -$ make install +$ cmake -Bbuild -H. \ + -DSC_PATH=/path/to/supercollider \ + -DCMAKE_INSTALL_PREFIX=/path/to/extensions \ + -DCMAKE_BUILD_TYPE=RELEASE +$ cmake --build build/ --target test_bytebeat +$ ./build/test_bytebeat +$ cmake --build build/ --target install ``` `/path/to/supercollider` is the path to the root of your SuperCollider source installation. @@ -63,9 +64,9 @@ $ ./bytebeat "((t<<1)^((t<<1)+(t>>7)&t>>12))|t>>(4-(1^7&(t>>19)))|t>>7" | head - $ sox -r 8000 -c 1 -t u8 crowd.raw crowd.wav ``` -## Performance +## Benchmarks -Benchmarked on a 13-inch M1 MacBook Pro (2020) +Host: 13-inch M1 MacBook Pro (2020) ``` ............................................................................... @@ -82,3 +83,21 @@ eval crowd 100 615 1.6605 ms 27.3658 ns 27.3508 ns 27.382 ns 0.0791974 ns 0.0684235 ns 0.0937675 ns ``` + +Host: Raspberry Pi 3 Model B+ + +``` +............................................................................... + +benchmark name samples iterations estimated + mean low mean high mean + std dev low std dev high std dev +------------------------------------------------------------------------------- +parse crowd 100 3 20.427 ms + 68.03 us 67.885 us 68.377 us + 1.098 us 485 ns 1.907 us + +eval crowd 100 557 15.1504 ms + 281 ns 279 ns 284 ns + 13 ns 9 ns 18 ns +```