perf: switch to SMA and SMM in performance statistics
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.ts
index 30327b6a578bdd0efac7448f0d4645af7d257963..603793201743a8b2967ccd0c3069d9e15a41be90 100644 (file)
@@ -24,7 +24,7 @@ export class Constants {
   static readonly SEMVER_PATTERN =
     '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$';
 
-  static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = 1024;
+  static readonly DEFAULT_CIRCULAR_BUFFER_CAPACITY = 4096;
 
   static readonly DEFAULT_HASH_ALGORITHM = 'sha384';
 
@@ -36,6 +36,7 @@ export class Constants {
 
   static readonly DEFAULT_FLUCTUATION_PERCENT = 5;
 
+  static readonly DEFAULT_PERFORMANCE_DIRECTORY = 'performance';
   static readonly DEFAULT_PERFORMANCE_RECORDS_FILENAME = 'performanceRecords.json';
   static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'e-mobility-charging-stations-simulator';
   static readonly PERFORMANCE_RECORDS_TABLE = 'performance_records';
@@ -54,7 +55,7 @@ export class Constants {
     /* This is intentional */
   });
 
-  static readonly DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL = 5000; // Ms
+  static readonly DEFAULT_RESERVATION_EXPIRATION_OBSERVATION_INTERVAL = 60000; // Ms
 
   private constructor() {
     // This is intentional