Skip to content

Commit

Permalink
MemoryBenchmark,AutoBenchmark: Regenerate benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
bxparks committed Jan 18, 2022
1 parent 8484161 commit 15fe7de
Show file tree
Hide file tree
Showing 15 changed files with 222 additions and 220 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,15 @@ Arduino Nano:
| Basic ZoneSorterByName [1] | 6610/ 328 | 370/ 11 |
| Basic ZoneSorterByOffsetAndName [1] | 6742/ 328 | 502/ 11 |
|----------------------------------------+--------------+-------------|
| Extended TimeZone (1 zone) | 9612/ 672 | 9138/ 661 |
| Extended TimeZone (2 zones) | 9836/ 1113 | 9362/ 1102 |
| ExtendedZoneManager (1 zone) | 9788/ 678 | 9314/ 667 |
| ExtendedZoneManager (all zones) | 31554/ 1162 | 31080/ 1151 |
| ExtendedZoneManager (all zones+links) | 36434/ 1162 | 35960/ 1151 |
| Extended TimeZone (1 zone) | 9606/ 672 | 9132/ 661 |
| Extended TimeZone (2 zones) | 9830/ 1113 | 9356/ 1102 |
| ExtendedZoneManager (1 zone) | 9782/ 678 | 9308/ 667 |
| ExtendedZoneManager (all zones) | 31548/ 1162 | 31074/ 1151 |
| ExtendedZoneManager (all zones+links) | 36428/ 1162 | 35954/ 1151 |
| ExtendedLinkManager (all links) | 2570/ 16 | 2096/ 5 |
|----------------------------------------+--------------+-------------|
| Extended ZoneSorterByName [2] | 9968/ 678 | 356/ 6 |
| Extended ZoneSorterByOffsetAndName [2] | 10110/ 678 | 498/ 6 |
| Extended ZoneSorterByName [2] | 9962/ 678 | 356/ 6 |
| Extended ZoneSorterByOffsetAndName [2] | 10104/ 678 | 498/ 6 |
+---------------------------------------------------------------------+
```
Expand All @@ -639,7 +639,7 @@ ESP8266:
|----------------------------------------+--------------+-------------|
| Basic TimeZone (1 zone) | 266473/28644 | 6384/ 752 |
| Basic TimeZone (2 zones) | 266841/28804 | 6752/ 912 |
| BasicZoneManager (1 zone) | 266617/28660 | 6528/ 768 |
| BasicZoneManager (1 zone) | 266633/28660 | 6544/ 768 |
| BasicZoneManager (all zones) | 283961/28660 | 23872/ 768 |
| BasicZoneManager (all zones+links) | 290665/28660 | 30576/ 768 |
| BasicLinkManager (all links) | 261933/27904 | 1844/ 12 |
Expand All @@ -648,14 +648,14 @@ ESP8266:
| Basic ZoneSorterByOffsetAndName [1] | 266981/28664 | 508/ 20 |
|----------------------------------------+--------------+-------------|
| Extended TimeZone (1 zone) | 269113/29172 | 9024/ 1280 |
| Extended TimeZone (2 zones) | 269497/29724 | 9408/ 1832 |
| Extended TimeZone (2 zones) | 269481/29724 | 9392/ 1832 |
| ExtendedZoneManager (1 zone) | 269241/29180 | 9152/ 1288 |
| ExtendedZoneManager (all zones) | 299133/29176 | 39044/ 1284 |
| ExtendedZoneManager (all zones+links) | 306701/29176 | 46612/ 1284 |
| ExtendedZoneManager (all zones) | 299117/29176 | 39028/ 1284 |
| ExtendedZoneManager (all zones+links) | 306685/29176 | 46596/ 1284 |
| ExtendedLinkManager (all links) | 262125/27904 | 2036/ 12 |
|----------------------------------------+--------------+-------------|
| Extended ZoneSorterByName [2] | 269461/29184 | 348/ 12 |
| Extended ZoneSorterByOffsetAndName [2] | 269573/29184 | 460/ 12 |
| Extended ZoneSorterByOffsetAndName [2] | 269557/29184 | 444/ 12 |
+---------------------------------------------------------------------+
```
Expand Down Expand Up @@ -685,16 +685,16 @@ Arduino Nano:
| ZonedDateTime::toEpochDays() | 72.000 |
| ZonedDateTime::forEpochSeconds(UTC) | 362.000 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 1198.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 644.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 643.000 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 2231.000 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 648.000 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 647.000 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 1598.000 |
| ZonedDateTime::forComponents(Extended_cached) | 82.000 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 121.000 |
| BasicZoneManager::createForZoneId(binary) | 49.000 |
| BasicZoneManager::createForZoneId(linear) | 303.000 |
| BasicZoneManager::createForZoneId(binary) | 48.000 |
| BasicZoneManager::createForZoneId(linear) | 305.000 |
+--------------------------------------------------+----------+
Iterations_per_run: 1000
```
Expand All @@ -708,26 +708,26 @@ ESP8266:
| EmptyLoop | 4.800 |
|--------------------------------------------------+----------|
| LocalDate::forEpochDays() | 7.800 |
| LocalDate::toEpochDays() | 3.400 |
| LocalDate::dayOfWeek() | 3.600 |
| LocalDate::toEpochDays() | 3.200 |
| LocalDate::dayOfWeek() | 3.400 |
|--------------------------------------------------+----------|
| OffsetDateTime::forEpochSeconds() | 13.000 |
| OffsetDateTime::toEpochSeconds() | 6.600 |
| OffsetDateTime::forEpochSeconds() | 13.200 |
| OffsetDateTime::toEpochSeconds() | 7.000 |
|--------------------------------------------------+----------|
| ZonedDateTime::toEpochSeconds() | 6.600 |
| ZonedDateTime::toEpochDays() | 5.800 |
| ZonedDateTime::toEpochSeconds() | 7.000 |
| ZonedDateTime::toEpochDays() | 5.600 |
| ZonedDateTime::forEpochSeconds(UTC) | 16.600 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 98.800 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 99.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 29.800 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 196.800 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 30.400 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 30.200 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 167.400 |
| ZonedDateTime::forComponents(Extended_cached) | 6.200 |
| ZonedDateTime::forComponents(Extended_cached) | 6.400 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 14.800 |
| BasicZoneManager::createForZoneId(binary) | 6.600 |
| BasicZoneManager::createForZoneId(linear) | 44.200 |
| BasicZoneManager::createForZoneName(binary) | 14.600 |
| BasicZoneManager::createForZoneId(binary) | 6.400 |
| BasicZoneManager::createForZoneId(linear) | 44.800 |
+--------------------------------------------------+----------+
Iterations_per_run: 5000
```
Expand Down
2 changes: 2 additions & 0 deletions examples/AutoBenchmark/Benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ static void runZonedDateTimeToEpochSeconds() {
// used to prevent caching to obtain benchmarking number without caching.
static acetime_t offset = 0; // alternate between 0 and kTwoYears
static const acetime_t kTwoYears = 2 * 365 * 24 * 3600L;
#if ENABLE_EXTENDED_ZONE_PROCESSOR == 1
static int16_t year = 2000; // alternate between 2000 and 2002
#endif

// Pointer to BasicZoneManager and ExtendedZoneManager, whose actual instances
// are created within the specific test on the stack. These global variables
Expand Down
98 changes: 49 additions & 49 deletions examples/AutoBenchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,16 @@ CPU:
| ZonedDateTime::toEpochDays() | 72.000 |
| ZonedDateTime::forEpochSeconds(UTC) | 362.000 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 1198.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 644.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 643.000 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 2231.000 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 648.000 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 647.000 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 1598.000 |
| ZonedDateTime::forComponents(Extended_cached) | 82.000 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 121.000 |
| BasicZoneManager::createForZoneId(binary) | 49.000 |
| BasicZoneManager::createForZoneId(linear) | 303.000 |
| BasicZoneManager::createForZoneId(binary) | 48.000 |
| BasicZoneManager::createForZoneId(linear) | 305.000 |
+--------------------------------------------------+----------+
Iterations_per_run: 1000
Expand Down Expand Up @@ -242,28 +242,28 @@ CPU:
+--------------------------------------------------+----------+
| Method | micros |
|--------------------------------------------------+----------|
| EmptyLoop | 4.000 |
| EmptyLoop | 3.000 |
|--------------------------------------------------+----------|
| LocalDate::forEpochDays() | 221.000 |
| LocalDate::toEpochDays() | 56.000 |
| LocalDate::dayOfWeek() | 50.000 |
| LocalDate::forEpochDays() | 220.000 |
| LocalDate::toEpochDays() | 54.000 |
| LocalDate::dayOfWeek() | 48.000 |
|--------------------------------------------------+----------|
| OffsetDateTime::forEpochSeconds() | 336.000 |
| OffsetDateTime::toEpochSeconds() | 80.000 |
| OffsetDateTime::forEpochSeconds() | 337.000 |
| OffsetDateTime::toEpochSeconds() | 79.000 |
|--------------------------------------------------+----------|
| ZonedDateTime::toEpochSeconds() | 80.000 |
| ZonedDateTime::toEpochDays() | 70.000 |
| ZonedDateTime::forEpochSeconds(UTC) | 364.000 |
| ZonedDateTime::toEpochSeconds() | 81.000 |
| ZonedDateTime::toEpochDays() | 71.000 |
| ZonedDateTime::forEpochSeconds(UTC) | 366.000 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 1187.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 648.000 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | -1.000 |
| ZonedDateTime::forEpochSeconds(Extended_cache) | -1.000 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | -1.000 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | -1.000 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 117.000 |
| BasicZoneManager::createForZoneId(binary) | 47.000 |
| BasicZoneManager::createForZoneId(linear) | 309.000 |
| BasicZoneManager::createForZoneName(binary) | 119.000 |
| BasicZoneManager::createForZoneId(binary) | 48.000 |
| BasicZoneManager::createForZoneId(linear) | 307.000 |
+--------------------------------------------------+----------+
Iterations_per_run: 1000
Expand Down Expand Up @@ -319,20 +319,20 @@ CPU:
| OffsetDateTime::forEpochSeconds() | 3.600 |
| OffsetDateTime::toEpochSeconds() | 4.800 |
|--------------------------------------------------+----------|
| ZonedDateTime::toEpochSeconds() | 4.500 |
| ZonedDateTime::toEpochDays() | 3.400 |
| ZonedDateTime::toEpochSeconds() | 4.700 |
| ZonedDateTime::toEpochDays() | 3.500 |
| ZonedDateTime::forEpochSeconds(UTC) | 5.100 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 75.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 11.400 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 147.800 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 75.100 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 11.300 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 147.400 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 11.200 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 141.400 |
| ZonedDateTime::forComponents(Extended_cached) | 7.100 |
| ZonedDateTime::forComponents(Extended_nocache) | 141.100 |
| ZonedDateTime::forComponents(Extended_cached) | 7.200 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 11.600 |
| BasicZoneManager::createForZoneName(binary) | 11.800 |
| BasicZoneManager::createForZoneId(binary) | 2.600 |
| BasicZoneManager::createForZoneId(linear) | 17.800 |
| BasicZoneManager::createForZoneId(linear) | 17.700 |
+--------------------------------------------------+----------+
Iterations_per_run: 10000
Expand Down Expand Up @@ -382,26 +382,26 @@ CPU:
| EmptyLoop | 4.800 |
|--------------------------------------------------+----------|
| LocalDate::forEpochDays() | 7.800 |
| LocalDate::toEpochDays() | 3.400 |
| LocalDate::dayOfWeek() | 3.600 |
| LocalDate::toEpochDays() | 3.200 |
| LocalDate::dayOfWeek() | 3.400 |
|--------------------------------------------------+----------|
| OffsetDateTime::forEpochSeconds() | 13.000 |
| OffsetDateTime::toEpochSeconds() | 6.600 |
| OffsetDateTime::forEpochSeconds() | 13.200 |
| OffsetDateTime::toEpochSeconds() | 7.000 |
|--------------------------------------------------+----------|
| ZonedDateTime::toEpochSeconds() | 6.600 |
| ZonedDateTime::toEpochDays() | 5.800 |
| ZonedDateTime::toEpochSeconds() | 7.000 |
| ZonedDateTime::toEpochDays() | 5.600 |
| ZonedDateTime::forEpochSeconds(UTC) | 16.600 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 98.800 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 99.000 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 29.800 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 196.800 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 30.400 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 30.200 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 167.400 |
| ZonedDateTime::forComponents(Extended_cached) | 6.200 |
| ZonedDateTime::forComponents(Extended_cached) | 6.400 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 14.800 |
| BasicZoneManager::createForZoneId(binary) | 6.600 |
| BasicZoneManager::createForZoneId(linear) | 44.200 |
| BasicZoneManager::createForZoneName(binary) | 14.600 |
| BasicZoneManager::createForZoneId(binary) | 6.400 |
| BasicZoneManager::createForZoneId(linear) | 44.800 |
+--------------------------------------------------+----------+
Iterations_per_run: 5000
Expand Down Expand Up @@ -454,22 +454,22 @@ CPU:
| LocalDate::toEpochDays() | 0.250 |
| LocalDate::dayOfWeek() | 0.350 |
|--------------------------------------------------+----------|
| OffsetDateTime::forEpochSeconds() | 1.650 |
| OffsetDateTime::forEpochSeconds() | 1.700 |
| OffsetDateTime::toEpochSeconds() | 1.100 |
|--------------------------------------------------+----------|
| ZonedDateTime::toEpochSeconds() | 1.100 |
| ZonedDateTime::toEpochDays() | 0.800 |
| ZonedDateTime::forEpochSeconds(UTC) | 3.150 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 18.800 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 4.700 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 36.850 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 36.900 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 4.700 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 34.250 |
| ZonedDateTime::forComponents(Extended_cached) | 2.750 |
| ZonedDateTime::forComponents(Extended_nocache) | 34.200 |
| ZonedDateTime::forComponents(Extended_cached) | 2.800 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 2.900 |
| BasicZoneManager::createForZoneId(binary) | 0.700 |
| BasicZoneManager::createForZoneName(binary) | 2.950 |
| BasicZoneManager::createForZoneId(binary) | 0.650 |
| BasicZoneManager::createForZoneId(linear) | 2.550 |
+--------------------------------------------------+----------+
Iterations_per_run: 20000
Expand Down Expand Up @@ -533,16 +533,16 @@ CPU:
| ZonedDateTime::toEpochSeconds() | 0.250 |
| ZonedDateTime::toEpochDays() | 0.200 |
| ZonedDateTime::forEpochSeconds(UTC) | 2.750 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 35.200 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 7.150 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 85.300 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 6.100 |
| ZonedDateTime::forEpochSeconds(Basic_nocache) | 34.850 |
| ZonedDateTime::forEpochSeconds(Basic_cached) | 7.100 |
| ZonedDateTime::forEpochSeconds(Extended_nocache) | 85.450 |
| ZonedDateTime::forEpochSeconds(Extended_cached) | 6.150 |
|--------------------------------------------------+----------|
| ZonedDateTime::forComponents(Extended_nocache) | 83.800 |
| ZonedDateTime::forComponents(Extended_nocache) | 83.950 |
| ZonedDateTime::forComponents(Extended_cached) | 6.000 |
|--------------------------------------------------+----------|
| BasicZoneManager::createForZoneName(binary) | 6.100 |
| BasicZoneManager::createForZoneId(binary) | 2.000 |
| BasicZoneManager::createForZoneId(binary) | 1.900 |
| BasicZoneManager::createForZoneId(linear) | 10.450 |
+--------------------------------------------------+----------+
Iterations_per_run: 20000
Expand Down
12 changes: 6 additions & 6 deletions examples/AutoBenchmark/esp32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ EmptyLoop 1.400
LocalDate::forEpochDays() 0.600
LocalDate::toEpochDays() 0.250
LocalDate::dayOfWeek() 0.350
OffsetDateTime::forEpochSeconds() 1.650
OffsetDateTime::forEpochSeconds() 1.700
OffsetDateTime::toEpochSeconds() 1.100
ZonedDateTime::toEpochSeconds() 1.100
ZonedDateTime::toEpochDays() 0.800
ZonedDateTime::forEpochSeconds(UTC) 3.150
ZonedDateTime::forEpochSeconds(Basic_nocache) 18.800
ZonedDateTime::forEpochSeconds(Basic_cached) 4.700
ZonedDateTime::forEpochSeconds(Extended_nocache) 36.850
ZonedDateTime::forEpochSeconds(Extended_nocache) 36.900
ZonedDateTime::forEpochSeconds(Extended_cached) 4.700
ZonedDateTime::forComponents(Extended_nocache) 34.250
ZonedDateTime::forComponents(Extended_cached) 2.750
BasicZoneManager::createForZoneName(binary) 2.900
BasicZoneManager::createForZoneId(binary) 0.700
ZonedDateTime::forComponents(Extended_nocache) 34.200
ZonedDateTime::forComponents(Extended_cached) 2.800
BasicZoneManager::createForZoneName(binary) 2.950
BasicZoneManager::createForZoneId(binary) 0.650
BasicZoneManager::createForZoneId(linear) 2.550
Iterations_per_run 20000
END
Loading

0 comments on commit 15fe7de

Please sign in to comment.