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

Go to the source code of this file.

Typedefs

typedef int event_t
 

Functions

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

Variables

const unsigned int QUEUE_MAX = 8
 
Queue< event_t, QUEUE_MAXqueue
 
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 Queue.

Arduino 1.6.7, Arduino Pro-Mini

Events per second (push/pull). QUEUE_MAX 2, 8 Arduino Pro-Mini 24029 (41.62 us), 92638 (10.79 us) Arduino Mega 2560 21466 (46.59 us), 86919 (11.50 us) Arduino Due 183411 (5.45 us), 677502 (1.48 us)

Definition in file SchedulerBenchmarkQueue.ino.

Typedef Documentation

typedef int event_t

Definition at line 38 of file SchedulerBenchmarkQueue.ino.

Function Documentation

void consumer ( )

Definition at line 71 of file SchedulerBenchmarkQueue.ino.

void loop ( )

Definition at line 53 of file SchedulerBenchmarkQueue.ino.

void producer ( )

Definition at line 65 of file SchedulerBenchmarkQueue.ino.

void setup ( )

Definition at line 42 of file SchedulerBenchmarkQueue.ino.

Variable Documentation

unsigned long count = 0

Definition at line 40 of file SchedulerBenchmarkQueue.ino.

Definition at line 39 of file SchedulerBenchmarkQueue.ino.

const unsigned int QUEUE_MAX = 8

Definition at line 37 of file SchedulerBenchmarkQueue.ino.