You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,12 +107,27 @@ password: <token-value>
107
107
```
108
108
Make sure to include the `pypi-` prefix for your token value.
109
109
110
+
# Performance
111
+
112
+
The following benchmarks were measured on the Rasberry Pi 4, with all edgepi daemons disabled. They're also the slowest average of 3 runs.
113
+
114
+
The **Performance** column represents how long it takes to call one function, while the **Max Read Frequency** column represents how many times that function could be called every second.
115
+
116
+
| Feature | Performance | Max Read Frequency | Function | Example | Description |
117
+
| -- | -- | -- | -- | -- | -- |
118
+
| Single DIN | 0.85ms per 8 DIN | 1171 Hz |`digital_input_state(...)`|[examples/single_din.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/single_din.py)||
119
+
| Batched DIN | 0.52ms per 8 DIN | 1936 Hz |`digital_input_state_batch(...)`|[examples/batched_din.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/batched_din.py)||
120
+
| Single ADC | 97.3 ms per 8 ADC | 10.3 Hz |`set_config(...)` <br><br> `single_sample()`|[examples/single_adc.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/single_adc.py)| Reads from ADC1 only |
121
+
| Batched ADC | 6.49 ms per 8 ADC | 154 Hz |`read_samples_adc1_batch(...)`|[examples/batched_adc.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/batched_adc.py)| Reads from ADC1 only |
122
+
| Batched ADC/Diff | 5.467 ms per 4 ADC, 2 Diff | 183 Hz |`read_samples_adc1_batch(...)`|[examples/batched_adc_diff.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/batched_adc_diff.py)| Differential ADC inputs each use two pins. Reads from ADC1 only |
123
+
| Thermocouple (TC) | 100.2ms | 9.98 hz |`read_temperatures()`|[examples/single_tc.py](https://github.com/EdgePi-Cloud/edgepi-python-sdk/tree/main/examples/single_tc.py)| Limited by [hardware](https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31856.pdf) (see conversion mode). 100ms is needed for accurate (19 bit) readings |
124
+
110
125
# Bug Reports / Feature Requests
111
126
Use [GitHub Issues Page](https://github.com/EdgePi-Cloud/edgepi-python-sdk/issues) to report any issues or feature requests.
112
127
113
128
# Get involved
114
129
Follow [@edgepi_cloud on Twitter](https://twitter.com/edgepi_cloud/).
115
-
Read and subscribe to the [EdgePi blog](https://www.edgepi.com/blog).
130
+
See the [EdgePi wiki](https://wiki.edgepi.com/) for more information on how to get started with your EdgePi.
116
131
If you have a specific question, please check out our [discussion forums](https://www.edgepi.com/forums).
0 commit comments