- Introduced `pytest-benchmark` dependency for performance testing of critical code paths. - Added a new `PartialAudioBuffer` class to optimize audio chunk handling, reducing memory allocations and improving efficiency. - Implemented benchmark tests for audio processing, validating performance improvements and establishing baselines. - Enhanced the `Segmenter` class to utilize cached sample counts for faster duration calculations. - Updated gRPC service to leverage consolidated streaming state, reducing multiple dictionary lookups to a single access. All quality checks pass.
972 lines
34 KiB
JSON
972 lines
34 KiB
JSON
{
|
|
"machine_info": {
|
|
"node": "little",
|
|
"processor": "x86_64",
|
|
"machine": "x86_64",
|
|
"python_compiler": "GCC 13.3.0",
|
|
"python_implementation": "CPython",
|
|
"python_implementation_version": "3.12.3",
|
|
"python_version": "3.12.3",
|
|
"python_build": [
|
|
"main",
|
|
"Nov 6 2025 13:44:16"
|
|
],
|
|
"release": "6.14.0-1018-oem",
|
|
"system": "Linux",
|
|
"cpu": {
|
|
"python_version": "3.12.3.final.0 (64 bit)",
|
|
"cpuinfo_version": [
|
|
9,
|
|
0,
|
|
0
|
|
],
|
|
"cpuinfo_version_string": "9.0.0",
|
|
"arch": "X86_64",
|
|
"bits": 64,
|
|
"count": 14,
|
|
"arch_string_raw": "x86_64",
|
|
"vendor_id_raw": "AuthenticAMD",
|
|
"brand_raw": "AMD RYZEN AI MAX+ 395 w/ Radeon 8060S",
|
|
"hz_advertised_friendly": "3.0000 GHz",
|
|
"hz_actual_friendly": "3.0000 GHz",
|
|
"hz_advertised": [
|
|
2999956000,
|
|
0
|
|
],
|
|
"hz_actual": [
|
|
2999956000,
|
|
0
|
|
],
|
|
"model": 112,
|
|
"family": 26,
|
|
"flags": [
|
|
"3dnowprefetch",
|
|
"abm",
|
|
"adx",
|
|
"aes",
|
|
"apic",
|
|
"arat",
|
|
"arch_capabilities",
|
|
"avx",
|
|
"avx2",
|
|
"avx512_bf16",
|
|
"avx512_bitalg",
|
|
"avx512_vbmi2",
|
|
"avx512_vnni",
|
|
"avx512_vp2intersect",
|
|
"avx512_vpopcntdq",
|
|
"avx512bitalg",
|
|
"avx512bw",
|
|
"avx512cd",
|
|
"avx512dq",
|
|
"avx512f",
|
|
"avx512ifma",
|
|
"avx512vbmi",
|
|
"avx512vbmi2",
|
|
"avx512vl",
|
|
"avx512vnni",
|
|
"avx512vpopcntdq",
|
|
"avx_vnni",
|
|
"bmi1",
|
|
"bmi2",
|
|
"clflush",
|
|
"clflushopt",
|
|
"clwb",
|
|
"clzero",
|
|
"cmov",
|
|
"cmp_legacy",
|
|
"cpuid",
|
|
"cr8_legacy",
|
|
"cx16",
|
|
"cx8",
|
|
"de",
|
|
"erms",
|
|
"extd_apicid",
|
|
"f16c",
|
|
"flush_l1d",
|
|
"flushbyasid",
|
|
"fma",
|
|
"fpu",
|
|
"fsgsbase",
|
|
"fsrm",
|
|
"fxsr",
|
|
"fxsr_opt",
|
|
"gfni",
|
|
"ht",
|
|
"hypervisor",
|
|
"ibpb",
|
|
"ibrs",
|
|
"ibrs_enhanced",
|
|
"invpcid",
|
|
"lahf_lm",
|
|
"lbrv",
|
|
"lm",
|
|
"mca",
|
|
"mce",
|
|
"misalignsse",
|
|
"mmx",
|
|
"mmxext",
|
|
"movbe",
|
|
"movdir64b",
|
|
"movdiri",
|
|
"msr",
|
|
"mtrr",
|
|
"nopl",
|
|
"npt",
|
|
"nrip_save",
|
|
"nx",
|
|
"ospke",
|
|
"osvw",
|
|
"osxsave",
|
|
"overflow_recov",
|
|
"pae",
|
|
"pat",
|
|
"pausefilter",
|
|
"pclmulqdq",
|
|
"pdpe1gb",
|
|
"perfctr_core",
|
|
"perfmon_v2",
|
|
"pfthreshold",
|
|
"pge",
|
|
"pku",
|
|
"pni",
|
|
"popcnt",
|
|
"pse",
|
|
"pse36",
|
|
"rdpid",
|
|
"rdrand",
|
|
"rdrnd",
|
|
"rdseed",
|
|
"rdtscp",
|
|
"rep_good",
|
|
"sep",
|
|
"sha",
|
|
"sha_ni",
|
|
"smap",
|
|
"smep",
|
|
"ssbd",
|
|
"sse",
|
|
"sse2",
|
|
"sse4_1",
|
|
"sse4_2",
|
|
"sse4a",
|
|
"ssse3",
|
|
"stibp",
|
|
"succor",
|
|
"svm",
|
|
"syscall",
|
|
"tsc",
|
|
"tsc_adjust",
|
|
"tsc_deadline_timer",
|
|
"tsc_known_freq",
|
|
"tsc_scale",
|
|
"tscdeadline",
|
|
"umip",
|
|
"v_vmsave_vmload",
|
|
"vaes",
|
|
"vgif",
|
|
"vmcb_clean",
|
|
"vme",
|
|
"vmmcall",
|
|
"vnmi",
|
|
"vpclmulqdq",
|
|
"wbnoinvd",
|
|
"x2apic",
|
|
"xgetbv1",
|
|
"xsave",
|
|
"xsavec",
|
|
"xsaveerptr",
|
|
"xsaveopt",
|
|
"xsaves"
|
|
],
|
|
"l3_cache_size": 524288,
|
|
"l2_cache_size": 7340032,
|
|
"l1_data_cache_size": 917504,
|
|
"l1_instruction_cache_size": 917504,
|
|
"l2_cache_line_size": 512,
|
|
"l2_cache_associativity": 8
|
|
}
|
|
},
|
|
"commit_info": {
|
|
"id": "7292f0fc29a9a16b9f34fb78b33363f459c37523",
|
|
"time": "2025-12-29T23:28:35+00:00",
|
|
"author_time": "2025-12-29T23:28:35+00:00",
|
|
"dirty": true,
|
|
"project": "noteflow",
|
|
"branch": "master"
|
|
},
|
|
"benchmarks": [
|
|
{
|
|
"group": null,
|
|
"name": "test_compute_rms_typical_chunk",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestComputeRmsBenchmark::test_compute_rms_typical_chunk",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.449000359978527e-06,
|
|
"max": 4.6748999011470005e-05,
|
|
"mean": 5.254236109048915e-06,
|
|
"stddev": 5.406737467323485e-06,
|
|
"rounds": 5993,
|
|
"median": 3.550001565599814e-06,
|
|
"iqr": 7.00001692166552e-08,
|
|
"q1": 3.529999958118424e-06,
|
|
"q3": 3.600000127335079e-06,
|
|
"iqr_outliers": 1178,
|
|
"stddev_outliers": 472,
|
|
"outliers": "472;1178",
|
|
"ld15iqr": 3.449000359978527e-06,
|
|
"hd15iqr": 3.7089994293637574e-06,
|
|
"ops": 190322.62335485584,
|
|
"total": 0.03148863700153015,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_compute_rms_silence",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestComputeRmsBenchmark::test_compute_rms_silence",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.429999196669087e-06,
|
|
"max": 5.3219000619719736e-05,
|
|
"mean": 4.240495678882168e-06,
|
|
"stddev": 3.363396020443664e-06,
|
|
"rounds": 28075,
|
|
"median": 3.5199991543777287e-06,
|
|
"iqr": 4.000139597337693e-08,
|
|
"q1": 3.499999365885742e-06,
|
|
"q3": 3.540000761859119e-06,
|
|
"iqr_outliers": 3382,
|
|
"stddev_outliers": 1091,
|
|
"outliers": "1091;3382",
|
|
"ld15iqr": 3.440000000409782e-06,
|
|
"hd15iqr": 3.6010005715070292e-06,
|
|
"ops": 235821.48779918315,
|
|
"total": 0.11905191618461686,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_compute_rms_speech",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestComputeRmsBenchmark::test_compute_rms_speech",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.359000402269885e-06,
|
|
"max": 0.0003828669996437384,
|
|
"mean": 4.002095375594478e-06,
|
|
"stddev": 3.627403301293051e-06,
|
|
"rounds": 34664,
|
|
"median": 3.529999958118424e-06,
|
|
"iqr": 8.999995770864189e-08,
|
|
"q1": 3.4900003811344504e-06,
|
|
"q3": 3.5800003388430923e-06,
|
|
"iqr_outliers": 3474,
|
|
"stddev_outliers": 717,
|
|
"outliers": "717;3474",
|
|
"ld15iqr": 3.359000402269885e-06,
|
|
"hd15iqr": 3.718998414115049e-06,
|
|
"ops": 249869.1075925341,
|
|
"total": 0.138728634099607,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_energy_vad_process",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestVadBenchmark::test_energy_vad_process",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.510000169626437e-06,
|
|
"max": 8.923800123739056e-05,
|
|
"mean": 4.2858499286555344e-06,
|
|
"stddev": 3.3828911298869402e-06,
|
|
"rounds": 34603,
|
|
"median": 3.610000931075774e-06,
|
|
"iqr": 5.00003807246685e-08,
|
|
"q1": 3.5900011425837874e-06,
|
|
"q3": 3.640001523308456e-06,
|
|
"iqr_outliers": 3951,
|
|
"stddev_outliers": 1194,
|
|
"outliers": "1194;3951",
|
|
"ld15iqr": 3.5189987102057785e-06,
|
|
"hd15iqr": 3.718998414115049e-06,
|
|
"ops": 233325.94856248237,
|
|
"total": 0.14830326508126745,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_streaming_vad_process_chunk",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestVadBenchmark::test_streaming_vad_process_chunk",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.5800003388430923e-06,
|
|
"max": 0.00010890600060520228,
|
|
"mean": 4.529488871753616e-06,
|
|
"stddev": 3.7911652114629043e-06,
|
|
"rounds": 43013,
|
|
"median": 3.690000085043721e-06,
|
|
"iqr": 5.000219971407205e-08,
|
|
"q1": 3.6699984775623307e-06,
|
|
"q3": 3.7200006772764027e-06,
|
|
"iqr_outliers": 6322,
|
|
"stddev_outliers": 1571,
|
|
"outliers": "1571;6322",
|
|
"ld15iqr": 3.598999683163129e-06,
|
|
"hd15iqr": 3.7989993870723993e-06,
|
|
"ops": 220775.4623785718,
|
|
"total": 0.19482690484073828,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_energy_vad_speech_detection",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestVadBenchmark::test_energy_vad_speech_detection",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.5700013540918007e-06,
|
|
"max": 6.072900032449979e-05,
|
|
"mean": 4.189390656398419e-06,
|
|
"stddev": 3.0348496487482607e-06,
|
|
"rounds": 42001,
|
|
"median": 3.6800011002924293e-06,
|
|
"iqr": 3.9999576983973384e-08,
|
|
"q1": 3.668999852379784e-06,
|
|
"q3": 3.7089994293637574e-06,
|
|
"iqr_outliers": 3425,
|
|
"stddev_outliers": 1102,
|
|
"outliers": "1102;3425",
|
|
"ld15iqr": 3.609000486903824e-06,
|
|
"hd15iqr": 3.769000613829121e-06,
|
|
"ops": 238698.19790443964,
|
|
"total": 0.17595859695938998,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_energy_vad_silence_detection",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestVadBenchmark::test_energy_vad_silence_detection",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.609000486903824e-06,
|
|
"max": 5.7467999795335345e-05,
|
|
"mean": 4.000768088102557e-06,
|
|
"stddev": 2.261540943065658e-06,
|
|
"rounds": 37260,
|
|
"median": 3.690000085043721e-06,
|
|
"iqr": 4.799949238076806e-08,
|
|
"q1": 3.6710007407236844e-06,
|
|
"q3": 3.7190002331044525e-06,
|
|
"iqr_outliers": 2187,
|
|
"stddev_outliers": 909,
|
|
"outliers": "909;2187",
|
|
"ld15iqr": 3.609000486903824e-06,
|
|
"hd15iqr": 3.791001290665008e-06,
|
|
"ops": 249952.003709935,
|
|
"total": 0.1490686189627013,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_segmenter_idle_silence",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestSegmenterBenchmark::test_segmenter_idle_silence",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 5.79000698053278e-07,
|
|
"max": 2.313799996045418e-05,
|
|
"mean": 6.564644165580224e-07,
|
|
"stddev": 5.256608812213979e-07,
|
|
"rounds": 88818,
|
|
"median": 6.099999154685065e-07,
|
|
"iqr": 1.0000803740695119e-08,
|
|
"q1": 6.099999154685065e-07,
|
|
"q3": 6.200007192092016e-07,
|
|
"iqr_outliers": 9309,
|
|
"stddev_outliers": 1236,
|
|
"outliers": "1236;9309",
|
|
"ld15iqr": 5.989986675558612e-07,
|
|
"hd15iqr": 6.389982445398346e-07,
|
|
"ops": 1523311.812151533,
|
|
"total": 0.05830585654985043,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_segmenter_speech_accumulation",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestSegmenterBenchmark::test_segmenter_speech_accumulation",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.92333337610277e-07,
|
|
"max": 1.8954433350396964e-05,
|
|
"mean": 6.502446459889802e-07,
|
|
"stddev": 6.140182926016494e-07,
|
|
"rounds": 69595,
|
|
"median": 4.1999998453926913e-07,
|
|
"iqr": 2.369997673667964e-08,
|
|
"q1": 4.1296668011151877e-07,
|
|
"q3": 4.366666568481984e-07,
|
|
"iqr_outliers": 12877,
|
|
"stddev_outliers": 7206,
|
|
"outliers": "7206;12877",
|
|
"ld15iqr": 3.92333337610277e-07,
|
|
"hd15iqr": 4.7229999230088043e-07,
|
|
"ops": 1537882.7125582318,
|
|
"total": 0.04525377613760308,
|
|
"iterations": 30
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_segmenter_transition_idle_to_speech",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestSegmenterBenchmark::test_segmenter_transition_idle_to_speech",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 9.800005500437692e-07,
|
|
"max": 0.001683107000644668,
|
|
"mean": 1.1487242486780888e-06,
|
|
"stddev": 6.228963542121108e-06,
|
|
"rounds": 74963,
|
|
"median": 1.0500007192604244e-06,
|
|
"iqr": 2.0001607481390238e-08,
|
|
"q1": 1.0399999155197293e-06,
|
|
"q3": 1.0600015230011195e-06,
|
|
"iqr_outliers": 4632,
|
|
"stddev_outliers": 209,
|
|
"outliers": "209;4632",
|
|
"ld15iqr": 1.0099993232870474e-06,
|
|
"hd15iqr": 1.0909989214269444e-06,
|
|
"ops": 870530.9399977972,
|
|
"total": 0.08611181585365557,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_get_rms",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestRmsLevelProviderBenchmark::test_get_rms",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.6690016713691875e-06,
|
|
"max": 8.10370002000127e-05,
|
|
"mean": 4.130748244247385e-06,
|
|
"stddev": 2.485301198628286e-06,
|
|
"rounds": 12794,
|
|
"median": 3.760000254260376e-06,
|
|
"iqr": 3.9999576983973384e-08,
|
|
"q1": 3.7400004657683894e-06,
|
|
"q3": 3.7800000427523628e-06,
|
|
"iqr_outliers": 1053,
|
|
"stddev_outliers": 342,
|
|
"outliers": "342;1053",
|
|
"ld15iqr": 3.6800011002924293e-06,
|
|
"hd15iqr": 3.840001227217726e-06,
|
|
"ops": 242086.891011243,
|
|
"total": 0.05284879303690104,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_get_db",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestRmsLevelProviderBenchmark::test_get_db",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.790000846493058e-06,
|
|
"max": 8.7697000708431e-05,
|
|
"mean": 4.408465139383066e-06,
|
|
"stddev": 2.99667632703755e-06,
|
|
"rounds": 23625,
|
|
"median": 3.920000381185673e-06,
|
|
"iqr": 4.100184014532715e-08,
|
|
"q1": 3.899998773704283e-06,
|
|
"q3": 3.94100061384961e-06,
|
|
"iqr_outliers": 2281,
|
|
"stddev_outliers": 606,
|
|
"outliers": "606;2281",
|
|
"ld15iqr": 3.838998964056373e-06,
|
|
"hd15iqr": 4.008999894722365e-06,
|
|
"ops": 226836.31794351517,
|
|
"total": 0.10414998891792493,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_rms_to_db_conversion",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestRmsLevelProviderBenchmark::test_rms_to_db_conversion",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 1.6821429328826654e-07,
|
|
"max": 2.489571475702438e-06,
|
|
"mean": 1.8857932409648374e-07,
|
|
"stddev": 6.388702698443576e-08,
|
|
"rounds": 196851,
|
|
"median": 1.7607141801688287e-07,
|
|
"iqr": 1.821458032022101e-09,
|
|
"q1": 1.7532140970745657e-07,
|
|
"q3": 1.7714286773947867e-07,
|
|
"iqr_outliers": 25379,
|
|
"stddev_outliers": 10574,
|
|
"outliers": "10574;25379",
|
|
"ld15iqr": 1.728214036640046e-07,
|
|
"hd15iqr": 1.7996425023219282e-07,
|
|
"ops": 5302808.273341595,
|
|
"total": 0.03712202852771692,
|
|
"iterations": 28
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_array_copy",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestNumpyOperationsBenchmark::test_array_copy",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 1.868000254034996e-07,
|
|
"max": 4.698279954027385e-06,
|
|
"mean": 2.0344677179673465e-07,
|
|
"stddev": 6.667938193365902e-08,
|
|
"rounds": 193799,
|
|
"median": 1.9279999833088368e-07,
|
|
"iqr": 2.400047378614549e-09,
|
|
"q1": 1.915999746415764e-07,
|
|
"q3": 1.9400002202019095e-07,
|
|
"iqr_outliers": 11953,
|
|
"stddev_outliers": 7096,
|
|
"outliers": "7096;11953",
|
|
"ld15iqr": 1.8799997633323074e-07,
|
|
"hd15iqr": 1.976399653358385e-07,
|
|
"ops": 4915290.575360459,
|
|
"total": 0.03942778092743538,
|
|
"iterations": 25
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_array_concatenate_small",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestNumpyOperationsBenchmark::test_array_concatenate_small",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 1.019998308038339e-06,
|
|
"max": 4.340899977250956e-05,
|
|
"mean": 1.1834804079043573e-06,
|
|
"stddev": 8.861083095740762e-07,
|
|
"rounds": 96071,
|
|
"median": 1.059999704011716e-06,
|
|
"iqr": 2.9998773243278265e-08,
|
|
"q1": 1.0500007192604244e-06,
|
|
"q3": 1.0799994925037026e-06,
|
|
"iqr_outliers": 8523,
|
|
"stddev_outliers": 1612,
|
|
"outliers": "1612;8523",
|
|
"ld15iqr": 1.019998308038339e-06,
|
|
"hd15iqr": 1.128999429056421e-06,
|
|
"ops": 844965.4031626476,
|
|
"total": 0.11369814626777952,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_array_concatenate_large",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestNumpyOperationsBenchmark::test_array_concatenate_large",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 2.999999196617864e-06,
|
|
"max": 3.1288000172935426e-05,
|
|
"mean": 3.3309941825889935e-06,
|
|
"stddev": 1.1706137650278387e-06,
|
|
"rounds": 26640,
|
|
"median": 3.2099997042678297e-06,
|
|
"iqr": 1.4000215742271394e-07,
|
|
"q1": 3.1299987313104793e-06,
|
|
"q3": 3.2700008887331933e-06,
|
|
"iqr_outliers": 727,
|
|
"stddev_outliers": 429,
|
|
"outliers": "429;727",
|
|
"ld15iqr": 2.999999196617864e-06,
|
|
"hd15iqr": 3.4889999369625002e-06,
|
|
"ops": 300210.67140464246,
|
|
"total": 0.08873768502417079,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_array_square",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestNumpyOperationsBenchmark::test_array_square",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.3599999369471336e-07,
|
|
"max": 3.1568999474984595e-06,
|
|
"mean": 3.5837566215609753e-07,
|
|
"stddev": 9.067377964642227e-08,
|
|
"rounds": 141443,
|
|
"median": 3.46000069839647e-07,
|
|
"iqr": 4.950015863869318e-09,
|
|
"q1": 3.440000000409782e-07,
|
|
"q3": 3.489500159048475e-07,
|
|
"iqr_outliers": 4615,
|
|
"stddev_outliers": 3055,
|
|
"outliers": "3055;4615",
|
|
"ld15iqr": 3.3745000109774993e-07,
|
|
"hd15iqr": 3.5644998206407765e-07,
|
|
"ops": 2790368.056758359,
|
|
"total": 0.0506897287823449,
|
|
"iterations": 20
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_array_mean",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestNumpyOperationsBenchmark::test_array_mean",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 2.67999894276727e-06,
|
|
"max": 5.860900091647636e-05,
|
|
"mean": 2.954065997680174e-06,
|
|
"stddev": 1.737545708579586e-06,
|
|
"rounds": 14363,
|
|
"median": 2.749999111983925e-06,
|
|
"iqr": 3.0999217415228486e-08,
|
|
"q1": 2.730001142481342e-06,
|
|
"q3": 2.7610003598965704e-06,
|
|
"iqr_outliers": 897,
|
|
"stddev_outliers": 283,
|
|
"outliers": "283;897",
|
|
"ld15iqr": 2.688999302336015e-06,
|
|
"hd15iqr": 2.8089998522773385e-06,
|
|
"ops": 338516.47213884164,
|
|
"total": 0.042429249924680335,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_list_append",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestBufferOperationsBenchmark::test_list_append",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 2.5500003175693564e-07,
|
|
"max": 0.0006309430000328575,
|
|
"mean": 3.0804353053803723e-06,
|
|
"stddev": 1.165474475076179e-05,
|
|
"rounds": 50356,
|
|
"median": 1.2219500604260248e-06,
|
|
"iqr": 5.370500730350612e-07,
|
|
"q1": 1.1269499736954459e-06,
|
|
"q3": 1.664000046730507e-06,
|
|
"iqr_outliers": 6448,
|
|
"stddev_outliers": 1234,
|
|
"outliers": "1234;6448",
|
|
"ld15iqr": 3.254500370530877e-07,
|
|
"hd15iqr": 2.470399977028137e-06,
|
|
"ops": 324629.44384950167,
|
|
"total": 0.15511840023773402,
|
|
"iterations": 20
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_list_clear",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestBufferOperationsBenchmark::test_list_clear",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.850000211969018e-06,
|
|
"max": 4.9208001655642875e-05,
|
|
"mean": 4.4985737419180015e-06,
|
|
"stddev": 1.841199779668339e-06,
|
|
"rounds": 132644,
|
|
"median": 4.05999890062958e-06,
|
|
"iqr": 7.100061338860542e-08,
|
|
"q1": 4.0289996832143515e-06,
|
|
"q3": 4.100000296602957e-06,
|
|
"iqr_outliers": 16629,
|
|
"stddev_outliers": 10011,
|
|
"outliers": "10011;16629",
|
|
"ld15iqr": 3.9289989217650145e-06,
|
|
"hd15iqr": 4.208999598631635e-06,
|
|
"ops": 222292.67705049165,
|
|
"total": 0.5967088154229714,
|
|
"iterations": 1
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_sum_lengths_naive",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestBufferOperationsBenchmark::test_sum_lengths_naive",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 5.070000042906031e-07,
|
|
"max": 6.428855003832723e-05,
|
|
"mean": 5.806604613237722e-07,
|
|
"stddev": 2.6627529629995264e-07,
|
|
"rounds": 94340,
|
|
"median": 5.419999979494606e-07,
|
|
"iqr": 7.050039130263115e-09,
|
|
"q1": 5.389999387261923e-07,
|
|
"q3": 5.460499778564554e-07,
|
|
"iqr_outliers": 15957,
|
|
"stddev_outliers": 6262,
|
|
"outliers": "6262;15957",
|
|
"ld15iqr": 5.284499820845667e-07,
|
|
"hd15iqr": 5.569499990087934e-07,
|
|
"ops": 1722176.8427632046,
|
|
"total": 0.05477950792128468,
|
|
"iterations": 20
|
|
}
|
|
},
|
|
{
|
|
"group": null,
|
|
"name": "test_cached_length",
|
|
"fullname": "tests/benchmarks/test_hot_paths.py::TestBufferOperationsBenchmark::test_cached_length",
|
|
"params": null,
|
|
"param": null,
|
|
"extra_info": {},
|
|
"options": {
|
|
"disable_gc": false,
|
|
"timer": "perf_counter",
|
|
"min_rounds": 5,
|
|
"max_time": 1.0,
|
|
"min_time": 5e-06,
|
|
"warmup": false
|
|
},
|
|
"stats": {
|
|
"min": 3.2465758933590036e-08,
|
|
"max": 5.197123331751368e-07,
|
|
"mean": 3.6134694196367755e-08,
|
|
"stddev": 9.28983695660366e-09,
|
|
"rounds": 198060,
|
|
"median": 3.452054418269417e-08,
|
|
"iqr": 4.1095455805451644e-10,
|
|
"q1": 3.431507313308268e-08,
|
|
"q3": 3.4726027691137196e-08,
|
|
"iqr_outliers": 19406,
|
|
"stddev_outliers": 10291,
|
|
"outliers": "10291;19406",
|
|
"ld15iqr": 3.3705474965095723e-08,
|
|
"hd15iqr": 3.5342465757634747e-08,
|
|
"ops": 27674234.478522852,
|
|
"total": 0.007156837532532597,
|
|
"iterations": 146
|
|
}
|
|
}
|
|
],
|
|
"datetime": "2025-12-29T23:37:15.755048+00:00",
|
|
"version": "5.2.3"
|
|
} |