Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
SchedulerBenchmarkChannel.ino File Reference
#include <Scheduler.h>
#include <Scheduler/Channel.h>
Include dependency graph for SchedulerBenchmarkChannel.ino:

Go to the source code of this file.

Classes

struct  msg_t
 

Functions

void setup ()
 
void loop ()
 
void producer ()
 
void consumer ()
 

Variables

const size_t PAYLOAD_MAX = 8
 
Channel chan
 
unsigned long count = 0
 

Detailed Description

Version
1.0

License

Copyright (C) 2015-2016, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Description

Benchmark Scheduler Channel.

Arduino 1.6.7, Arduino Pro-Mini

Messages per second (send/recv). PAYLOAD 1, 8 Arduino Pro-Mini 23921 (41.80 us), 22002 (45.45 us) Arduino Mega 2560 21379 (46.77 us), 19834 (50.41 us) Arduino Due 165322 (6.05 us), 160893 (6.22 us)

Definition in file SchedulerBenchmarkChannel.ino.

Function Documentation

void consumer ( )

Definition at line 75 of file SchedulerBenchmarkChannel.ino.

void loop ( )

Definition at line 56 of file SchedulerBenchmarkChannel.ino.

void producer ( )

Definition at line 68 of file SchedulerBenchmarkChannel.ino.

void setup ( )

Definition at line 45 of file SchedulerBenchmarkChannel.ino.

Variable Documentation

Channel chan

Definition at line 42 of file SchedulerBenchmarkChannel.ino.

unsigned long count = 0

Definition at line 43 of file SchedulerBenchmarkChannel.ino.

const size_t PAYLOAD_MAX = 8

Definition at line 37 of file SchedulerBenchmarkChannel.ino.