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

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
void incrementCounter ()
 

Variables

int counter = 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 library.

Arduino 1.6.7, Arduino Pro-Mini

SchedulerBenchmark: started

  1. Initiate scheduler and main task: 4 us
  2. Yield main task: 11.00 us
  3. Start a task: 20 us
  4. Yield between two tasks: 22.89 us
  5. Delay 10 ms and check increments: 10028:381, 26.32 us
  6. Start 8 tasks: 148:8, 18.50 us
  7. Yield and check increments: 120:9, 13.33 us
  8. Delay 10 ms and check increments: 10088:747, 13.50 us

Arduino 1.6.7, Arduino Pro-Mini

SchedulerBenchmark: started

  1. Initiate scheduler and main task: 4 us
  2. Yield main task: 12.64 us
  3. Start a task: 24 us
  4. Yield between two tasks: 26.16 us
  5. Delay 10 ms and check increments: 10028:338, 29.67 us
  6. Start 46 tasks: 860:46, 18.70 us
  7. Yield and check increments: 648:47, 13.79 us
  8. Delay 10 ms and check increments: 10436:752, 13.88 us

Arduino 1.6.7, Arduino Pro-Mini

SchedulerBenchmark: started

  1. Initiate scheduler and main task: 2 us
  2. Yield main task: 1.30 us
  3. Start a task: 3 us
  4. Yield between two tasks: 2.80 us
  5. Delay 10 ms and check increments: 9497:3186, 2.98 us
  6. Start 51 tasks: 112:51, 2.20 us
  7. Yield and check increments: 78:52, 1.50 us
  8. Delay 10 ms and check increments: 9874:6500, 1.52 us

Arduino 1.6.7, Arduino Pro-Mini

SchedulerBenchmark: started

  1. Initiate scheduler and main task: 1 us
  2. Yield main task: 1.10 us
  3. Start a task: 2 us
  4. Yield between two tasks: 2.51 us
  5. Delay 10 ms and check increments: 10003:3105, 3.22 us
  6. Start 24 tasks: 38:24, 1.58 us
  7. Yield and check increments: 30:25, 1.20 us
  8. Delay 10 ms and check increments: 10015:6950, 1.44 us

Definition in file SchedulerBenchmark.ino.

Function Documentation

void incrementCounter ( )

Definition at line 196 of file SchedulerBenchmark.ino.

void loop ( )

Definition at line 191 of file SchedulerBenchmark.ino.

void setup ( )

Definition at line 75 of file SchedulerBenchmark.ino.

Variable Documentation

int counter = 0

Definition at line 73 of file SchedulerBenchmark.ino.