Files
markov-discord/load_test_2025-09-25T22-40-35.001Z.json
pacnpal 2e35d88045 feat: Implement configuration management and logging for Markov bot
- Added AppConfig class to manage application configuration with environment variable support.
- Introduced JSON5 support for configuration files, allowing both .json and .json5 extensions.
- Implemented logging using Pino with pretty-printing for better readability.
- Created a MarkovStore class for efficient storage and retrieval of Markov chains with O(1) sampling.
- Developed a WorkerPool class to manage worker threads for parallel processing of tasks.
- Added methods for building chains, generating responses, and handling task submissions in the worker pool.
- Included validation for configuration using class-validator to ensure correctness.
- Established a clear structure for configuration, logging, and Markov chain management.
2025-09-26 08:24:53 -04:00

828 lines
19 KiB
JSON

{
"config": {
"duration": 10,
"concurrency": 2,
"warmupTime": 5,
"guildId": "load-test-guild",
"testDataSize": 100,
"outputFile": "load_test_2025-09-25T22-40-35.001Z.json",
"useOptimized": false
},
"summary": {
"totalRequests": 779,
"successfulRequests": 779,
"failedRequests": 0,
"requestsPerSecond": 77.85647433802133,
"averageLatency": 1.8239705391527719,
"minLatency": 0.2840830000004644,
"maxLatency": 10.334125000000313,
"p95Latency": 3.2468339999995806,
"p99Latency": 5.1510410000000775
},
"latencies": [
5.427040999999917,
6.3330409999998665,
1.2367080000003625,
1.8965829999997368,
1.3268749999997453,
2.2265409999999974,
1.5267079999994166,
2.353041999999732,
1.3558750000001965,
2.2548329999999623,
1.049833000000035,
1.9633749999993597,
1.4542920000003505,
1.0782919999992373,
1.4379169999992882,
1.7973750000001019,
1.4737500000001091,
1.9093329999996058,
1.7472920000000158,
2.2240840000004027,
1.3736669999998412,
1.914875000000393,
1.3594590000002427,
2.2405840000001263,
1.0230409999994663,
1.7648330000001806,
2.436707999999271,
2.922207999999955,
2.228667000000314,
2.803708999999799,
1.7374580000005153,
2.519040999999561,
1.416957999999795,
1.6475420000006125,
1.4674590000004173,
1.952582999999322,
1.7594159999998737,
2.6833749999996144,
1.3814999999995052,
1.627042000000074,
1.3315419999998994,
1.8835420000004888,
1.470542000000023,
1.9208330000001297,
1.5431250000001455,
2.502249999999549,
1.3464169999997466,
1.7939589999996315,
1.7980829999996786,
2.1953330000005735,
3.200332999999773,
5.526625000000422,
1.1121670000002268,
0.9417920000005324,
1.140665999999328,
1.398124999999709,
1.04162499999984,
1.5635000000002037,
1.0769170000003214,
1.8126659999998083,
1.3439589999998134,
2.035208000000239,
1.0491669999992155,
1.4864589999997406,
0.9463329999998678,
1.7112090000000535,
1.2388329999994312,
2.0535829999998896,
1.5397499999999127,
2.1027500000000146,
1.1903339999998934,
1.7411250000004657,
1.1799590000000535,
1.5617910000000848,
0.9692089999998643,
1.7369159999998374,
1.2813329999999041,
2.010833000000275,
1.1188330000004498,
1.8153329999995549,
0.9461670000000595,
1.498791999999412,
0.9890839999998207,
1.383375000000342,
0.8936659999999392,
1.5208339999999225,
0.9977499999995416,
1.6928750000006403,
1.051499999999578,
2.035666000000674,
1.0398329999998168,
1.577874999999949,
2.012499999999818,
2.70666699999947,
1.3063750000001164,
2.0958330000003116,
1.215874999999869,
1.7961249999998472,
1.1747499999992215,
2.039542000000438,
0.9836660000000848,
2.1103750000002037,
1.376166999999441,
2.0953749999998763,
0.8763749999998254,
1.3289590000003955,
1.3797919999997248,
1.8132909999994808,
1.1499999999996362,
0.861707999999453,
1.1502920000002632,
1.8272079999997004,
1.2432079999998678,
1.8818339999997988,
1.4295000000001892,
1.7655410000006668,
2.1562089999997625,
3.156417000000147,
2.140167000000474,
3.581125000000611,
1.9392500000003565,
2.0287500000004,
1.9008340000000317,
2.3144170000005033,
1.9524579999997513,
1.7896670000000086,
1.8412919999991573,
2.435082999999395,
1.9597080000003189,
2.8245420000002923,
1.2000420000003942,
1.70508400000017,
1.5987910000003467,
2.1604999999999563,
1.268500000000131,
1.9303749999999127,
2.076583000000028,
3.1665409999995973,
1.0135419999996884,
2.3828330000005735,
1.0159169999997175,
1.0322080000005371,
0.9327919999996084,
1.3943749999998545,
0.8720419999999649,
1.342040999999881,
1.1818750000002183,
1.7330830000000788,
1.285291999999572,
1.7758340000000317,
1.072957999999744,
1.6636250000001382,
1.053208000000268,
0.9136250000001382,
2.6862920000003214,
4.046416999999565,
9.704291000000012,
10.334125000000313,
0.8833340000001044,
1.5482499999998254,
0.999457999999322,
1.4557080000004134,
1.0252500000005966,
1.5209999999997308,
1.4856669999999212,
2.151499999999942,
1.1500839999998789,
1.6455830000004426,
1.2052080000003116,
1.9710000000004584,
0.9093330000005153,
1.5353750000003856,
0.9312920000002123,
1.4604159999998956,
1.3082500000000437,
1.8976670000001832,
0.9967909999995754,
1.5021660000002157,
0.811916999999994,
1.3591669999996157,
0.9085830000003625,
1.535584000000199,
1.0565830000005008,
1.5465000000003783,
1.0356670000001031,
1.5047909999993863,
0.9800839999998061,
1.7752500000005966,
1.8761670000003505,
2.6360420000000886,
1.965624999999818,
2.763249999999971,
0.9464170000001104,
1.872041999999965,
1.3688329999995403,
1.6225420000000668,
1.7020000000002256,
2.21349999999984,
1.6243330000006608,
2.231957999999395,
0.9466670000001614,
1.1339170000001104,
0.44037500000013097,
0.7492919999995138,
0.40466600000036124,
0.7393339999998716,
0.41225000000031287,
0.5886249999994106,
0.4213339999996606,
0.5926250000002256,
0.4745419999999285,
0.696458000000348,
0.43891599999915343,
0.5877499999996871,
0.8603330000005371,
1.527541999999812,
0.40533400000003894,
0.6972500000001673,
0.9139169999998558,
0.8488749999996799,
0.8829579999992347,
1.3742920000004233,
0.9285409999993135,
1.4454169999999067,
0.7869160000000193,
1.3505830000003698,
0.8589170000004742,
1.5116670000006707,
1.0278340000004391,
1.8376250000001164,
1.1137089999992895,
0.9484999999995125,
1.2987079999993512,
1.683165999999801,
3.0879159999994954,
1.7413329999999405,
2.2787500000004,
2.7992089999997916,
1.3870420000002923,
2.0166669999998703,
1.6129579999997077,
2.4413750000003347,
2.6347079999995913,
3.0786669999997684,
1.5907909999996264,
1.882542000000285,
1.6204580000003261,
2.2446249999993597,
2.63733400000001,
3.0478749999992942,
1.2393330000004426,
1.9445409999998446,
1.5365419999998267,
2.2684580000004644,
2.173416999999972,
2.3586660000000848,
1.2703329999994821,
1.5009580000005371,
2.4557089999998425,
3.048917000000074,
2.891208000000006,
2.838249999999789,
2.084125000000313,
2.7804580000001806,
1.399250000000393,
2.6840000000001965,
1.091458999999304,
1.65820900000017,
1.0203330000003916,
1.896165999999539,
0.873250000000553,
1.299750000000131,
1.2909169999993537,
1.6865419999994629,
0.9405409999999392,
1.5482079999992493,
1.5247920000001614,
2.0204579999999623,
1.0459160000000338,
1.575792000000547,
1.4633750000002692,
2.026458000000275,
1.2732909999995172,
1.949416999999812,
1.2891659999995682,
3.175958000000719,
1.8006670000004306,
2.0715829999999187,
1.4793749999998909,
1.9025830000000497,
1.0212499999997817,
1.5244170000005397,
1.730833999999959,
2.3910419999992882,
1.462666999999783,
1.724500000000262,
1.7530000000006112,
1.5421249999999418,
0.789625000000342,
1.390041999999994,
1.5203330000003916,
2.2828749999998763,
2.924957999999606,
2.186250000000655,
1.7438750000001164,
2.388333999999304,
2.7528339999998934,
2.2215000000005602,
1.5668750000004366,
2.1063330000006317,
0.9982499999996435,
1.8369999999995343,
2.670708999999988,
3.5492919999996957,
3.2468339999995806,
1.5727500000002692,
1.195542000000387,
1.9686670000000959,
1.3283339999998134,
1.9239580000003116,
2.077374999999847,
2.5786669999997684,
1.5531250000003638,
2.518707999999606,
2.234542000000147,
2.5951670000004015,
2.54162499999984,
3.100916999999754,
2.4595829999998386,
3.142334000000119,
2.3594160000002375,
2.7472500000003492,
1.1127919999998994,
1.7200830000001588,
2.852958999999828,
3.452041999999892,
1.396665999999641,
1.9621670000005906,
2.2326249999996435,
2.86554199999955,
1.5541670000002341,
2.2105000000001382,
3.5947910000004413,
4.439666999999645,
1.7822919999998703,
1.6954169999999067,
1.9695000000001528,
3.551542000000154,
1.364042000000154,
2.3244580000000497,
4.4840839999997115,
5.1510410000000775,
1.1104579999991984,
1.846875000000182,
2.688666999999441,
2.3917499999997744,
2.8162499999998545,
3.1808750000000146,
1.0053749999997308,
1.5187080000005153,
1.4711670000006052,
2.0410839999995005,
2.054957999999715,
2.4770000000007713,
1.5245420000001104,
2.2745829999994385,
1.6021249999994325,
1.7536250000011933,
1.8043330000000424,
2.6164169999992737,
1.5369580000005953,
2.5359170000010636,
2.2290830000001733,
2.9552090000015596,
2.4584999999988213,
2.8827500000006694,
2.904916999999841,
3.1674590000002354,
1.9373749999995198,
2.8661250000004657,
1.866083000000799,
2.1667919999999867,
1.6124579999996058,
1.9923749999998108,
1.1410419999992882,
1.6014169999998558,
1.261000000000422,
2.0645000000004075,
1.3189999999995052,
1.864332999999533,
3.976249999999709,
1.9657500000012078,
2.0559170000015,
2.9328329999989364,
1.6794590000008611,
2.1925830000000133,
1.864584000000832,
2.4435000000012224,
1.1707920000008016,
1.5114579999990383,
2.0339160000003176,
2.8330839999998716,
1.3639170000005834,
1.9864590000015596,
2.1905420000002778,
2.6839579999996204,
1.4094999999997526,
1.9785420000007434,
2.0877499999987776,
2.912916999999652,
1.5097920000007434,
2.2499580000003334,
1.1031669999993028,
1.8978340000012395,
1.1714580000007118,
1.7311659999995754,
8.55816699999923,
8.589665999999852,
0.9075839999986783,
1.3227919999990263,
1.4702500000003056,
1.903374999999869,
1.9426249999996799,
2.5995829999992566,
0.8297910000001139,
1.5447909999984404,
1.0416670000013255,
1.7402920000004087,
1.5573750000003201,
1.663709000000381,
1.5267500000009022,
2.3579590000008466,
3.4275829999987764,
3.264000000001033,
1.5265829999989364,
2.262665999998717,
1.2997919999997976,
1.8077090000006137,
2.644917000001442,
2.6570840000003955,
1.5733749999999418,
1.96783300000061,
1.2709159999994881,
1.8500420000000304,
0.8554590000003373,
1.6488339999996242,
1.2419170000011945,
1.9778750000004948,
0.9326250000012806,
1.8717909999995754,
1.8728339999997843,
2.4788750000006985,
1.6180829999993875,
2.2202909999996336,
1.1252499999991414,
1.7733329999991838,
1.224291999998968,
2.5255830000005517,
1.6092499999995198,
2.4478330000001733,
0.871832999999242,
1.468124999999418,
1.245042000000467,
2.0790000000015425,
0.851249999999709,
1.4700830000001588,
1.565667000000758,
2.1114589999997406,
0.8442500000001019,
1.6309999999994034,
1.2003750000003492,
2.1794169999993755,
1.780416999999943,
2.811999999999898,
1.1485830000001442,
1.7946670000001177,
0.8487920000006852,
0.6959999999999127,
0.9465000000000146,
1.4713339999998425,
3.079083000000537,
3.492540999999619,
0.8447919999998703,
1.233749999999418,
0.7824999999993452,
1.3513339999990421,
1.2490409999991243,
2.4938750000001164,
0.8931249999986903,
1.2900410000002012,
0.9727920000004815,
1.414082999999664,
1.7629170000000158,
2.243624999999156,
1.0929999999989377,
2.143833000000086,
1.3023339999999735,
2.007500000001528,
1.3670839999995223,
1.836542000000918,
1.3991249999999127,
2.1646249999994325,
0.8890420000006998,
1.671542000000045,
0.9769169999999576,
1.5030410000017582,
1.0531670000000304,
1.7909589999999298,
1.3363339999996242,
2.163583000001381,
0.8945000000003347,
1.3505409999997937,
1.3034580000003189,
2.108083999999508,
2.0024169999996957,
2.725291999999172,
1.9190830000006827,
2.8175000000010186,
1.6257080000013957,
2.5862079999988055,
0.4203330000000278,
0.6736670000009326,
0.5047909999993863,
0.7602920000008453,
0.2880410000016127,
0.4507080000003043,
0.2840830000004644,
0.48145800000020245,
0.6239169999989826,
1.0456250000006548,
0.3070419999985461,
0.5221249999995052,
0.774916000000303,
1.30212500000016,
1.265333000001192,
2.501125000000684,
0.9010419999995065,
0.6852910000015981,
1.0640419999999722,
1.6607910000002448,
0.833333999999013,
1.3405409999995754,
0.9236669999991136,
1.2985419999986334,
1.115209000001414,
1.6015840000000026,
0.9997500000008586,
1.729165999999168,
2.314125000000786,
2.697042000001602,
2.188958000000639,
2.204291000000012,
1.4767919999994774,
1.93170900000041,
1.2978750000002037,
1.840915999999197,
1.1629159999993135,
1.7629170000000158,
1.101290999999037,
1.5592500000002474,
2.2166659999984404,
3.34320900000057,
2.3544590000001335,
1.2952499999992142,
1.4645000000000437,
1.9792080000006536,
1.0120000000006257,
1.8235420000000886,
1.519124999998894,
2.4906670000000304,
1.1945829999986017,
1.8285409999989497,
2.4919170000011945,
1.0140830000000278,
3.458582999999635,
4.212166999999681,
1.664875000000393,
2.3250000000007276,
2.6124589999999444,
1.733749999999418,
0.9562909999986005,
1.6795839999995223,
0.9400420000001759,
1.5821670000004815,
3.49054199999955,
4.145249999999578,
1.3031250000003638,
1.9325000000008004,
3.5340830000004644,
2.325875000000451,
1.3352080000004207,
2.0058329999992566,
1.6159580000003189,
2.5541250000005675,
1.4478340000005119,
2.016417000000729,
2.0921670000006998,
1.6419580000001588,
2.910374999999476,
1.5571660000005068,
1.0644999999985885,
1.5456250000006548,
1.6809169999996811,
1.5814579999987473,
1.0059170000004087,
1.9063750000004802,
1.3146249999990687,
1.9576670000005834,
2.9238750000004075,
1.470499999999447,
2.194041999999172,
0.8595420000001468,
2.2742080000007263,
2.869915999999648,
2.805000000000291,
1.6532919999990554,
1.2990420000005543,
2.0804580000003625,
2.7961670000004233,
1.5155409999988478,
2.5027499999996508,
2.180833000000348,
2.5908330000002024,
2.352833000000828,
1.0566249999992579,
1.6255419999997684,
3.9288329999999405,
4.333416999999827,
1.0040829999998095,
1.5487499999999272,
3.7665000000015425,
4.183999999999287,
1.7652080000007118,
1.8327079999999114,
2.0783749999991414,
2.6403750000008586,
1.0264999999999418,
1.7046669999999722,
1.0736670000005688,
1.4441249999999854,
1.1618749999997817,
3.0814160000008997,
0.9722920000003796,
2.891542000001209,
1.0557499999995343,
3.0682080000005953,
0.9159170000002632,
1.8711250000014843,
1.1281249999992724,
3.300874999998996,
1.011333000000377,
4.210040999998455,
5.091249999999491,
1.0442499999990105,
1.6543750000000728,
2.4232499999998254,
2.59362499999952,
1.7172080000000278,
2.1231250000000728,
1.9947089999986929,
2.0137919999997393,
2.1614169999993464,
2.6129169999985606,
1.1224160000001575,
1.6526249999988067,
1.4787919999998849,
2.3328330000003916,
1.6139579999999114,
2.14195799999834,
1.7637909999994008,
2.3894579999996495,
1.4153340000011667,
1.9787079999987327,
1.3545829999984562,
2.1879580000004353,
1.3477080000011483,
2.05120800000077,
1.226875000000291,
1.8905830000003334,
3.550333999999566,
2.5405829999999696,
1.8649580000001151,
2.248541999999361,
1.2766670000000886,
1.7967499999995198,
1.2110410000004777,
1.6989589999993768,
2.068375000000742,
2.3068329999987327,
2.362250000000131,
4.105250000000524,
2.305000000000291,
2.983125000000655,
1.404540999999881,
1.9685000000008586,
1.3207079999992857,
2.0614580000001297,
1.8016250000000582,
2.634083000000828,
0.9832499999993161,
1.5219170000000304,
1.901292000000467,
2.2686659999999392,
1.0357089999997697,
1.518167000000176,
2.7082080000000133,
2.578958000000057,
1.0170839999991586,
3.1172090000000026,
3.1485000000011496,
3.8834160000005795,
1.9134590000012395,
2.3802079999986745,
1.0307920000013837,
1.4087500000005093,
1.397541000000274,
1.6622500000012224,
1.5116660000003321,
1.9356250000000728,
1.8418750000000728,
1.8729590000002645,
1.27520800000093,
1.6329590000004828,
1.1856250000000728,
2.7878749999999854,
2.151041000000987,
2.5681669999994483,
0.9596660000006523,
1.387749999999869,
1.180500000000393,
1.376166000000012,
0.9911250000004657,
1.5735830000012356,
0.9004999999997381,
1.968125000001237,
0.7437919999993028,
1.1065839999992022,
0.9337080000004789,
0.7306250000001455,
0.9950000000008004,
1.5438330000015412,
0.924750000000131,
0.8277500000003783,
0.8280000000013388,
1.2536660000005213,
1.712083000000348,
2.350291999999172,
1.1463340000009339,
1.7333339999986492,
1.7491659999996045,
2.6479589999999007,
0.8714579999996204,
1.355875000001106,
1.0884169999990263,
1.647000000000844,
0.8211250000003929,
1.284084000000803,
1.8584169999994629,
2.604624999999942,
1.2332919999989826,
2.040332999999009,
1.3397920000006707,
1.9561669999984588,
1.0308749999985594,
1.7802499999997963,
2.2039999999997235,
3.1187079999999696,
3.294832999999926,
3.826500000001033,
0.7036669999997684,
0.9643749999995634,
0.47695800000110466,
0.7461659999989934,
0.6126249999997526,
0.8963750000002619,
1.7372080000004644,
2.555459000001065,
0.8014579999999114,
1.9369999999998981
],
"errors": [],
"memoryUsage": {
"start": {
"rss": 406896640,
"heapTotal": 305266688,
"heapUsed": 228447088,
"external": 8088901,
"arrayBuffers": 9402525
},
"end": {
"rss": 456671232,
"heapTotal": 319782912,
"heapUsed": 182201984,
"external": 9041698,
"arrayBuffers": 6160850
},
"peak": {
"rss": 456671232,
"heapTotal": 319782912,
"heapUsed": 233674768,
"external": 24073378,
"arrayBuffers": 21192530
}
},
"timestamp": "2025-09-25T22:40:45.013Z"
}