Skip to content

Commit

Permalink
ComparisonBenchmark: regenerate for v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bxparks committed Jun 27, 2023
1 parent 44494cc commit 9bb33cc
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 42 deletions.
46 changes: 25 additions & 21 deletions examples/ComparisonBenchmark/README.md
@@ -1,8 +1,12 @@
# Comparison Benchmark

Here are the results from `ComparisonBenchmark.ino` for various boards.
Here are the results from `ComparisonBenchmark.ino` which compares the execution
time of date-time conversion functions (`LocalDateTime::toEpochSeconds()`,
`LocalDateTime::forEpochSeconds()`) from the AceTime library with the
equilvalent functions (`makeTime()`, `breakTime()`) from the [Arduino
Time](https://github.com/PaulStoffregen/Time) library.

**Version**: AceTime v2.2.3
**Version**: AceTime v2.3.0

**NOTE**: This file was auto-generated using `make README.md`. DO NOT EDIT.

Expand Down Expand Up @@ -76,11 +80,11 @@ CPU:
|----------------------------------------+----------|
| EmptyLoop | 5.000 |
|----------------------------------------+----------|
| LocalDateTime::forEpochSeconds() | 338.500 |
| breakTime() | 595.000 |
| LocalDateTime::forEpochSeconds() | 339.500 |
| breakTime() | 594.000 |
|----------------------------------------+----------|
| LocalDateTime::toEpochSeconds() | 61.500 |
| makeTime() | 344.000 |
| LocalDateTime::toEpochSeconds() | 62.000 |
| makeTime() | 345.500 |
+----------------------------------------+----------+
Iterations_per_run: 2000
Delta_seconds: 2000
Expand All @@ -102,11 +106,11 @@ CPU:
|----------------------------------------+----------|
| EmptyLoop | 4.500 |
|----------------------------------------+----------|
| LocalDateTime::forEpochSeconds() | 341.000 |
| breakTime() | 597.000 |
| LocalDateTime::forEpochSeconds() | 340.500 |
| breakTime() | 596.500 |
|----------------------------------------+----------|
| LocalDateTime::toEpochSeconds() | 62.000 |
| makeTime() | 346.500 |
| LocalDateTime::toEpochSeconds() | 62.500 |
| makeTime() | 347.000 |
+----------------------------------------+----------+
Iterations_per_run: 2000
Delta_seconds: 2000
Expand All @@ -128,11 +132,11 @@ CPU:
|----------------------------------------+----------|
| EmptyLoop | 1.300 |
|----------------------------------------+----------|
| LocalDateTime::forEpochSeconds() | 23.100 |
| breakTime() | 93.400 |
| LocalDateTime::forEpochSeconds() | 23.200 |
| breakTime() | 93.500 |
|----------------------------------------+----------|
| LocalDateTime::toEpochSeconds() | 6.500 |
| makeTime() | 56.000 |
| LocalDateTime::toEpochSeconds() | 6.600 |
| makeTime() | 56.100 |
+----------------------------------------+----------+
Iterations_per_run: 10000
Delta_seconds: 10000
Expand Down Expand Up @@ -204,12 +208,12 @@ CPU:
+----------------------------------------+----------+
| Method | micros |
|----------------------------------------+----------|
| EmptyLoop | 0.700 |
| EmptyLoop | 0.800 |
|----------------------------------------+----------|
| LocalDateTime::forEpochSeconds() | 13.300 |
| LocalDateTime::forEpochSeconds() | 13.500 |
| breakTime() | 42.400 |
|----------------------------------------+----------|
| LocalDateTime::toEpochSeconds() | 4.200 |
| LocalDateTime::toEpochSeconds() | 4.000 |
| makeTime() | 24.800 |
+----------------------------------------+----------+
Iterations_per_run: 10000
Expand All @@ -230,13 +234,13 @@ CPU:
+----------------------------------------+----------+
| Method | micros |
|----------------------------------------+----------|
| EmptyLoop | 0.380 |
| EmptyLoop | 0.390 |
|----------------------------------------+----------|
| LocalDateTime::forEpochSeconds() | 0.880 |
| breakTime() | 5.430 |
| LocalDateTime::forEpochSeconds() | 0.900 |
| breakTime() | 5.420 |
|----------------------------------------+----------|
| LocalDateTime::toEpochSeconds() | 0.600 |
| makeTime() | 4.880 |
| makeTime() | 4.870 |
+----------------------------------------+----------+
Iterations_per_run: 100000
Delta_seconds: 100000
Expand Down
8 changes: 4 additions & 4 deletions examples/ComparisonBenchmark/esp32.txt
@@ -1,9 +1,9 @@
BENCHMARKS
EmptyLoop 0.380
LocalDateTime::forEpochSeconds() 0.880
breakTime() 5.430
EmptyLoop 0.390
LocalDateTime::forEpochSeconds() 0.900
breakTime() 5.420
LocalDateTime::toEpochSeconds() 0.600
makeTime() 4.880
makeTime() 4.870
Iterations_per_run 100000
Delta_seconds 4733
END
6 changes: 3 additions & 3 deletions examples/ComparisonBenchmark/esp8266.txt
@@ -1,8 +1,8 @@
BENCHMARKS
EmptyLoop 0.700
LocalDateTime::forEpochSeconds() 13.300
EmptyLoop 0.800
LocalDateTime::forEpochSeconds() 13.500
breakTime() 42.400
LocalDateTime::toEpochSeconds() 4.200
LocalDateTime::toEpochSeconds() 4.000
makeTime() 24.800
Iterations_per_run 10000
Delta_seconds 47336
Expand Down
8 changes: 6 additions & 2 deletions examples/ComparisonBenchmark/generate_readme.py
Expand Up @@ -24,9 +24,13 @@
print(f"""\
# Comparison Benchmark
Here are the results from `ComparisonBenchmark.ino` for various boards.
Here are the results from `ComparisonBenchmark.ino` which compares the execution
time of date-time conversion functions (`LocalDateTime::toEpochSeconds()`,
`LocalDateTime::forEpochSeconds()`) from the AceTime library with the
equilvalent functions (`makeTime()`, `breakTime()`) from the [Arduino
Time](https://github.com/PaulStoffregen/Time) library.
**Version**: AceTime v2.2.3
**Version**: AceTime v2.3.0
**NOTE**: This file was auto-generated using `make README.md`. DO NOT EDIT.
Expand Down
8 changes: 4 additions & 4 deletions examples/ComparisonBenchmark/micro.txt
@@ -1,9 +1,9 @@
BENCHMARKS
EmptyLoop 4.500
LocalDateTime::forEpochSeconds() 341.000
breakTime() 597.000
LocalDateTime::toEpochSeconds() 62.000
makeTime() 346.500
LocalDateTime::forEpochSeconds() 340.500
breakTime() 596.500
LocalDateTime::toEpochSeconds() 62.500
makeTime() 347.000
Iterations_per_run 2000
Delta_seconds 236682
END
8 changes: 4 additions & 4 deletions examples/ComparisonBenchmark/nano.txt
@@ -1,9 +1,9 @@
BENCHMARKS
EmptyLoop 5.000
LocalDateTime::forEpochSeconds() 338.500
breakTime() 595.000
LocalDateTime::toEpochSeconds() 61.500
makeTime() 344.000
LocalDateTime::forEpochSeconds() 339.500
breakTime() 594.000
LocalDateTime::toEpochSeconds() 62.000
makeTime() 345.500
Iterations_per_run 2000
Delta_seconds 236682
END
8 changes: 4 additions & 4 deletions examples/ComparisonBenchmark/samd21.txt
@@ -1,9 +1,9 @@
BENCHMARKS
EmptyLoop 1.300
LocalDateTime::forEpochSeconds() 23.100
breakTime() 93.400
LocalDateTime::toEpochSeconds() 6.500
makeTime() 56.000
LocalDateTime::forEpochSeconds() 23.200
breakTime() 93.500
LocalDateTime::toEpochSeconds() 6.600
makeTime() 56.100
Iterations_per_run 10000
Delta_seconds 47336
END

0 comments on commit 9bb33cc

Please sign in to comment.