From bbc7bafc60ca71cbcac12375548acf9b7197db4e Mon Sep 17 00:00:00 2001 From: Varyag Nord <124573691+varyagnord@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:38:12 +0300 Subject: [PATCH 1/5] Add native regression and kernel profiling tools Add guarded depthwise, concurrency, CPU-mask and every-hop stream checks. Preserve raw timing evidence and provide paired statistical/profiling tools. Propagate GCC profiling linkage to static consumers during PGO generation. --- optimized_inference/CMakeLists.txt | 88 ++++++- optimized_inference/benchmarks/benchmark.c | 50 +++- optimized_inference/benchmarks/kernels.c | 65 +++++ optimized_inference/docs/BUILD.md | 19 ++ optimized_inference/docs/PERFORMANCE.md | 79 ++++++ .../tests/benchmark_statistics_test.py | 66 +++++ optimized_inference/tests/compare_stream.c | 108 ++++++++ .../tests/concurrency_contract.c | 59 +++++ optimized_inference/tests/cpu_contract.c | 21 ++ .../tests/depthwise_contract.c | 74 ++++++ .../tests/stream_comparator_test.py | 33 +++ optimized_inference/tests/stream_fault.c | 38 +++ .../tools/analyze_comparison.py | 27 ++ optimized_inference/tools/build.py | 4 +- .../tools/compare_benchmarks.py | 242 ++++++++++++++++++ optimized_inference/tools/compare_kernels.py | 78 ++++++ optimized_inference/tools/compare_streams.py | 68 +++++ .../tools/make_cpu_fixtures.py | 108 ++++++++ optimized_inference/tools/profile_cpu.py | 78 ++++++ 19 files changed, 1300 insertions(+), 5 deletions(-) create mode 100644 optimized_inference/benchmarks/kernels.c create mode 100644 optimized_inference/tests/benchmark_statistics_test.py create mode 100644 optimized_inference/tests/compare_stream.c create mode 100644 optimized_inference/tests/concurrency_contract.c create mode 100644 optimized_inference/tests/cpu_contract.c create mode 100644 optimized_inference/tests/depthwise_contract.c create mode 100644 optimized_inference/tests/stream_comparator_test.py create mode 100644 optimized_inference/tests/stream_fault.c create mode 100644 optimized_inference/tools/analyze_comparison.py create mode 100644 optimized_inference/tools/compare_benchmarks.py create mode 100644 optimized_inference/tools/compare_kernels.py create mode 100644 optimized_inference/tools/compare_streams.py create mode 100644 optimized_inference/tools/make_cpu_fixtures.py create mode 100644 optimized_inference/tools/profile_cpu.py diff --git a/optimized_inference/CMakeLists.txt b/optimized_inference/CMakeLists.txt index 2672063..95a25fd 100644 --- a/optimized_inference/CMakeLists.txt +++ b/optimized_inference/CMakeLists.txt @@ -14,6 +14,8 @@ if(NOT CMAKE_BUILD_TYPE) endif() option(BUILD_SHARED_LIBS "Build shared runtime" ON) option(DPDF_SANITIZE "Enable address and undefined-behavior sanitizers" OFF) +option(DPDF_BUILD_KERNEL_BENCHMARKS "Build private hot-kernel measurement tools" OFF) +option(DPDF_ALIGN_BRANCHES "Align branches for Skylake/Kaby Lake JCC microcode" OFF) set(DPDF_PGO_MODE "OFF" CACHE STRING "Model-8 profile mode: OFF, GENERATE, USE") set_property(CACHE DPDF_PGO_MODE PROPERTY STRINGS OFF GENERATE USE) set(DPDF_PROFILE_DIR "${CMAKE_BINARY_DIR}/profiles" CACHE PATH "GCC profile directory") @@ -81,11 +83,28 @@ foreach(size IN ITEMS 2 8) ${model_dir}/qaffine4pair64_fused_vnni.S) endif() endif() + + if(DPDF_ALIGN_BRANCHES) + target_compile_options(backend${size} PRIVATE -Wa,-mbranches-within-32B-boundaries) + endif() dpdf_compile(backend${size}) endforeach() set_source_files_properties(src/common/avx2.c src/common/int8.c PROPERTIES COMPILE_OPTIONS "-mavx2;-mfma") set_source_files_properties(src/common/int8_vnni.c PROPERTIES COMPILE_OPTIONS "-mavx2;-mfma;-mavxvnni") set_source_files_properties(src/common/fp16.c PROPERTIES COMPILE_OPTIONS "-mavx2;-mfma;-mf16c") +# Preserve the accepted VNNI machine code when aligning the AVX2/common backend. +# GNU as source options follow target options; boundary=0 cancels only the +# extra branch-boundary padding, leaving the existing assembly alignment. +if(DPDF_ALIGN_BRANCHES OR DPDF_ALIGN_BRANCHES_MODEL2 OR DPDF_ALIGN_BRANCHES_MODEL8) + set_property(SOURCE src/common/int8_vnni.c + src/common/qdot64_fixed_vnni.S src/common/qdot4pair_fixed_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine64_fused_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine256_fused_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine4pair64_fused_vnni.S + src/models/dpdfnet8_48khz_hr/qaffine64_fused_vnni.S + APPEND PROPERTY COMPILE_OPTIONS -Wa,-malign-branch-boundary=0) +endif() + add_library(dpdfnet src/runtime.c $ $) add_library(DPDFNet::dpdfnet ALIAS dpdfnet) target_include_directories(dpdfnet PUBLIC @@ -101,6 +120,11 @@ dpdf_compile(dpdfnet) if(DPDF_PGO_MODE STREQUAL "GENERATE") target_compile_options(backend8 PRIVATE $<$:-fprofile-generate=${DPDF_PROFILE_DIR}>) target_link_options(dpdfnet PRIVATE -fprofile-generate=${DPDF_PROFILE_DIR}) + if(NOT BUILD_SHARED_LIBS) + # Static archives do not link themselves: their consumers need libgcov + # while generating the profile. The USE/OFF release builds do not inherit it. + target_link_options(dpdfnet INTERFACE -fprofile-generate=${DPDF_PROFILE_DIR}) + endif() elseif(DPDF_PGO_MODE STREQUAL "USE") target_compile_options(backend8 PRIVATE $<$:-fprofile-use=${DPDF_PROFILE_DIR};-Werror=missing-profile;-Werror=coverage-mismatch>) endif() @@ -119,9 +143,20 @@ if(BUILD_TESTING) add_test(NAME public_contract COMMAND public_contract "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet2_48khz_hr/weights.f32" "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet8_48khz_hr/weights.f32") + add_executable(cpu_contract tests/cpu_contract.c) + target_link_libraries(cpu_contract PRIVATE dpdfnet) + dpdf_compile(cpu_contract) + add_test(NAME cpu_contract COMMAND cpu_contract 1) + find_package(Threads REQUIRED) + add_executable(concurrency_contract tests/concurrency_contract.c) + target_link_libraries(concurrency_contract PRIVATE dpdfnet m Threads::Threads) + dpdf_compile(concurrency_contract) + add_test(NAME concurrency_contract COMMAND concurrency_contract + "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet2_48khz_hr/weights.f32" + "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet8_48khz_hr/weights.f32") foreach(size IN ITEMS 2 8) foreach(test IN ITEMS full_contract extended_contract layout_contract generated_gru_contract - conv_helpers_contract int8_contract int8_dispatch_contract fused_contract pair_contract) + conv_helpers_contract depthwise_contract int8_contract int8_dispatch_contract fused_contract pair_contract) set(target "model${size}_${test}") add_executable(${target} tests/${test}.c $) target_include_directories(${target} PRIVATE include src src/private) @@ -139,6 +174,30 @@ if(BUILD_TESTING) add_test(NAME ${target} COMMAND ${target} "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet${size}_48khz_hr/weights.f32") endforeach() endforeach() + # Scalar reference must retain its ordered multiply/add operations. + set_source_files_properties(tests/depthwise_contract.c PROPERTIES COMPILE_OPTIONS "-fno-tree-vectorize") + if(BUILD_SHARED_LIBS) + add_executable(compare_stream tests/compare_stream.c) + target_include_directories(compare_stream PRIVATE include) + target_link_libraries(compare_stream PRIVATE ${CMAKE_DL_LIBS} m) + dpdf_compile(compare_stream) + add_library(stream_fault SHARED tests/stream_fault.c) + target_include_directories(stream_fault PRIVATE include) + target_link_libraries(stream_fault PRIVATE ${CMAKE_DL_LIBS}) + dpdf_compile(stream_fault) + endif() + find_package(Python3 COMPONENTS Interpreter QUIET) + if(Python3_Interpreter_FOUND) + add_test(NAME benchmark_statistics COMMAND "${Python3_EXECUTABLE}" + "${CMAKE_CURRENT_SOURCE_DIR}/tests/benchmark_statistics_test.py") + if(BUILD_SHARED_LIBS) + add_test(NAME stream_comparator COMMAND "${Python3_EXECUTABLE}" + "${CMAKE_CURRENT_SOURCE_DIR}/tests/stream_comparator_test.py" + --runner "$" --baseline "$" + --fault "$" + --weights "${CMAKE_CURRENT_SOURCE_DIR}/models/dpdfnet2_48khz_hr/weights.f32") + endif() + endif() foreach(test IN ITEMS wide_contract pair_fused_contract) add_executable(model2_${test} tests/${test}.c $) target_include_directories(model2_${test} PRIVATE include src src/private) @@ -148,6 +207,19 @@ if(BUILD_TESTING) dpdf_compile(model2_${test}) add_test(NAME model2_${test} COMMAND model2_${test}) endforeach() + get_target_property(backend8_definitions backend8 COMPILE_DEFINITIONS) + if("DPDF_QBATCH_FUSED64_AVX2" IN_LIST backend8_definitions) + add_executable(model8_pair_fused_contract tests/pair_fused_contract.c $) + target_include_directories(model8_pair_fused_contract PRIVATE include src src/private) + target_compile_options(model8_pair_fused_contract PRIVATE + -include "${CMAKE_CURRENT_SOURCE_DIR}/src/private/namespace8.h" -frounding-math -fno-tree-vectorize) + target_link_libraries(model8_pair_fused_contract PRIVATE m) + if(DPDF_PGO_MODE STREQUAL "GENERATE") + target_link_options(model8_pair_fused_contract PRIVATE -fprofile-generate=${DPDF_PROFILE_DIR}) + endif() + dpdf_compile(model8_pair_fused_contract) + add_test(NAME model8_pair_fused_contract COMMAND model8_pair_fused_contract) + endif() # Reuse the guarded scalar assembly oracles for each VNNI specialization. if(DPDF_ENABLE_AVX_VNNI AND DPDF_COMPILER_HAS_AVX_VNNI) foreach(size IN ITEMS 2 8) @@ -178,6 +250,20 @@ if(BUILD_TESTING) set_tests_properties(${tests} PROPERTIES TIMEOUT 120 ENVIRONMENT "ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:handle_segv=0;UBSAN_OPTIONS=halt_on_error=1") endif() +if(DPDF_BUILD_KERNEL_BENCHMARKS) + foreach(size IN ITEMS 2 8) + add_executable(kernel_benchmark${size} benchmarks/kernels.c $) + target_include_directories(kernel_benchmark${size} PRIVATE include src/private) + target_compile_options(kernel_benchmark${size} PRIVATE + -include "${CMAKE_CURRENT_SOURCE_DIR}/src/private/namespace${size}.h") + target_compile_definitions(kernel_benchmark${size} PRIVATE DPDF_X86_DISPATCH) + target_link_libraries(kernel_benchmark${size} PRIVATE m) + if(DPDF_PGO_MODE STREQUAL "GENERATE" AND size EQUAL 8) + target_link_options(kernel_benchmark${size} PRIVATE -fprofile-generate=${DPDF_PROFILE_DIR}) + endif() + dpdf_compile(kernel_benchmark${size}) + endforeach() +endif() include(GNUInstallDirs) include(CMakePackageConfigHelpers) install(TARGETS dpdfnet EXPORT DPDFNetTargets diff --git a/optimized_inference/benchmarks/benchmark.c b/optimized_inference/benchmarks/benchmark.c index 90e2249..6d1f09d 100644 --- a/optimized_inference/benchmarks/benchmark.c +++ b/optimized_inference/benchmarks/benchmark.c @@ -3,6 +3,7 @@ #include #include #include +#include static int64_t nanoseconds(clockid_t clock) { struct timespec t; if (clock_gettime(clock, &t)) { perror("clock_gettime"); exit(1); } return (int64_t)t.tv_sec * INT64_C(1000000000) + t.tv_nsec; @@ -16,6 +17,25 @@ static size_t rss(void) { static int compare(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return (x > y) - (x < y); } +/* perf stat/record --delay=-1 --control=fifo:CONTROL,ACK. Optional control is + * outside the timed region; ordinary latency runs never attach a profiler. */ +static int profiler_command(FILE *control, FILE *ack, const char *command) { + if (!control) return 0; + if (fprintf(control, "%s\n", command) < 0 || fflush(control)) return -1; + char response[32]; + /* perf versions may NUL-pad their acknowledgement. */ + int first; + do { first = fgetc(ack); } while (first == 0); + if (first == EOF) { + fprintf(stderr, "perf acknowledgement missing after %s\n", command); return -1; + } + response[0] = (char)first; + if (!fgets(response + 1, sizeof(response) - 1, ack)) return -1; + if (strcmp(response, "ack\n")) { + fprintf(stderr, "Unexpected perf acknowledgement after %s: %s\n", command, response); return -1; + } + return 0; +} int main(int argc, char **argv) { if (argc < 3 || argc > 6) { fprintf(stderr, "Usage: %s 2|8 weights.f32 [hops=1000] [paced|continuous] [spectra.f32]\n", argv[0]); return 2; @@ -25,6 +45,10 @@ int main(int argc, char **argv) { size_t hops = argc > 3 ? (size_t)strtoul(argv[3], NULL, 10) : 1000; int paced = argc < 5 || !strcmp(argv[4], "paced"); if (!info || hops < 100 || hops > 1000000 || (argc > 4 && strcmp(argv[4], "paced") && strcmp(argv[4], "continuous"))) return 2; + const char *control_path = getenv("DPDF_PERF_CONTROL"), *ack_path = getenv("DPDF_PERF_ACK"); + FILE *control = control_path ? fopen(control_path, "w") : NULL; + FILE *ack = ack_path ? fopen(ack_path, "r") : NULL; + if ((control_path || ack_path) && (!control || !ack)) return 1; size_t frame_count = 256; FILE *input = argc > 5 ? fopen(argv[5], "rb") : NULL; if (argc > 5) { @@ -46,7 +70,8 @@ int main(int argc, char **argv) { dpdfnet_model *m = weights ? dpdfnet_create(id, weights, info->weight_floats) : NULL; free(weights); if (!m || dpdfnet_init_state(id, state)) return 1; - double sum = 0, cpu = 0; size_t over = 0, late = 0; + double sum = 0, cpu = 0, mean = 0, m2 = 0; size_t over = 0, late = 0; + struct rusage usage_before = {0}, usage_after = {0}; float output[962]; int64_t deadline = nanoseconds(CLOCK_MONOTONIC); for (size_t i = 0; i < hops + 120; ++i) { @@ -54,23 +79,42 @@ int main(int argc, char **argv) { struct timespec t = {deadline / INT64_C(1000000000), deadline % INT64_C(1000000000)}; while (clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &t, NULL)) {} } + if (i == 120 && (profiler_command(control, ack, "enable") || getrusage(RUSAGE_SELF, &usage_before))) return 1; int64_t c0 = nanoseconds(CLOCK_THREAD_CPUTIME_ID), t0 = nanoseconds(CLOCK_MONOTONIC); if (dpdfnet_process(m, frames + (i % frame_count) * 962, state, output, state)) return 1; int64_t t1 = nanoseconds(CLOCK_MONOTONIC), c1 = nanoseconds(CLOCK_THREAD_CPUTIME_ID); if (i >= 120) { double ms = (double)(t1 - t0) / 1e6; times[i - 120] = ms; sum += ms; + double delta = ms - mean; mean += delta / (double)(i - 119); m2 += delta * (ms - mean); cpu += (double)(c1 - c0) / 1e6; over += ms > 10; late += paced && t1 > deadline + INT64_C(10000000); } deadline += INT64_C(10000000); if (paced && t1 > deadline) deadline = t1; /* Record miss before restarting cadence. */ } + if (profiler_command(control, ack, "disable") || getrusage(RUSAGE_SELF, &usage_after)) return 1; + if (control) fclose(control); + if (ack) fclose(ack); + const char *samples = getenv("DPDF_BENCH_SAMPLES"); + if (samples) { + FILE *f = fopen(samples, "wb"); + if (!f) return 1; + size_t written = fwrite(times, sizeof(double), hops, f); + int closed = fclose(f); + if (written != hops || closed) return 1; + } size_t after = rss(); qsort(times, hops, sizeof(double), compare); printf("{\"model\":\"%s\",\"input\":\"%s\",\"mode\":\"%s\",\"hops\":%zu," - "\"mean_ms\":%.6f,\"cpu_ms\":%.6f,\"p99_ms\":%.6f,\"max_ms\":%.6f," + "\"mean_ms\":%.9f,\"cpu_ms\":%.9f,\"p99_ms\":%.9f,\"max_ms\":%.9f," + "\"min_ms\":%.9f,\"median_ms\":%.9f,\"p95_ms\":%.9f,\"p999_ms\":%.9f,\"hop_sd_ms\":%.9f," + "\"voluntary_switches\":%ld,\"involuntary_switches\":%ld,\"minor_faults\":%ld,\"major_faults\":%ld," "\"over_10ms\":%zu,\"late\":%zu,\"owned_bytes\":%zu,\"rss_bytes\":%zu,\"rss_increment_bytes\":%zd}\n", info->name, input ? "file" : "synthetic", paced ? "paced" : "continuous", hops, - sum / hops, cpu / hops, times[(hops * 99) / 100], times[hops - 1], over, late, + sum / hops, cpu / hops, times[(hops * 99) / 100], times[hops - 1], + times[0], (times[(hops - 1) / 2] + times[hops / 2]) / 2, + times[(hops * 95) / 100], times[(hops * 999) / 1000], sqrt(m2 / (double)(hops - 1)), + usage_after.ru_nvcsw - usage_before.ru_nvcsw, usage_after.ru_nivcsw - usage_before.ru_nivcsw, + usage_after.ru_minflt - usage_before.ru_minflt, usage_after.ru_majflt - usage_before.ru_majflt, over, late, dpdfnet_owned_bytes(m), after, (ptrdiff_t)after - (ptrdiff_t)before); dpdfnet_destroy(m); free(state); free(times); free(frames); return 0; diff --git a/optimized_inference/benchmarks/kernels.c b/optimized_inference/benchmarks/kernels.c new file mode 100644 index 0000000..1a94b63 --- /dev/null +++ b/optimized_inference/benchmarks/kernels.c @@ -0,0 +1,65 @@ +#define _POSIX_C_SOURCE 200809L +#include "internal.h" +#include "full_ops.h" +#include "int8_matrix.h" +#include +#include +#include +#include +#include +#include + +static uint32_t seed=20261026; +static float sample(void) { + seed=1664525u*seed+1013904223u; + return ((int)(seed>>16)-32768)/32768.0f; +} +static int64_t ns(clockid_t clock) { + struct timespec t; + if(clock_gettime(clock,&t)) exit(2); + return (int64_t)t.tv_sec*INT64_C(1000000000)+t.tv_nsec; +} + +int main(int argc,char **argv) { + if(argc!=3 || !dpdf_has_avx2()) return 2; + int iterations=atoi(argv[2]); + if(iterations<100 || iterations>10000000) return 2; + int kind=-1; + const char *names[]={"depthwise2","depthwise3","pair40","pair48","batch40","row64", + "gates1","gates40","gates48","norm40","transpose"}; + for(int i=0;i<11;++i) if(!strcmp(argv[1],names[i])) kind=i; + if(kind<0) return 2; + const size_t count=64*480; + float *x=malloc(count*sizeof(float)),*b=malloc(count*sizeof(float)); + float *w=malloc(count*sizeof(float)),*y=malloc(count*sizeof(float)),*z=malloc(count*sizeof(float)); + if(!x||!b||!w||!y||!z) return 2; + for(size_t i=0;i +#include +#include +#include +#include +#include + +typedef struct { + void *library; + const dpdfnet_model_info *(*info)(dpdfnet_model_id); + dpdfnet_model *(*create)(dpdfnet_model_id,const float *,size_t); + int (*reset)(dpdfnet_model_id,float *); + int (*process)(dpdfnet_model *,const float *,const float *,float *,float *); + void (*destroy)(dpdfnet_model *); +} api; +#define CHECK(x) do {if(!(x)){fprintf(stderr,"Stream comparison line %d: %s\n",__LINE__,#x);return 1;}}while(0) +static int load(api *a,const char *path) { + a->library=dlopen(path,RTLD_NOW|RTLD_LOCAL); + if(!a->library){fprintf(stderr,"%s\n",dlerror());return -1;} +#define SYMBOL(field,name) do {*(void **)(&a->field)=dlsym(a->library,name);if(!a->field)return -1;}while(0) + SYMBOL(info,"dpdfnet_get_model_info"); SYMBOL(create,"dpdfnet_create"); + SYMBOL(reset,"dpdfnet_init_state"); SYMBOL(process,"dpdfnet_process"); SYMBOL(destroy,"dpdfnet_destroy"); +#undef SYMBOL + return 0; +} +static uint64_t digest(uint64_t hash,const float *x,size_t n) { + for(size_t i=0;i=6 && argc<=20); + /* Preserve the two-library CLI; append additional candidate paths. */ + const int libraries=argc-4; + api a[libraries]; + for(int j=0;jstate_floats==other->state_floats&&info->weight_floats==other->weight_floats); + } + size_t n=info->state_floats,wn=info->weight_floats; + float *weights=malloc(wn*sizeof(float));CHECK(weights); + FILE *wf=fopen(argv[4],"rb");CHECK(wf); + CHECK(fread(weights,sizeof(float),wn,wf)==wn && fgetc(wf)==EOF);fclose(wf); + dpdfnet_model *m[libraries]; + for(int j=0;j=8);fclose(input);input=NULL; + for(int j=1;j +#include +#define CHECK(x) do {if(!(x)){fprintf(stderr,"Concurrency contract line %d\n",__LINE__);exit(1);}}while(0) +enum {WORKERS=4,HOPS=64}; +typedef struct { + dpdfnet_model *serial,*parallel; + float *serial_state,*parallel_state; + float input[962],serial_output[962],parallel_output[962]; + const dpdfnet_model_info *info; + dpdfnet_model_id id; + pthread_barrier_t *start,*done; +} worker; +static void *process(void *opaque) { + worker *w=opaque; + for(int hop=0;hopstart); + CHECK(!dpdfnet_process(w->parallel,w->input,w->parallel_state,w->parallel_output,w->parallel_state)); + pthread_barrier_wait(w->done); + } + return NULL; +} +int main(int argc,char **argv) { + CHECK(argc==3); + if(!dpdfnet_cpu_supported())return 77; + pthread_barrier_t start,done; + CHECK(!pthread_barrier_init(&start,NULL,WORKERS+1));CHECK(!pthread_barrier_init(&done,NULL,WORKERS+1)); + worker w[WORKERS]={0};pthread_t threads[WORKERS]; + for(int i=0;iweight_floats); + w[i].parallel=dpdfnet_create(w[i].id,weights,w[i].info->weight_floats);free(weights); + CHECK(w[i].serial&&w[i].parallel); + w[i].serial_state=malloc(w[i].info->state_floats*sizeof(float)); + w[i].parallel_state=malloc(w[i].info->state_floats*sizeof(float)); + CHECK(w[i].serial_state&&w[i].parallel_state); + CHECK(!dpdfnet_init_state(w[i].id,w[i].serial_state));CHECK(!dpdfnet_init_state(w[i].id,w[i].parallel_state)); + CHECK(!pthread_create(threads+i,NULL,process,w+i)); + } + for(int hop=0;hopstate_floats*sizeof(float))); + } + } + for(int i=0;i +#include +#define CHECK(x) do {if(!(x)){fprintf(stderr,"CPU contract line %d\n",__LINE__);return 1;}}while(0) +int main(int argc,char **argv) { + CHECK(argc==2); + int expected=atoi(argv[1]);CHECK(expected==0||expected==1); + CHECK(dpdfnet_cpu_supported()==expected); + for(int model=2;model<=8;model+=6){ + const dpdfnet_model_info *info=dpdfnet_get_model_info((dpdfnet_model_id)model);CHECK(info); + float *state=malloc(info->state_floats*sizeof(float));CHECK(state); + CHECK(!dpdfnet_init_state((dpdfnet_model_id)model,state));CHECK(state[0]!=0); + if(!expected){ + float *weights=calloc(info->weight_floats,sizeof(float));CHECK(weights); + CHECK(!dpdfnet_create((dpdfnet_model_id)model,weights,info->weight_floats));free(weights); + } + free(state); + } + printf("{\"cpu_supported\":%d,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":%s}\n",expected,expected?"null":"true"); + return 0; +} diff --git a/optimized_inference/tests/depthwise_contract.c b/optimized_inference/tests/depthwise_contract.c new file mode 100644 index 0000000..e7c3321 --- /dev/null +++ b/optimized_inference/tests/depthwise_contract.c @@ -0,0 +1,74 @@ +/* Independent ordered scalar oracle, exact input bounds and output canaries. + * All rounding modes and all FTZ/DAZ combinations are exercised. */ +#define _GNU_SOURCE +#include "full_ops.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define CHECK(x) do {if(!(x)){fprintf(stderr,"Depthwise contract line %d\n",__LINE__);return 1;}}while(0) +static uint32_t random_state=0x194812; +static float sample(void) { + random_state=1664525u*random_state+1013904223u; + return ((int)(random_state>>16)-32768)/8192.0f; +} +static void reference(const float *x,const float *w,const float *bias,float *y, + int ci,int wi,int co,int wo,int sw) { + for(int oc=0;oc=0 && ix +#include +#include +#include +#include +typedef struct {dpdfnet_model *context;unsigned calls;} proxy; +static void *reference_library; +static const dpdfnet_model_info *(*reference_info)(dpdfnet_model_id); +static dpdfnet_model *(*reference_create)(dpdfnet_model_id,const float *,size_t); +static int (*reference_reset)(dpdfnet_model_id,float *); +static int (*reference_process)(dpdfnet_model *,const float *,const float *,float *,float *); +static void (*reference_destroy)(dpdfnet_model *); +__attribute__((constructor)) static void initialize(void) { + const char *path=getenv("DPDF_FAULT_REFERENCE"); + void *library=path?dlopen(path,RTLD_NOW|RTLD_LOCAL):NULL;reference_library=library; + if(!library){fprintf(stderr,"Fault proxy needs DPDF_FAULT_REFERENCE\n");abort();} +#define LOAD(field,name) do {*(void **)(&field)=dlsym(library,name);if(!field)abort();}while(0) + LOAD(reference_info,"dpdfnet_get_model_info");LOAD(reference_create,"dpdfnet_create"); + LOAD(reference_reset,"dpdfnet_init_state");LOAD(reference_process,"dpdfnet_process");LOAD(reference_destroy,"dpdfnet_destroy"); +#undef LOAD +} +__attribute__((destructor)) static void finish(void){if(reference_library)dlclose(reference_library);} +const dpdfnet_model_info *dpdfnet_get_model_info(dpdfnet_model_id id){return reference_info(id);} +int dpdfnet_init_state(dpdfnet_model_id id,float *state){return reference_reset(id,state);} +dpdfnet_model *dpdfnet_create(dpdfnet_model_id id,const float *weights,size_t n){ + proxy *p=calloc(1,sizeof(*p));if(!p)return NULL; + p->context=reference_create(id,weights,n);if(!p->context){free(p);return NULL;} + return (dpdfnet_model *)p; +} +int dpdfnet_process(dpdfnet_model *model,const float *x,const float *state,float *out,float *next){ + proxy *p=(proxy *)model;int result=reference_process(p->context,x,state,out,next); + if(!result && ++p->calls==129){uint32_t bits;memcpy(&bits,out,4);bits^=1;memcpy(out,&bits,4);} + return result; +} +void dpdfnet_destroy(dpdfnet_model *model){if(model){proxy *p=(proxy *)model;reference_destroy(p->context);free(p);}} diff --git a/optimized_inference/tools/analyze_comparison.py b/optimized_inference/tools/analyze_comparison.py new file mode 100644 index 0000000..3bddb5e --- /dev/null +++ b/optimized_inference/tools/analyze_comparison.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +"""Reanalyze an immutable comparison journal with the current inference code.""" +import argparse +import json +from pathlib import Path +from compare_benchmarks import summarize, sha + +def main(): + p=argparse.ArgumentParser(description=__doc__) + p.add_argument('--journal',type=Path,required=True) + p.add_argument('--protocol',type=Path,required=True) + p.add_argument('--output',type=Path,required=True) + args=p.parse_args() + rows=[json.loads(line) for line in args.journal.read_text().splitlines()] + protocol=json.loads(args.protocol.read_text()) + family=protocol['protocol']['family_size'];seed=protocol['protocol']['seed'] + result={'schema_version':2,'journal_sha256':sha(args.journal),'protocol_sha256':sha(args.protocol), + 'analysis_code_sha256':sha(Path(__file__).with_name('compare_benchmarks.py')), + 'family_size':family,'models':{}} + for model in sorted({r['model_id'] for r in rows}): + summary=summarize([r for r in rows if r['model_id']==model],seed=seed,alpha=.05/family) + summary['family_adjusted_randomization_p']=min(1,summary['two_sided_sign_randomization_p']*family) + result['models'][str(model)]=summary + args.output.parent.mkdir(parents=True,exist_ok=True) + args.output.write_text(json.dumps(result,indent=2)+'\n') + +if __name__=='__main__':main() diff --git a/optimized_inference/tools/build.py b/optimized_inference/tools/build.py index 5df572e..974a5d4 100644 --- a/optimized_inference/tools/build.py +++ b/optimized_inference/tools/build.py @@ -20,6 +20,8 @@ def main(): parser.add_argument("--jobs", type=int, default=2) parser.add_argument("--no-pgo", action="store_true") parser.add_argument("--sanitize", action="store_true") + parser.add_argument("--cmake-arg", action="append", default=[], + help="Additional CMake setting, e.g. --cmake-arg=-DDPDF_ALIGN_BRANCHES=ON") args = parser.parse_args() if args.jobs < 1: parser.error("--jobs must be positive") @@ -31,7 +33,7 @@ def main(): if digest != metadata["weights_sha256"]: raise RuntimeError("Weight checksum mismatch: %s" % folder) settings = ["-DCMAKE_BUILD_TYPE=Release", "-DBUILD_SHARED_LIBS=ON", - "-DDPDF_SANITIZE=" + ("ON" if args.sanitize else "OFF")] + "-DDPDF_SANITIZE=" + ("ON" if args.sanitize else "OFF"), *args.cmake_arg] if not args.no_pgo and not args.sanitize: # Every training run has a fresh directory; never combine stale profiles. profiles = build / "profiles" / uuid.uuid4().hex diff --git a/optimized_inference/tools/compare_benchmarks.py b/optimized_inference/tools/compare_benchmarks.py new file mode 100644 index 0000000..d386310 --- /dev/null +++ b/optimized_inference/tools/compare_benchmarks.py @@ -0,0 +1,242 @@ +#!/usr/bin/env python3 +"""Paired fresh-process comparisons. Blocks, not hops, are statistical units. + +Each block is ABBA or BAAB, with the same model/input and two processes per +build. Order is balanced and randomized before collection. Report every run; +never remove outliers. Bootstrap entire blocks, retaining paired observations. +Screening and independent confirmation should use different seeds/output files. +""" +import argparse +import fcntl +import hashlib +import itertools +import json +import math +import os +from pathlib import Path +import platform +import random +import statistics +import subprocess +import time + +ROOT = Path(__file__).resolve().parents[1] + + +def sha(path): + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def distribution(values): + return {"n": len(values), "mean": statistics.mean(values), + "sd": statistics.stdev(values) if len(values) > 1 else None, + "median": statistics.median(values), "min": min(values), "max": max(values)} + + +def student_t_cdf(x, degrees): + """Integrate the normalized t density with adaptive Simpson quadrature. + + Only used for small research summaries, never in the measured workload. + Checked against the df=1 analytic CDF and NIST tabulated critical values. + """ + if x < 0: return 1 - student_t_cdf(-x, degrees) + coefficient = math.exp(math.lgamma((degrees + 1) / 2) - math.lgamma(degrees / 2)) / math.sqrt(degrees * math.pi) + def density(v): return coefficient * (1 + v * v / degrees) ** (-(degrees + 1) / 2) + def integrate(a, b, fa, fm, fb, previous, tolerance, depth): + middle = (a + b) / 2 + fl, fr = density((a + middle) / 2), density((middle + b) / 2) + left = (middle - a) * (fa + 4 * fl + fm) / 6 + right = (b - middle) * (fm + 4 * fr + fb) / 6 + delta = left + right - previous + if depth == 0 or abs(delta) <= 15 * tolerance: + return left + right + delta / 15 + return (integrate(a, middle, fa, fl, fm, left, tolerance / 2, depth - 1) + + integrate(middle, b, fm, fr, fb, right, tolerance / 2, depth - 1)) + a, b, c = density(0), density(x / 2), density(x) + return .5 + integrate(0, x, a, b, c, x * (a + 4 * b + c) / 6, 1e-12, 24) + + +def student_t_quantile(probability, degrees): + if not .5 < probability < 1 or degrees < 1: raise ValueError("Invalid t quantile") + low, high = 0., 1. + while student_t_cdf(high, degrees) < probability: high *= 2 + for _ in range(50): + middle = (low + high) / 2 + if student_t_cdf(middle, degrees) < probability: low = middle + else: high = middle + return (low + high) / 2 + + +def summarize(rows, seed=20261026, resamples=20000, alpha=0.05): + groups = {} + for row in rows: + groups.setdefault(row["block"], []).append(row) + effects, paired_cpu, fixed_contrasts, orders = [], [], [], [] + for block in groups.values(): + a = [r for r in block if r["variant"] == "baseline"] + b = [r for r in block if r["variant"] == "candidate"] + if len(a) != 2 or len(b) != 2: + continue + effects.append(math.log(statistics.mean(r["mean_ms"] for r in b) / + statistics.mean(r["mean_ms"] for r in a))) + paired_cpu.append(math.log(statistics.mean(r["cpu_ms"] for r in b) / + statistics.mean(r["cpu_ms"] for r in a))) + order = block[0].get("order") + orders.append(order) + fixed_contrasts.append(effects[-1] if order == "ABBA" else -effects[-1]) + if len(effects) < 2: + raise ValueError("Need at least two complete comparison blocks") + rng = random.Random(seed) + n = len(effects) + boot = sorted(statistics.mean(rng.choices(effects, k=n)) for _ in range(resamples)) + low = boot[max(0, int(resamples * alpha / 2))] + high = boot[min(resamples - 1, int(resamples * (1 - alpha / 2)))] + observed = abs(statistics.mean(effects)) + # Respect the balanced randomized assignment. A fixed contrast always means + # center positions versus outer positions, independently of treatment label. + positive = orders.count("ABBA") + if all(o in ("ABBA", "BAAB") for o in orders): + def randomized(selected): + return abs((2 * sum(fixed_contrasts[i] for i in selected) - sum(fixed_contrasts)) / n) + assignments = math.comb(n, positive) + if assignments <= 20000: + perm = [randomized(indices) for indices in itertools.combinations(range(n), positive)] + p = sum(v >= observed - 1e-15 for v in perm) / len(perm) + else: + p = (1 + sum(randomized(rng.sample(range(n), positive)) >= observed - 1e-15 + for _ in range(resamples))) / (resamples + 1) + elif n <= 16: + perm = [abs(sum(v if mask & (1 << i) else -v for i, v in enumerate(effects)) / n) + for mask in range(1 << n)] + p = sum(v >= observed - 1e-15 for v in perm) / len(perm) + else: + p = (1 + sum(abs(sum(v if rng.getrandbits(1) else -v for v in effects) / n) + >= observed - 1e-15 for _ in range(resamples))) / (resamples + 1) + center = statistics.mean(effects) + radius = student_t_quantile(1 - alpha / 2, n - 1) * statistics.stdev(effects) / math.sqrt(n) + answer = {"complete_blocks": n, + "time_reduction_pct": 100 * (1 - math.exp(statistics.mean(effects))), + "time_reduction_ci_pct": [100 * (1 - math.exp(center + radius)), 100 * (1 - math.exp(center - radius))], + "ci_method": "Student t interval for mean paired block log ratio, df=n-1", + "bootstrap_time_reduction_ci_pct": [100 * (1 - math.exp(high)), 100 * (1 - math.exp(low))], + "ci_level": 1 - alpha, "bootstrap_resamples": resamples, + "two_sided_sign_randomization_p": p, + "randomization_method": "Balanced ABBA/BAAB assignment" if all(o in ("ABBA", "BAAB") for o in orders) else "Unrestricted sign randomization", + "cpu_time_reduction_pct": 100 * (1 - math.exp(statistics.mean(paired_cpu))), + "block_log_ratios": effects, + "statistical_unit": "ABBA/BAAB block; individual hops are correlated"} + for variant in ("baseline", "candidate"): + runs = [r for r in rows if r["variant"] == variant] + answer[variant] = {"run_means_ms": distribution([r["mean_ms"] for r in runs]), + "run_p99_ms": distribution([r["p99_ms"] for r in runs]) if all("p99_ms" in r for r in runs) else None, + "observed_max_ms": max(r["max_ms"] for r in runs) if all("max_ms" in r for r in runs) else None, + "over_10ms": sum(r.get("over_10ms", 0) for r in runs), + "late": sum(r.get("late", 0) for r in runs), + "involuntary_switches": sum(r.get("involuntary_switches", 0) for r in runs), + "major_faults": sum(r.get("major_faults", 0) for r in runs)} + return answer + + +def telemetry(cpu): + result = {"loadavg": os.getloadavg(), "monotonic": time.monotonic()} + for name in ("scaling_cur_freq", "scaling_governor", "energy_performance_preference"): + p = Path(f"/sys/devices/system/cpu/cpu{cpu}/cpufreq/{name}") + if p.exists(): result[name] = p.read_text().strip() + result["proc_stat"] = [s for s in Path("/proc/stat").read_text().splitlines() + if s.startswith("cpu")] + result["thermal_throttle"] = {p.name: p.read_text().strip() for p in + Path(f"/sys/devices/system/cpu/cpu{cpu}/thermal_throttle").glob("*") if p.is_file()} + result["temperatures_millidegrees_c"] = {} + for hwmon in Path("/sys/class/hwmon").glob("hwmon*"): + name = hwmon / "name" + if name.exists() and name.read_text().strip() == "coretemp": + result["temperatures_millidegrees_c"].update({str(p): p.read_text().strip() for p in hwmon.glob("temp*_input")}) + return result + + +def main(): + p = argparse.ArgumentParser(description=__doc__) + p.add_argument("--baseline", type=Path, required=True) + p.add_argument("--candidate", type=Path, required=True) + p.add_argument("--models", type=int, nargs="+", choices=(2, 8), default=[2, 8]) + p.add_argument("--blocks", type=int, default=24) + p.add_argument("--hops", type=int, default=1000) + p.add_argument("--mode", choices=("paced", "continuous"), default="paced") + p.add_argument("--spectra", type=Path, nargs="+") + p.add_argument("--cpu", type=int, required=True) + p.add_argument("--seed", type=int, default=20261026) + p.add_argument("--family-size", type=int, default=1, + help="Bonferroni-adjust CI alpha for this many planned comparisons") + p.add_argument("--label", default="candidate") + p.add_argument("--output", type=Path, required=True) + args = p.parse_args() + if args.blocks < 4 or args.blocks % 2 or not 100 <= args.hops <= 1000000 or args.family_size < 1: + p.error("Use an even block count >=4, 100..1000000 hops and family-size>=1") + if args.cpu not in os.sched_getaffinity(0): p.error("CPU is outside allowed affinity") + out = args.output.resolve() + out.parent.mkdir(parents=True, exist_ok=True) + # Prevent accidentally overlapping our own benchmark jobs, builds remain separate. + lock = (ROOT / "validation" / "local" / "comparison.lock") + lock.parent.mkdir(parents=True, exist_ok=True) + with lock.open("w") as guard: + fcntl.flock(guard, fcntl.LOCK_EX | fcntl.LOCK_NB) + if out.exists() or out.with_suffix(".jsonl").exists(): + raise FileExistsError("Refuse to overwrite previous evidence") + builds = {"baseline": args.baseline.resolve(), "candidate": args.candidate.resolve()} + identities = {v: {"directory": str(d), "benchmark_sha256": sha(d / "dpdfnet_benchmark"), + "library_sha256": sha(d / "libdpdfnet.so"), + "cmake_cache": (d / "CMakeCache.txt").read_text()} + for v, d in builds.items()} + sources = [s.resolve() for s in args.spectra] if args.spectra else [None] + manifest = {str(s): sha(s) for s in sources if s is not None} + metadata = {"schema_version": 2, "label": args.label, "builds": identities, + "analysis_code_sha256": sha(Path(__file__)), + "platform": platform.platform(), "cpu": args.cpu, + "cpuinfo": Path("/proc/cpuinfo").read_text(), "input_sha256": manifest, + "protocol": vars(args) | {"warmup_hops": 120, + "all_runs_retained": True, "uncertainty_unit": "four-process block", + "primary_ci": "Paired Student t interval for mean log ratios", + "secondary_ci": "Percentile block bootstrap sensitivity analysis", + "randomization": "Balanced ABBA/BAAB assignments, exact or Monte Carlo", + "limitation": "Single host/session; thermal, scheduling and ASLR effects remain"}} + rng = random.Random(args.seed) + schedule = [] + for model in args.models: + orders = ["ABBA", "BAAB"] * (args.blocks // 2) + rng.shuffle(orders) + for block, order in enumerate(orders): + schedule.append((model, block, order, sources[block % len(sources)])) + rng.shuffle(schedule) + metadata["schedule"] = schedule + out.with_suffix(".protocol.json").write_text(json.dumps(metadata, default=str, indent=2) + "\n") + records = [] + with out.with_suffix(".jsonl").open("x") as journal: + for model, block, order, source in schedule: + for position, letter in enumerate(order): + variant = "baseline" if letter == "A" else "candidate" + weights = ROOT / "models" / f"dpdfnet{model}_48khz_hr" / "weights.f32" + command = ["taskset", "-c", str(args.cpu), str(builds[variant] / "dpdfnet_benchmark"), + str(model), str(weights), str(args.hops), args.mode] + if source: command.append(str(source)) + before = telemetry(args.cpu) + env = os.environ.copy() + for name in ("LD_PRELOAD", "DPDF_SAMPLE", "DPDF_PERF_CONTROL", "DPDF_PERF_ACK"): + env.pop(name, None) + env["DPDF_BENCH_SAMPLES"] = str(out.parent / f"{out.stem}-m{model}-b{block}-{position}.f64") + result = subprocess.run(command, check=True, capture_output=True, text=True, env=env) + row = json.loads(result.stdout) + row.update(variant=variant, block=block, model_id=model, position=position, + order=order, source=str(source), before=before, after=telemetry(args.cpu)) + records.append(row); journal.write(json.dumps(row) + "\n"); journal.flush() + print(f"{args.label}: model {model}, block {block + 1}/{args.blocks} {order}", flush=True) + for variant, directory in builds.items(): + if sha(directory / "libdpdfnet.so") != identities[variant]["library_sha256"]: + raise RuntimeError("Library changed during collection") + report = metadata | {"models": {str(m): summarize([r for r in records if r["model_id"] == m], + seed=args.seed, alpha=0.05 / args.family_size) for m in args.models}} + out.write_text(json.dumps(report, default=str, indent=2) + "\n") + for model, summary in report["models"].items(): + print(model, json.dumps(summary), flush=True) + + +if __name__ == "__main__": main() diff --git a/optimized_inference/tools/compare_kernels.py b/optimized_inference/tools/compare_kernels.py new file mode 100644 index 0000000..72c4351 --- /dev/null +++ b/optimized_inference/tools/compare_kernels.py @@ -0,0 +1,78 @@ +#!/usr/bin/env python3 +"""Balanced fresh-process hot-kernel throughput comparisons. + +These are hot-cache amortized call times, not whole-model or per-call latency. +The worker warms each kernel for at least 100 ms before measurement. +""" +import argparse +import fcntl +import json +import os +from pathlib import Path +import random +import subprocess +from compare_benchmarks import ROOT, sha, summarize, telemetry + +ITERATIONS={'depthwise2':50000,'depthwise3':40000,'pair40':20000,'pair48':20000, + 'batch40':30000,'row64':1000000,'gates1':1000000,'gates40':30000, + 'gates48':30000,'norm40':50000,'transpose':1000000} + +def main(): + p=argparse.ArgumentParser(description=__doc__) + p.add_argument('--baseline',type=Path,required=True) + p.add_argument('--candidate',type=Path,required=True) + p.add_argument('--models',type=int,nargs='+',choices=(2,8),default=[2,8]) + p.add_argument('--kernels',nargs='+',choices=tuple(ITERATIONS),required=True) + p.add_argument('--blocks',type=int,default=12) + p.add_argument('--cpu',type=int,required=True) + p.add_argument('--seed',type=int,default=20261027) + p.add_argument('--family-size',type=int,default=1) + p.add_argument('--output',type=Path,required=True) + args=p.parse_args() + if args.blocks<4 or args.blocks%2 or args.family_size<1: p.error('Use even blocks>=4 and family-size>=1') + if args.cpu not in os.sched_getaffinity(0): p.error('Invalid CPU affinity') + builds={'baseline':args.baseline.resolve(),'candidate':args.candidate.resolve()} + identities={v:{str(m):sha(d/f'kernel_benchmark{m}') for m in args.models} for v,d in builds.items()} + out=args.output.resolve();out.parent.mkdir(parents=True,exist_ok=True) + if out.exists() or out.with_suffix('.jsonl').exists(): raise FileExistsError(out) + lock=ROOT/'validation/local/comparison.lock';lock.parent.mkdir(parents=True,exist_ok=True) + rng=random.Random(args.seed);schedule=[] + for model in args.models: + for kernel in args.kernels: + orders=['ABBA','BAAB']*(args.blocks//2);rng.shuffle(orders) + schedule.extend((model,kernel,block,order) for block,order in enumerate(orders)) + rng.shuffle(schedule) + protocol={'arguments':vars(args),'schedule':schedule,'worker_sha256':identities, + 'metric':'hot-cache amortized call time; no per-call p99 or deadlines measured', + 'warmup':'At least 100 ms of the same kernel before timed calls', + 'analysis_sha256':sha(Path(__file__).with_name('compare_benchmarks.py'))} + out.with_suffix('.protocol.json').write_text(json.dumps(protocol,default=str,indent=2)+'\n') + records=[] + with lock.open('w') as guard,out.with_suffix('.jsonl').open('x') as journal: + fcntl.flock(guard,fcntl.LOCK_EX|fcntl.LOCK_NB) + for model,kernel,block,order in schedule: + checksum=None + for position,letter in enumerate(order): + variant='baseline' if letter=='A' else 'candidate' + command=['taskset','-c',str(args.cpu),str(builds[variant]/f'kernel_benchmark{model}'),kernel,str(ITERATIONS[kernel])] + before=telemetry(args.cpu) + env=os.environ.copy();env.pop('LD_PRELOAD',None) + row=json.loads(subprocess.check_output(command,text=True,env=env)) + if checksum is None: checksum=row['checksum'] + elif row['checksum']!=checksum: raise RuntimeError('Kernel result checksum mismatch') + row.update(variant=variant,model_id=model,block=block,order=order,position=position, + before=before,after=telemetry(args.cpu)) + records.append(row);journal.write(json.dumps(row)+'\n');journal.flush() + print(model,kernel,block+1,args.blocks,flush=True) + summaries={} + for model in args.models: + for kernel in args.kernels: + summary=summarize([r for r in records if r['model_id']==model and r['kernel']==kernel], + seed=args.seed,alpha=.05/args.family_size) + summary['family_adjusted_randomization_p']=min(1,summary['two_sided_sign_randomization_p']*args.family_size) + for variant in ('baseline','candidate'): + for field in ('over_10ms','late'): summary[variant][field]=None + summaries[f'{model}:{kernel}']=summary + out.write_text(json.dumps(protocol|{'summaries':summaries},default=str,indent=2)+'\n') + +if __name__=='__main__':main() diff --git a/optimized_inference/tools/compare_streams.py b/optimized_inference/tools/compare_streams.py new file mode 100644 index 0000000..8b77179 --- /dev/null +++ b/optimized_inference/tools/compare_streams.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python3 +"""Compare every frame/state using the independent local fixture manifest.""" +import argparse +from concurrent.futures import ThreadPoolExecutor, as_completed +import hashlib +import json +from pathlib import Path +import subprocess +import time +import os + +ROOT=Path(__file__).resolve().parents[1] +def sha(p): return hashlib.sha256(p.read_bytes()).hexdigest() + + +def verify(job): + runner,baseline,candidates,model,weights,case=job + result=json.loads(subprocess.check_output([runner,baseline,candidates[0],str(model),weights,case['path'],*candidates[1:]],text=True)) + if result['hops']!=case['hops'] or result['model']!=model or result['candidates']!=len(candidates): + raise ValueError('Worker coverage mismatch') + return result|{'id':case['id']} + + +def main(): + p=argparse.ArgumentParser(description=__doc__) + p.add_argument('--baseline',type=Path,required=True) + p.add_argument('--candidate',type=Path,nargs='+',required=True) + p.add_argument('--runner',type=Path,required=True) + p.add_argument('--manifest',type=Path,required=True) + p.add_argument('--models',type=int,nargs='+',default=[2,8]) + p.add_argument('--case-limit',type=int) + p.add_argument('--workers',type=int,default=1,help='Parallel correctness jobs; never overlap with timing runs') + p.add_argument('--cpus',type=int,nargs='+',help='Allowed CPUs for correctness workers') + p.add_argument('--output',type=Path,required=True) + args=p.parse_args(); start=time.monotonic() + if args.workers<1:p.error('--workers must be positive') + if args.output.exists() or args.output.with_suffix('.jsonl').exists():raise FileExistsError(args.output) + if args.cpus: + if not set(args.cpus)<=os.sched_getaffinity(0):p.error('CPUs outside allowed affinity') + os.sched_setaffinity(0,set(args.cpus)) + manifest=json.loads(args.manifest.read_text());cases=manifest['cases'] + if args.case_limit: cases=cases[:args.case_limit] + records=[];jobs=[] + for case in cases: + if sha(Path(case['path']))!=case['sha256']: raise ValueError('Input checksum mismatch') + for model in args.models: + weights=ROOT/'models'/f'dpdfnet{model}_48khz_hr'/'weights.f32' + jobs.append((str(args.runner.resolve()),str(args.baseline.resolve()),[str(x.resolve()) for x in args.candidate],model,str(weights),case)) + args.output.parent.mkdir(parents=True,exist_ok=True) + with ThreadPoolExecutor(max_workers=args.workers) as pool,args.output.with_suffix('.jsonl').open('x') as journal: + futures=[pool.submit(verify,job) for job in jobs] + try: + for future in as_completed(futures): + result=future.result();records.append(result) + journal.write(json.dumps(result)+'\n');journal.flush() + print(result['model'],result['id'],result['hops'],flush=True) + except BaseException: + for future in futures:future.cancel() + raise + records.sort(key=lambda x:(x['model'],x['id'])) + report={'schema_version':2,'baseline_sha256':sha(args.baseline),'candidates':[{'path':str(x.resolve()),'sha256':sha(x)} for x in args.candidate], + 'manifest_sha256':sha(args.manifest),'historical_suite':False,'results':records, + 'workers':args.workers,'correctness_not_performance':True, + 'elapsed_seconds':time.monotonic()-start,'all_passed':True} + args.output.parent.mkdir(parents=True,exist_ok=True) + args.output.write_text(json.dumps(report,indent=2)+'\n') + +if __name__=='__main__':main() diff --git a/optimized_inference/tools/make_cpu_fixtures.py b/optimized_inference/tools/make_cpu_fixtures.py new file mode 100644 index 0000000..bf7b4fb --- /dev/null +++ b/optimized_inference/tools/make_cpu_fixtures.py @@ -0,0 +1,108 @@ +#!/usr/bin/env python3 +"""Acquire small official 48 kHz EARS examples and make deterministic streams. + +Audio stays in the chosen local directory. This is an independent regression +suite, not a reconstruction of validation/reference_streams.json. Dependencies: +NumPy and ffmpeg/ffprobe. Research examples: https://sp-uhh.github.io/ears_dataset/ +""" +import argparse +import hashlib +import json +from pathlib import Path +import subprocess +import urllib.request +import numpy as np + +BASE = "https://www2.informatik.uni-hamburg.de/sp/audio/publications/interspeech2024-ears/files/" +SPEECH = ["p002_emo_adoration_sentences", "p008_emo_contentment_sentences", + "p010_emo_cuteness_sentences", "p011_emo_anger_sentences", "p012_rainbow_05_whisper", + "p014_rainbow_04_loud", "p016_rainbow_03_regular", "p017_rainbow_08_fast", + "p018_vegetative_eating", "p019_vegetative_yawning", "p020_freeform_speech_01"] + + +def sha(p): return hashlib.sha256(p.read_bytes()).hexdigest() + + +def spectra(audio): + count = (len(audio) + 479) // 480 + 6 + padded = np.pad(audio, (480, count * 480 - len(audio))) + n = np.arange(960, dtype=np.float64) + win = np.sin(.5 * np.pi * np.sin(np.pi * (n + .5) / 960) ** 2).astype(np.float32) + result = np.empty((count, 481, 2), dtype=" '+shlex.quote(str(worker))] + start=time.monotonic() + try: + with data.open('wb') as stdout,log.open('wb') as stderr: + result=subprocess.run(command,stdout=stdout,stderr=stderr,timeout=max(180,args.hops*.02)) + report={'command':command,'returncode':result.returncode,'elapsed_seconds':time.monotonic()-start, + 'worker_uid':os.getuid(),'worker_gid':os.getgid(),'hops':args.hops,'warmup_hops':120, + 'counter_window':'FIFO enable after warmup; disable after timed hops', + 'library_sha256':sha(library),'benchmark_sha256':sha(executable), + 'spectra_sha256':sha(args.spectra),'weights_sha256':sha(weights), + 'perf_sha256':sha(args.perf),'raw_data_sha256':sha(data),'log_sha256':sha(log)} + out.with_suffix('.meta.json').write_text(json.dumps(report,indent=2)+'\n') + if result.returncode: raise RuntimeError(log.read_text(errors='replace')) + print(json.dumps(report,indent=2)) + finally: + control.unlink(missing_ok=True);ack.unlink(missing_ok=True) + +if __name__=='__main__':main() From 97ae61e9a09f594b9818eb01f73cd3c4b97bae76 Mon Sep 17 00:00:00 2001 From: Varyag Nord <124573691+varyagnord@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:38:12 +0300 Subject: [PATCH 2/5] Optimize model 2 graph and depthwise loads Replace stride-three gathers with bounded loads/permutations and enable the accepted AVX2/FMA graph code generation with no-math-errno. --- optimized_inference/CMakeLists.txt | 4 +- optimized_inference/src/common/avx2.c | 41 +++++++++++++++++++ .../dpdfnet2_48khz_hr/generated_model.c | 1 + 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/optimized_inference/CMakeLists.txt b/optimized_inference/CMakeLists.txt index 95a25fd..f0b85ff 100644 --- a/optimized_inference/CMakeLists.txt +++ b/optimized_inference/CMakeLists.txt @@ -83,7 +83,9 @@ foreach(size IN ITEMS 2 8) ${model_dir}/qaffine4pair64_fused_vnni.S) endif() endif() - + if(size EQUAL 2) + target_compile_options(backend${size} PRIVATE $<$:-fno-math-errno>) + endif() if(DPDF_ALIGN_BRANCHES) target_compile_options(backend${size} PRIVATE -Wa,-mbranches-within-32B-boundaries) endif() diff --git a/optimized_inference/src/common/avx2.c b/optimized_inference/src/common/avx2.c index 187ec31..3c84bf4 100644 --- a/optimized_inference/src/common/avx2.c +++ b/optimized_inference/src/common/avx2.c @@ -251,12 +251,53 @@ int dpdf_conv_row_avx2(const float *x,const float *w,const float *bias,float *y, * downsamplers. The original sw!=1 path uses separate binary32 multiply/add, * so these vectors deliberately do not fuse. Padding and odd-width tails * use the original ordered scalar terms; vector loads stay inside input. */ +#if DPDF_MODEL_SIZE == 2 +/* A stride-three vector touches p[0] through p[21]. The final load starts + * at p+14, so its last byte is exactly the last gathered element, including + * near the input boundary. Keep this specialization separate so stride-two + * register allocation is unaffected by the three permutation constants. */ +static __attribute__((noinline)) void depthwise_stride3(const float *x,const float *w, + const float *bias,float *y,int ci,int wi,int co,int wo) { + const __m256i index0=_mm256_setr_epi32(0,3,6,0,0,0,0,0); + const __m256i index1=_mm256_setr_epi32(0,0,0,1,4,7,0,0); + const __m256i index2=_mm256_setr_epi32(0,0,0,0,0,0,4,7); + int last=(wi-2)/3+1; + if(last>wo)last=wo; + for(int oc=0;oc=1 && ow+7=0&&ixwo) last=wo; diff --git a/optimized_inference/src/models/dpdfnet2_48khz_hr/generated_model.c b/optimized_inference/src/models/dpdfnet2_48khz_hr/generated_model.c index b4ed26f..dc5a8d1 100644 --- a/optimized_inference/src/models/dpdfnet2_48khz_hr/generated_model.c +++ b/optimized_inference/src/models/dpdfnet2_48khz_hr/generated_model.c @@ -324,6 +324,7 @@ for (int i=0;i<219;++i) bytes+=dpdf_dense_bytes(m->dense[i]); for (int i=0;i<21;++i) bytes+=dpdf_convop_bytes(m->conv[i]); return bytes; } +__attribute__((target("avx2,fma"))) int dpdf_model_process(dpdf_model *m,const float *spec,const float *state_in,float *spec_out,float *state_out) { if (!m || !spec || !state_in || !spec_out || !state_out) return -1; /* 0: Mul /Mul */ From d54028ded34521693571f860ff378dddf668d85f Mon Sep 17 00:00:00 2001 From: Varyag Nord <124573691+varyagnord@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:38:13 +0300 Subject: [PATCH 3/5] Apply independently selected model 8 optimizations Reuse fused AVX2 batch calculations, write recurrent state directly and align only model 8 branches. Preserve the accepted VNNI object code and runtime dispatch; remove unused production experiment switches. --- optimized_inference/CMakeLists.txt | 26 +++--- optimized_inference/src/common/avx2.c | 4 - .../src/common/int8_kernels.inc | 30 ++++--- .../dpdfnet8_48khz_hr/generated_model.c | 79 ++++++++----------- optimized_inference/src/private/namespace8.h | 1 + 5 files changed, 65 insertions(+), 75 deletions(-) diff --git a/optimized_inference/CMakeLists.txt b/optimized_inference/CMakeLists.txt index f0b85ff..1c88c8a 100644 --- a/optimized_inference/CMakeLists.txt +++ b/optimized_inference/CMakeLists.txt @@ -15,7 +15,6 @@ endif() option(BUILD_SHARED_LIBS "Build shared runtime" ON) option(DPDF_SANITIZE "Enable address and undefined-behavior sanitizers" OFF) option(DPDF_BUILD_KERNEL_BENCHMARKS "Build private hot-kernel measurement tools" OFF) -option(DPDF_ALIGN_BRANCHES "Align branches for Skylake/Kaby Lake JCC microcode" OFF) set(DPDF_PGO_MODE "OFF" CACHE STRING "Model-8 profile mode: OFF, GENERATE, USE") set_property(CACHE DPDF_PGO_MODE PROPERTY STRINGS OFF GENERATE USE) set(DPDF_PROFILE_DIR "${CMAKE_BINARY_DIR}/profiles" CACHE PATH "GCC profile directory") @@ -83,10 +82,13 @@ foreach(size IN ITEMS 2 8) ${model_dir}/qaffine4pair64_fused_vnni.S) endif() endif() - if(size EQUAL 2) - target_compile_options(backend${size} PRIVATE $<$:-fno-math-errno>) + if(size EQUAL 8) + target_sources(backend8 PRIVATE src/models/dpdfnet2_48khz_hr/qaffine4pair64_fused_avx2.S) + target_compile_definitions(backend8 PRIVATE DPDF_QBATCH_FUSED64_AVX2) endif() - if(DPDF_ALIGN_BRANCHES) + target_compile_options(backend${size} PRIVATE $<$:-fno-math-errno>) + # Only model 8 had a confirmed incremental branch-alignment benefit. + if(size EQUAL 8) target_compile_options(backend${size} PRIVATE -Wa,-mbranches-within-32B-boundaries) endif() dpdf_compile(backend${size}) @@ -97,15 +99,13 @@ set_source_files_properties(src/common/fp16.c PROPERTIES COMPILE_OPTIONS "-mavx2 # Preserve the accepted VNNI machine code when aligning the AVX2/common backend. # GNU as source options follow target options; boundary=0 cancels only the # extra branch-boundary padding, leaving the existing assembly alignment. -if(DPDF_ALIGN_BRANCHES OR DPDF_ALIGN_BRANCHES_MODEL2 OR DPDF_ALIGN_BRANCHES_MODEL8) - set_property(SOURCE src/common/int8_vnni.c - src/common/qdot64_fixed_vnni.S src/common/qdot4pair_fixed_vnni.S - src/models/dpdfnet2_48khz_hr/qaffine64_fused_vnni.S - src/models/dpdfnet2_48khz_hr/qaffine256_fused_vnni.S - src/models/dpdfnet2_48khz_hr/qaffine4pair64_fused_vnni.S - src/models/dpdfnet8_48khz_hr/qaffine64_fused_vnni.S - APPEND PROPERTY COMPILE_OPTIONS -Wa,-malign-branch-boundary=0) -endif() +set_property(SOURCE src/common/int8_vnni.c + src/common/qdot64_fixed_vnni.S src/common/qdot4pair_fixed_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine64_fused_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine256_fused_vnni.S + src/models/dpdfnet2_48khz_hr/qaffine4pair64_fused_vnni.S + src/models/dpdfnet8_48khz_hr/qaffine64_fused_vnni.S + APPEND PROPERTY COMPILE_OPTIONS -Wa,-malign-branch-boundary=0) add_library(dpdfnet src/runtime.c $ $) add_library(DPDFNet::dpdfnet ALIAS dpdfnet) diff --git a/optimized_inference/src/common/avx2.c b/optimized_inference/src/common/avx2.c index 3c84bf4..7db1cd8 100644 --- a/optimized_inference/src/common/avx2.c +++ b/optimized_inference/src/common/avx2.c @@ -251,7 +251,6 @@ int dpdf_conv_row_avx2(const float *x,const float *w,const float *bias,float *y, * downsamplers. The original sw!=1 path uses separate binary32 multiply/add, * so these vectors deliberately do not fuse. Padding and odd-width tails * use the original ordered scalar terms; vector loads stay inside input. */ -#if DPDF_MODEL_SIZE == 2 /* A stride-three vector touches p[0] through p[21]. The final load starts * at p+14, so its last byte is exactly the last gathered element, including * near the input boundary. Keep this specialization separate so stride-two @@ -288,16 +287,13 @@ static __attribute__((noinline)) void depthwise_stride3(const float *x,const flo } } -#endif int dpdf_depthwise_stride_avx2(const float *x,const float *w,const float *bias,float *y, int ci,int hi,int wi,int co,int ho,int wo,int kh,int kw, int sh,int sw,int ph,int pw,int group) { if (ci<=0 || group<=0 || hi!=1 || ho!=1 || kh!=1 || kw!=3 || sh!=1 || ph!=0 || pw!=1 || group!=ci || co%group || (sw!=2 && sw!=3) || wi<8 || wo!=(wi+2*pw-kw)/sw+1) return 0; -#if DPDF_MODEL_SIZE == 2 if(sw==3){depthwise_stride3(x,w,bias,y,ci,wi,co,wo);return 1;} -#endif const __m256i offsets=_mm256_setr_epi32(0,sw,2*sw,3*sw,4*sw,5*sw,6*sw,7*sw); int last=(wi+pw-kw)/sw+1; if (last>wo) last=wo; diff --git a/optimized_inference/src/common/int8_kernels.inc b/optimized_inference/src/common/int8_kernels.inc index 3801149..8fefbb2 100644 --- a/optimized_inference/src/common/int8_kernels.inc +++ b/optimized_inference/src/common/int8_kernels.inc @@ -10,6 +10,10 @@ _mm256_maddubs_epi16(a,w),_mm256_set1_epi16(1))) #endif +#if defined(DPDF_QPAIR_FUSED64) || (defined(DPDF_QBATCH_FUSED64_AVX2) && !defined(DPDF_INT8_VNNI)) +#define DPDF_USE_QPAIR_FUSED64 +#endif + static void quantize(const float *x,int8_t *out,int k,float *scale,int *zp) { __m256 lo=_mm256_setzero_ps(),hi=lo; for (int j=0;jk,n=q->n; -#if DPDF_MODEL_SIZE == 2 +#if DPDF_MODEL_SIZE == 2 || !defined(DPDF_INT8_VNNI) if (k==64) { for (int r=0;rpacked+c*k,q->packed+(c+8)*k,k,sums); @@ -311,7 +316,7 @@ static void qaffine_batch(const dpdf_qmatrix *q,const float *x,const float *bias /* Callers split larger batches into at most 48 rows. */ int8_t activation[48*512]; float scales[48]; int zp[48]; const int k=q->k,n=q->n; -#if DPDF_MODEL_SIZE == 2 +#if DPDF_MODEL_SIZE == 2 || !defined(DPDF_INT8_VNNI) if (k==64) { for (int r=0;rk,n=q0->n; -#if DPDF_MODEL_SIZE == 2 +#if DPDF_MODEL_SIZE == 2 || !defined(DPDF_INT8_VNNI) if (k==64) { for (int r=0;rpacked+c*k,q1->packed+c*k,k,sums); diff --git a/optimized_inference/src/models/dpdfnet8_48khz_hr/generated_model.c b/optimized_inference/src/models/dpdfnet8_48khz_hr/generated_model.c index db4864d..6925281 100644 --- a/optimized_inference/src/models/dpdfnet8_48khz_hr/generated_model.c +++ b/optimized_inference/src/models/dpdfnet8_48khz_hr/generated_model.c @@ -336,6 +336,10 @@ for (int i=0;i<219;++i) bytes+=dpdf_dense_bytes(m->dense[i]); for (int i=0;i<21;++i) bytes+=dpdf_convop_bytes(m->conv[i]); return bytes; } +/* Each DPRNN state chunk is consumed by its own block before being replaced. + * Write its new state directly; final packing handles the other chunks only + * after all old-state reads. This retains supported in-place state updates. */ +__attribute__((target("avx2,fma"))) int dpdf_model_process(dpdf_model *m,const float *spec,const float *state_in,float *spec_out,float *state_out) { if (!m || !spec || !state_in || !spec_out || !state_out) return -1; /* 0: Mul /Mul */ @@ -446,28 +450,28 @@ m->transpose((m->arena+17696),(m->arena+76912),40,64); for (int i=0;i<2560;++i) (m->arena+74352)[i]=((m->arena+76912)[i]>0?(m->arena+76912)[i]:0.0f); /* 57: Slice /model/enc/dprnn_erb/blocks.0/inter_gru/Slice */ /* 58: DpdfDprnn /model/enc/dprnn_erb/blocks.0/Native */ -if (dpdf_process_layout(m->blocks[0],(m->arena+74352),(state_in+2020),(m->arena+76912),(m->arena+15136),2)) return -1; +if (dpdf_process_layout(m->blocks[0],(m->arena+74352),(state_in+2020),(m->arena+76912),(state_out+2020),2)) return -1; /* 59: Slice /model/enc/dprnn_erb/blocks.1/inter_gru/Slice */ /* 60: DpdfDprnn /model/enc/dprnn_erb/blocks.1/Native */ -if (dpdf_process_layout(m->blocks[1],(m->arena+76912),(state_in+4580),(m->arena+17696),(m->arena+20256),3)) return -1; +if (dpdf_process_layout(m->blocks[1],(m->arena+76912),(state_in+4580),(m->arena+17696),(state_out+4580),3)) return -1; /* 61: Slice /model/enc/dprnn_erb/blocks.2/inter_gru/Slice */ /* 62: DpdfDprnn /model/enc/dprnn_erb/blocks.2/Native */ -if (dpdf_process_layout(m->blocks[2],(m->arena+17696),(state_in+7140),(m->arena+76912),(m->arena+22816),3)) return -1; +if (dpdf_process_layout(m->blocks[2],(m->arena+17696),(state_in+7140),(m->arena+76912),(state_out+7140),3)) return -1; /* 63: Slice /model/enc/dprnn_erb/blocks.3/inter_gru/Slice */ /* 64: DpdfDprnn /model/enc/dprnn_erb/blocks.3/Native */ -if (dpdf_process_layout(m->blocks[3],(m->arena+76912),(state_in+9700),(m->arena+17696),(m->arena+25376),3)) return -1; +if (dpdf_process_layout(m->blocks[3],(m->arena+76912),(state_in+9700),(m->arena+17696),(state_out+9700),3)) return -1; /* 65: Slice /model/enc/dprnn_erb/blocks.4/inter_gru/Slice */ /* 66: DpdfDprnn /model/enc/dprnn_erb/blocks.4/Native */ -if (dpdf_process_layout(m->blocks[4],(m->arena+17696),(state_in+12260),(m->arena+76912),(m->arena+27936),3)) return -1; +if (dpdf_process_layout(m->blocks[4],(m->arena+17696),(state_in+12260),(m->arena+76912),(state_out+12260),3)) return -1; /* 67: Slice /model/enc/dprnn_erb/blocks.5/inter_gru/Slice */ /* 68: DpdfDprnn /model/enc/dprnn_erb/blocks.5/Native */ -if (dpdf_process_layout(m->blocks[5],(m->arena+76912),(state_in+14820),(m->arena+17696),(m->arena+30496),3)) return -1; +if (dpdf_process_layout(m->blocks[5],(m->arena+76912),(state_in+14820),(m->arena+17696),(state_out+14820),3)) return -1; /* 69: Slice /model/enc/dprnn_erb/blocks.6/inter_gru/Slice */ /* 70: DpdfDprnn /model/enc/dprnn_erb/blocks.6/Native */ -if (dpdf_process_layout(m->blocks[6],(m->arena+17696),(state_in+17380),(m->arena+76912),(m->arena+33056),3)) return -1; +if (dpdf_process_layout(m->blocks[6],(m->arena+17696),(state_in+17380),(m->arena+76912),(state_out+17380),3)) return -1; /* 71: Slice /model/enc/dprnn_erb/blocks.7/inter_gru/Slice */ /* 72: DpdfDprnn /model/enc/dprnn_erb/blocks.7/Native */ -if (dpdf_process_layout(m->blocks[7],(m->arena+76912),(state_in+19940),(m->arena+17696),(m->arena+35616),1)) return -1; +if (dpdf_process_layout(m->blocks[7],(m->arena+76912),(state_in+19940),(m->arena+17696),(state_out+19940),1)) return -1; /* 73: Transpose /model/enc/df_conv0_buffer/Transpose */ for (int t2=0;t2<2;++t2) for (int t3=0;t3<96;++t3) (m->arena+38176)[t2*96+t3*1]=(m->arena+1568)[t2*1+t3*2]; /* 74: Slice /model/enc/df_conv0_buffer/Slice */ @@ -505,28 +509,28 @@ m->transpose((m->arena+92272),(m->arena+79984),48,64); for (int i=0;i<3072;++i) (m->arena+76912)[i]=((m->arena+79984)[i]>0?(m->arena+79984)[i]:0.0f); /* 91: Slice /model/enc/dprnn_df/blocks.0/inter_gru/Slice */ /* 92: DpdfDprnn /model/enc/dprnn_df/blocks.0/Native */ -if (dpdf_process_layout(m->blocks[8],(m->arena+76912),(state_in+23076),(m->arena+79984),(m->arena+89200),2)) return -1; +if (dpdf_process_layout(m->blocks[8],(m->arena+76912),(state_in+23076),(m->arena+79984),(state_out+23076),2)) return -1; /* 93: Slice /model/enc/dprnn_df/blocks.1/inter_gru/Slice */ /* 94: DpdfDprnn /model/enc/dprnn_df/blocks.1/Native */ -if (dpdf_process_layout(m->blocks[9],(m->arena+79984),(state_in+26148),(m->arena+76912),(m->arena+92272),3)) return -1; +if (dpdf_process_layout(m->blocks[9],(m->arena+79984),(state_in+26148),(m->arena+76912),(state_out+26148),3)) return -1; /* 95: Slice /model/enc/dprnn_df/blocks.2/inter_gru/Slice */ /* 96: DpdfDprnn /model/enc/dprnn_df/blocks.2/Native */ -if (dpdf_process_layout(m->blocks[10],(m->arena+76912),(state_in+29220),(m->arena+79984),(m->arena+95344),3)) return -1; +if (dpdf_process_layout(m->blocks[10],(m->arena+76912),(state_in+29220),(m->arena+79984),(state_out+29220),3)) return -1; /* 97: Slice /model/enc/dprnn_df/blocks.3/inter_gru/Slice */ /* 98: DpdfDprnn /model/enc/dprnn_df/blocks.3/Native */ -if (dpdf_process_layout(m->blocks[11],(m->arena+79984),(state_in+32292),(m->arena+76912),(m->arena+98416),3)) return -1; +if (dpdf_process_layout(m->blocks[11],(m->arena+79984),(state_in+32292),(m->arena+76912),(state_out+32292),3)) return -1; /* 99: Slice /model/enc/dprnn_df/blocks.4/inter_gru/Slice */ /* 100: DpdfDprnn /model/enc/dprnn_df/blocks.4/Native */ -if (dpdf_process_layout(m->blocks[12],(m->arena+76912),(state_in+35364),(m->arena+79984),(m->arena+104048),3)) return -1; +if (dpdf_process_layout(m->blocks[12],(m->arena+76912),(state_in+35364),(m->arena+79984),(state_out+35364),3)) return -1; /* 101: Slice /model/enc/dprnn_df/blocks.5/inter_gru/Slice */ /* 102: DpdfDprnn /model/enc/dprnn_df/blocks.5/Native */ -if (dpdf_process_layout(m->blocks[13],(m->arena+79984),(state_in+38436),(m->arena+76912),(m->arena+107120),3)) return -1; +if (dpdf_process_layout(m->blocks[13],(m->arena+79984),(state_in+38436),(m->arena+76912),(state_out+38436),3)) return -1; /* 103: Slice /model/enc/dprnn_df/blocks.6/inter_gru/Slice */ /* 104: DpdfDprnn /model/enc/dprnn_df/blocks.6/Native */ -if (dpdf_process_layout(m->blocks[14],(m->arena+76912),(state_in+41508),(m->arena+79984),(m->arena+110192),3)) return -1; +if (dpdf_process_layout(m->blocks[14],(m->arena+76912),(state_in+41508),(m->arena+79984),(state_out+41508),3)) return -1; /* 105: Slice /model/enc/dprnn_df/blocks.7/inter_gru/Slice */ /* 106: DpdfDprnn /model/enc/dprnn_df/blocks.7/Native */ -if (dpdf_process_layout(m->blocks[15],(m->arena+79984),(state_in+44580),(m->arena+76912),(m->arena+113264),1)) return -1; +if (dpdf_process_layout(m->blocks[15],(m->arena+79984),(state_in+44580),(m->arena+76912),(state_out+44580),1)) return -1; /* 107: Transpose /model/enc/Transpose */ for (int t2=0;t2<48;++t2) for (int t3=0;t3<64;++t3) (m->arena+79984)[t2*64+t3*1]=(m->arena+76912)[t2*1+t3*48]; /* 108: Flatten /model/enc/Flatten */ @@ -886,38 +890,21 @@ for (int b=0;b<1;++b) memcpy((m->arena+0)+b*962+0,(m->arena+2720)+b*192,192*size for (int b=0;b<1;++b) memcpy((m->arena+0)+b*962+192,((m->arena+73968)+2116)+b*770,770*sizeof(float)); /* 374: Squeeze /model/Squeeze */ /* 375: Concat /model/Concat */ -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+0,(m->arena+2944)+b*481,481*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+481,(m->arena+1472)+b*96,96*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+577,(m->arena+3440)+b*1443,1443*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+2020,(m->arena+15136)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+4580,(m->arena+20256)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+7140,(m->arena+22816)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+9700,(m->arena+25376)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+12260,(m->arena+27936)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+14820,(m->arena+30496)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+17380,(m->arena+33056)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+19940,(m->arena+35616)+b*2560,2560*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+22500,(m->arena+1568)+b*576,576*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+23076,(m->arena+89200)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+26148,(m->arena+92272)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+29220,(m->arena+95344)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+32292,(m->arena+98416)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+35364,(m->arena+104048)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+38436,(m->arena+107120)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+41508,(m->arena+110192)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+44580,(m->arena+113264)+b*3072,3072*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+47652,(m->arena+976)+b*256,256*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+47908,(m->arena+38176)+b*256,256*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+48164,(m->arena+20000)+b*256,256*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+48420,(m->arena+17696)+b*256,256*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+48676,(m->arena+19408)+b*256,256*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+48932,(m->arena+38432)+b*30720,30720*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+79652,(m->arena+5856)+b*2886,2886*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+82538,(m->arena+8752)+b*2880,2880*sizeof(float)); -for (int b=0;b<1;++b) memcpy((m->arena+116336)+b*90228+85418,(m->arena+69152)+b*4810,4810*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+0,(m->arena+2944)+b*481,481*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+481,(m->arena+1472)+b*96,96*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+577,(m->arena+3440)+b*1443,1443*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+22500,(m->arena+1568)+b*576,576*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+47652,(m->arena+976)+b*256,256*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+47908,(m->arena+38176)+b*256,256*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+48164,(m->arena+20000)+b*256,256*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+48420,(m->arena+17696)+b*256,256*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+48676,(m->arena+19408)+b*256,256*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+48932,(m->arena+38432)+b*30720,30720*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+79652,(m->arena+5856)+b*2886,2886*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+82538,(m->arena+8752)+b*2880,2880*sizeof(float)); +for (int b=0;b<1;++b) memcpy(state_out+b*90228+85418,(m->arena+69152)+b*4810,4810*sizeof(float)); /* 376: Mul /Mul_1 */ for (int i=0;i<962;++i) (m->arena+206576)[i]=(m->arena+0)[i]*(m->weights+8)[0]; memcpy(spec_out,(m->arena+206576),962*sizeof(float)); -memcpy(state_out,(m->arena+116336),90228*sizeof(float)); return 0; } diff --git a/optimized_inference/src/private/namespace8.h b/optimized_inference/src/private/namespace8.h index 7acc4b3..31d9097 100644 --- a/optimized_inference/src/private/namespace8.h +++ b/optimized_inference/src/private/namespace8.h @@ -55,6 +55,7 @@ #define dpdf_process_layout dpdfnet8_private_process_layout #define dpdf_qaffine dpdfnet8_private_qaffine #define dpdf_qaffine64_fused_avx2 dpdfnet8_private_qaffine64_fused_avx2 +#define dpdf_qaffine4pair64_fused_avx2 dpdfnet8_private_qaffine4pair64_fused_avx2 #define dpdf_qaffine_pair dpdfnet8_private_qaffine_pair #define dpdf_qbytes dpdfnet8_private_qbytes #define dpdf_qcreate dpdfnet8_private_qcreate From 2f5ec46d5844e164beda973c968c03a4884a7aa9 Mon Sep 17 00:00:00 2001 From: Varyag Nord <124573691+varyagnord@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:38:13 +0300 Subject: [PATCH 4/5] Document i7-7700T results and paired block evidence Record independent per-model and factor confirmation, power-policy follow-up, exact correctness checks and compiler coverage. Publish all paired block observations and retain explicit VNNI/historical-corpus limitations. --- optimized_inference/README.md | 16 +- optimized_inference/docs/BUILD.md | 38 +- optimized_inference/docs/PERFORMANCE.md | 142 +- optimized_inference/tools/build.py | 2 +- .../validation/i7_7700t_blocks.json | 22 + .../validation/i7_7700t_final.json | 1359 +++++++++++++++++ 6 files changed, 1554 insertions(+), 25 deletions(-) create mode 100644 optimized_inference/validation/i7_7700t_blocks.json create mode 100644 optimized_inference/validation/i7_7700t_final.json diff --git a/optimized_inference/README.md b/optimized_inference/README.md index 2500b78..945020d 100644 --- a/optimized_inference/README.md +++ b/optimized_inference/README.md @@ -57,7 +57,16 @@ build/dpdfnet_benchmark 8 models/dpdfnet8_48khz_hr/weights.f32 1000 paced ## Results -The published AVX2 reference measurements below precede runtime dispatch. +The current defaults were selected separately on an i7-7700T. Independent +confirmation in `performance` mode reduced neural-call time by **4.72% for +model 2** and **5.18% for model 8** against the original runtime built with the +same compiler. Every retained factor also had a confirmed conditional benefit. +The original-power follow-up confirmed model 2's gain; model 8 remained +inconclusive there. See [the per-model results](docs/PERFORMANCE.md#i7-7700t-final-per-model-selection-2026-10-27) +and [the exact result record](validation/i7_7700t_final.json). + +The published AVX2 reference measurements below are historical: they precede +both runtime dispatch and the i7-7700T selection. Dispatch adds a small amount of context bookkeeping (see [build instructions](docs/BUILD.md#optional-avx-vnni-kernels)); AVX-VNNI performance depends on the target CPU. @@ -77,7 +86,10 @@ Quality means on the same six 48 kHz EARS/WHAM mixtures: | `dpdfnet2_48khz_hr` | 2.44130 | 0.935874 | 16.0841 | 3.86312 | 4.61457 | 3.28124 | | `dpdfnet8_48khz_hr` | 2.52099 | 0.940449 | 16.6446 | 3.84506 | 4.63650 | 3.35663 | -Spectrum, state and PCM regression passes on 65 files per model. +Historical package spectrum/state/PCM regression covered 65 original files per +model. Current defaults pass every-hop spectrum/state comparisons on 65 +independent EARS/stress streams per model; the historical corpus was unavailable +and no new perceptual scores were computed. [Measurement methods and quality details](docs/PERFORMANCE.md). ## Project layout diff --git a/optimized_inference/docs/BUILD.md b/optimized_inference/docs/BUILD.md index f36ca51..51f0cc7 100644 --- a/optimized_inference/docs/BUILD.md +++ b/optimized_inference/docs/BUILD.md @@ -1,7 +1,10 @@ # Building and installing -The validated toolchain is GCC 12.2 and CMake 3.25 on Linux x86-64. GCC, -CMake 3.18+, and an AVX2/FMA CPU are required. Build and run inside Linux or WSL2; +The historical package was validated with GCC 12.2 and CMake 3.25. +The i7-7700T per-model selection is additionally validated with GCC 14.2.0 +on Linux x86-64; a fresh PGO build and all available release contracts also +passed with GCC 12.4.0. Performance figures remain specific to GCC 14.2.0. +GCC, CMake 3.18+, and an AVX2/FMA CPU are required. Build and run inside Linux or WSL2; the hand-written assembly uses the Linux System V ABI. ## Recommended release build @@ -79,21 +82,28 @@ Direct static consumers must link `libm`. Exported CMake targets carry that dependency automatically. The shared library exports only the seven public functions in `dpdfnet.h`; graph and kernel symbols are private. -### Optional branch alignment experiment +### Automated PGO linkage checks -`DPDF_ALIGN_BRANCHES` defaults to `OFF`. Enabling it passes GNU assembler's -`-mbranches-within-32B-boundaries` option to the private model backends, including -assembly kernels. This can help CPUs affected by the Skylake/Kaby Lake JCC -microcode mitigation, but changes code layout and is not a portable speedup. -Measure it against the default build on the intended CPU and workload. It adds -no instruction-set requirement and needs an assembler supporting that option. +Native CI covers shared PGO, static PGO, plain static, AVX2-only and +ASan/UBSan builds. Both PGO jobs first build and run all contracts in +`DPDF_PGO_MODE=GENERATE`, including linking the optional kernel benchmarks. +This checks profiling-runtime linkage for direct backend-object tests and +static-library consumers. The final PGO release uses a separate build and +fresh training profiles, so test-generated profiles are not used for release. +CI retains CMake configuration and CTest logs for diagnosis. -```sh -python3 tools/build.py --build-dir build-aligned \ - --cmake-arg=-DDPDF_ALIGN_BRANCHES=ON -``` +### Per-model branch alignment + +The accepted configuration aligns branches only for model 8. Model 2's +unconfirmed alignment path and the experimental alignment switches have +been removed. See the [result record](../validation/i7_7700t_final.json). + +Model 8 uses GNU assembler's `-mbranches-within-32B-boundaries`; VNNI +sources use `-malign-branch-boundary=0` to preserve their accepted object code. +The assembler must support both options. This changes layout without adding +an instruction-set requirement. The selected benefit was measured on the +i7-7700T; it is not a claim of the same gain on every CPU. -Use a separate build directory and fresh PGO training for each configuration. For private microbenchmarks, additionally pass `--cmake-arg=-DDPDF_BUILD_KERNEL_BENCHMARKS=ON`; these executables are not part of the installed runtime. diff --git a/optimized_inference/docs/PERFORMANCE.md b/optimized_inference/docs/PERFORMANCE.md index 245b913..33ac22a 100644 --- a/optimized_inference/docs/PERFORMANCE.md +++ b/optimized_inference/docs/PERFORMANCE.md @@ -1,10 +1,132 @@ # Performance, memory and output quality -These measurements describe the final combined library built from this folder, -with the recommended model-8 compiler profile. They are host-specific -observations, not portable latency or worst-case execution-time guarantees. - -## Latency and memory +The current defaults were selected separately for models 2 and 8 on an +Intel Core i7-7700T. The older i7-8700 latency/quality records below describe +the historical package baseline; they were not remeasured for these defaults. + +## i7-7700T final per-model selection (2026-10-27) + +G replaces depthwise gather with bounded loads/permutations; V combines an +AVX2/FMA target on the generated graph with `-fno-math-errno`; B combines +model-8 AVX2 batch fusion with `quantize64`; S writes model-8 recurrent state +directly; J aligns branches. V and B are predefined groups, not claims about +each internal edit independently. Batch rows are internal frequency rows of +one frame; these gains do not require multiple microphones. + +| Model | Selected factors | Baseline mean ± run SD, ms | Final mean ± run SD, ms | Time reduction | Adjusted interval | +| --- | --- | ---: | ---: | ---: | ---: | +| 2 | `GV` | 0.9536 ± 0.0108 | 0.9086 ± 0.0095 | +4.723% | [+4.065, +5.377]% | +| 8 | `GVBSJ` | 2.0015 ± 0.0179 | 1.8978 ± 0.0061 | +5.177% | [+4.799, +5.554]% | + +These are independent confirmation measurements with 36 mirrored blocks, +two fresh processes per variant per block (72 runs), 120 warmup hops and +500 timed hops per process, paced every 10 ms. Both logical CPUs of physical +core 2 (CPU 2 and HT sibling CPU 6) were reserved through a cgroup v2 isolated +partition; only CPU 2 ran workers. Ordinary processes, including new ones, +were limited to CPU 0,1,3,4,5,7. IRQ/unbound work/watchdog placement was steered; +residual bound kernel work and package/firmware effects remain. Workers ran +without root capabilities. All settings were restored after each phase. + +Final confirmation used performance governor/EPP with the original frequency +bounds. Discovery used a 3.6 GHz request range after the first identical-binary +control produced a marginal false gain and halted before any optimization +outcomes were collected. That pilot is retained. Both phases included A/A +controls, fixed counts and all slow observations. The statistical unit is a +complete mirrored block, never an individual hop. The t interval for mean +paired block log ratios, conditional randomization test and block-bootstrap +sensitivity retain the earlier validated statistical functions. Bonferroni +families were 32 for discovery and 40 for confirmation/guard comparisons. + +Each retained factor was also removed from the final combination for a direct +comparison. These are conditional contributions in that combination; the +percentages below must not be added. + +| Model | Factor | Time reduction from adding factor | Adjusted interval | Individually confirmed | +| --- | --- | ---: | ---: | --- | +| 2 | G | +2.211% | [+1.464, +2.952]% | yes | +| 2 | V | +2.271% | [+1.720, +2.819]% | yes | +| 8 | G | +1.179% | [+1.012, +1.346]% | yes | +| 8 | V | +1.563% | [+1.111, +2.012]% | yes | +| 8 | B | +1.114% | [+0.962, +1.266]% | yes | +| 8 | S | +1.132% | [+0.922, +1.341]% | yes | +| 8 | J | +0.883% | [+0.698, +1.068]% | yes | + +| Model | Median run p99, baseline → final, ms | Observed maximum, baseline → final, ms | Calls >10ms | Late completions | +| --- | ---: | ---: | ---: | ---: | +| 2 | 1.1384 → 1.0971 | 1.5815 → 1.5217 | 0 → 0 | 0 → 0 | +| 8 | 2.2385 → 2.1421 | 3.8238 → 2.4383 | 0 → 0 | 0 → 0 | + +A separate guard used the original `powersave` governor and +`balance_performance` EPP, with 12 blocks of 300 hops. Neither model's gain +passed both adjusted-interval and randomization-test criteria in that mode. +The model-8 point estimate was negative with a wide interval spanning zero. +The confirmed gains above apply to the measured performance policy; they are +not established for every power policy. + +| Model | Original-power time reduction | Adjusted interval | Adjusted p | Confirmed | +| --- | ---: | ---: | ---: | --- | +| 2 | +6.700% | [+1.148, +11.940]% | 0.101 | no | +| 8 | -1.542% | [-8.246, +4.747]% | 1.000 | no | + +Final review identified a discreteness limitation in the original 12-block +guard: its conditional permutation test could not reach adjusted p<0.05 with +family size 40 (even an unequal assignment has at most 792 permutations, +40/792>0.05; a balanced assignment's symmetric extremes give 80/924). +The original guard is retained. After that review, a separate independent +36-block original-power follow-up was fixed before its collection, using the +same binary, 300 timed hops per process and new randomization. It is a +post-plan follow-up, not part of the initial plan. Across main confirmation, +original guard and this follow-up, 21 contrasts use the unchanged family-40 +correction; the unused simplification rounds are cancelled. No further +repeat-until-significant measurements are planned. + +| Model | Follow-up original-power time reduction | Adjusted interval | Adjusted p | Confirmed | +| --- | ---: | ---: | ---: | --- | +| 2 | +5.142% | [+2.556, +7.658]% | 0.0020 | yes | +| 8 | +1.508% | [-1.240, +4.181]% | 1.0000 | no | + +Final validation exposed a static PGO-generation link error: static consumers +were missing GCC's profiling runtime link option. That option now propagates +only for static GENERATE builds. A fresh shared PGO release build after this +build-rule fix is byte-identical (including its ELF hash) to the library used +for all confirmation timings. Failed logs and the before/after CMake hashes +are retained; the measured runtime implementation did not change. + +After selection, the unused global/model-2 branch-alignment experiments and +all alignment switches were removed from the production build. Alignment is +now fixed to model 8 only. Fresh PGO release compilation and the available +release contracts passed, and the resulting library is byte-identical to the +measured binary. Archived experiments remain separate from production sources. + +The final build's VNNI objects for both models are byte-identical to baseline. +Branch alignment is cancelled specifically for VNNI sources; the refined +production implementation, not the broader discovery prototype, received the +independent confirmation. AVX-VNNI runtime dispatch, AVX2/FMA baseline, seven +public exports and libc/libm-only shared dependencies are preserved. CPUs +without AVX2/FMA continue to be rejected safely; this is not a scalar fallback. + +Every spectrum and complete state matched baseline bitwise over 65 independent +EARS/stress streams per model, including all four supported in-place modes and +reset replay. This is distinct from the unavailable historical 65-file corpus +below and does not add new perceptual scores. Release, ASan/UBSan, static, +no-VNNI and installed-consumer checks passed; native VNNI execution is skipped +on this CPU. The available QEMU TCG also rejects AVX-VNNI: all six direct +VNNI tests skip there; the two dispatch tests select AVX2. VNNI execution is +not covered by this host or emulator. Object identity and dispatch preservation +are verified; full emulator outcomes are recorded separately. S removes copying, +not the allocated arena size. FFT, synthesis, I/O, creation and the unchanged +50 ms algorithmic delay are outside the neural-call latency figures. + +The [portable result summary](../validation/i7_7700t_final.json) records exact +intervals, per-factor outcomes, test counts, CPU-mask/emulation results and +source/library hashes. The [paired block observations](../validation/i7_7700t_blocks.json) +include all 57 completed contrasts, including the initial failed control, with +block log ratios, assignment orders, analysis seeds and source hashes. Complete raw journals, plans and artifacts are local +under `.local/i7-7700t-final-2026-10-27` and the generated final HTML report. + +## Historical package measurements + +### Latency and memory Intel **Core i7-8700**, GCC 12.2, Linux x86-64 under Docker/WSL2; one unpinned calling thread, one hop every 10 ms. Inputs are precomputed causal spectra from @@ -44,7 +166,7 @@ The [32-run evidence](../validation/repeated_timing.json) records every run, per-batch statistics, protocol and input/library identities. It supersedes the initial 12-run package summary for the overview table. -### Benchmark history and comparisons +#### Benchmark history and comparisons The separate [packaging comparison](../validation/package_timing.json) used balanced ABBA/BAAB order against the accepted reference binaries, with 12 @@ -75,7 +197,7 @@ them into the optimized representation and temporarily needs both forms. This RSS protocol belongs to the C worker and should not be mixed with imported-Python-runtime memory measurements. -## Output quality +### Historical output quality Scores are means over the same **six EARS/WHAM mixtures** with clean references: `00033`, `00046`, `00084`, `00133`, `00200`, `00364`. These are a small quality @@ -99,7 +221,7 @@ W7A8 quantization and fitted gates change the model relative to original FP32 ONNX. Exact regression here means preservation of the **fitted W7A8 reference**; it does not imply lossless conversion from ONNX. -## Broader regression and safety checks +### Historical broader regression and safety checks Both models reproduce every saved spectrum, complete recurrent-state history and aligned PCM hash across **65 files per model**: 50 noisy mixtures, ten @@ -149,6 +271,10 @@ complete application pipeline separately when budgeting callback deadlines. ### Paired optimization experiments +The paired comparison, kernel comparison and stream comparison Python tools +require Python 3.9 or newer. These optional development tools are separate +from the Python 3.8+ build driver and from the dependency-free C runtime. + `tools/compare_benchmarks.py` compares two existing builds in randomized, balanced ABBA/BAAB blocks. Each letter starts a fresh process; all four runs in a block use the same model, input, 120-hop warmup and measurement length. Pin diff --git a/optimized_inference/tools/build.py b/optimized_inference/tools/build.py index 974a5d4..660785f 100644 --- a/optimized_inference/tools/build.py +++ b/optimized_inference/tools/build.py @@ -21,7 +21,7 @@ def main(): parser.add_argument("--no-pgo", action="store_true") parser.add_argument("--sanitize", action="store_true") parser.add_argument("--cmake-arg", action="append", default=[], - help="Additional CMake setting, e.g. --cmake-arg=-DDPDF_ALIGN_BRANCHES=ON") + help="Additional CMake setting, e.g. --cmake-arg=-DDPDF_ENABLE_AVX_VNNI=OFF") args = parser.parse_args() if args.jobs < 1: parser.error("--jobs must be positive") diff --git a/optimized_inference/validation/i7_7700t_blocks.json b/optimized_inference/validation/i7_7700t_blocks.json new file mode 100644 index 0000000..152a823 --- /dev/null +++ b/optimized_inference/validation/i7_7700t_blocks.json @@ -0,0 +1,22 @@ +{ + "schema_version": 1, + "cpu": "Intel Core i7-7700T", + "compiler": "GCC14.2.0", + "scope": "Portable statistical-unit observations, all completed timing stages including the initial failed control; not individual-hop samples. Full per-hop samples and infrastructure journals retained in the local evidence archive.", + "block_columns": [ + "block", + "order", + "log_candidate_mean_over_baseline_mean" + ], + "block_definition": "Each variant has two fresh processes per mirrored block. Take arithmetic mean of its two run means, then log(candidate/baseline). Projecting each contrast gives ABBA/BAAB.", + "analysis": "Use tools/compare_benchmarks.py statistical functions. Student t CI uses alpha=.05/family_size. Conditional assignment randomization uses the observed ABBA count and analysis_seed, with20,000 bootstrap resamples before20,000 Monte Carlo assignments where exact enumeration exceeds20,000. Adjust p by family_size capped at1.", + "baseline_commit": "afa8292f3b8083c3daadd06dbcfe4ff877dd3172", + "datasets": [ + {"label":"initial-pilot","power":"performance","requested_frequency_khz":null,"family_size":2,"blocks_per_comparison":12,"warmup_hops":120,"timed_hops_per_process":300,"cadence_ms":10,"source_plan_sha256":"68a3f31e7699b00985f37e721b09dc2377c26410cb1a683de9aa82568ef6fd39","raw_journal_sha256":"d74308c1964233eaaa307dfaef0ea1abd14a178159757ceb098642f0fcdb0dd9","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":0.8046109250334665,"time_reduction_ci_pct":[0.013687528597072784,1.5892778669255536],"adjusted_p":0.048484848484848485,"confirmed_gain":true,"analysis_seed":66100,"blocks":[[0,"BAAB",-0.012003898538155746],[1,"BAAB",-0.029137846690743752],[2,"BAAB",-0.012385510326073566],[3,"ABBA",-0.0020509872034407306],[4,"BAAB",-0.013213980624585191],[5,"BAAB",-0.015222963040308905],[6,"ABBA",0.00586720215386631],[7,"BAAB",0.0018386108746368673],[8,"BAAB",0.007790203921553593],[9,"ABBA",-0.017489467759796245],[10,"ABBA",-0.005246746681661923],[11,"BAAB",-0.005688462605350929]]},{"label":"m8-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":0.30147027247624525,"time_reduction_ci_pct":[-0.33518729805503966,0.934088055241844],"adjusted_p":0.4727272727272727,"confirmed_gain":false,"analysis_seed":66101,"blocks":[[0,"ABBA",-0.00791949477571157],[1,"BAAB",0.004405957932735955],[2,"BAAB",0.008751023176361153],[3,"BAAB",-0.00272249702909341],[4,"ABBA",-0.00552779069154232],[5,"BAAB",-0.0010374511491202873],[6,"BAAB",0.008297233334264485],[7,"BAAB",-0.0030612702156226244],[8,"ABBA",0.0015079160303493224],[9,"BAAB",-0.005900070402594984],[10,"ABBA",-0.021332034792527124],[11,"BAAB",-0.011692594553847562]]}]}, + {"label":"revised-calibration","power":"performance","requested_frequency_khz":3600000,"family_size":2,"blocks_per_comparison":24,"warmup_hops":120,"timed_hops_per_process":300,"cadence_ms":10,"source_plan_sha256":"d885f37d7a984fd122121f9d42b92fa0881151b19e37aa91c6ce8c83b31d000f","raw_journal_sha256":"834ae69a52088d5a2e4457a5bf1ad900f85f3c26a4b533e7e80a5389b08f333b","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":0.009967551196277125,"time_reduction_ci_pct":[-0.3646892360521736,0.3832257618208268],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":67100,"blocks":[[0,"BAAB",0.012132068888020422],[1,"ABBA",0.0058103571283279545],[2,"BAAB",0.012036105617292037],[3,"BAAB",-0.003036769732974014],[4,"BAAB",-0.003093507352842287],[5,"BAAB",-0.0002516790977327637],[6,"ABBA",-0.009027594235132063],[7,"BAAB",-0.000351624550309391],[8,"ABBA",-0.013646580173995736],[9,"ABBA",-0.00020676385390421616],[10,"ABBA",0.0013922525074041671],[11,"ABBA",-0.0049647936025896825],[12,"ABBA",0.0052626560057290285],[13,"BAAB",0.0043087312058645265],[14,"ABBA",-0.0009284524328822719],[15,"ABBA",-0.0013426697738264197],[16,"BAAB",0.019727350182327137],[17,"BAAB",-0.011369319806299258],[18,"BAAB",-0.0036747504990430014],[19,"ABBA",0.005955910415815012],[20,"ABBA",-0.005651808416335616],[21,"BAAB",-0.0015979597752584422],[22,"BAAB",-0.006407765480303204],[23,"ABBA",-0.003465724684874465]]},{"label":"m8-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":-0.15450811786266172,"time_reduction_ci_pct":[-0.6368477130228811,0.32551968504305195],"adjusted_p":0.9047547622618869,"confirmed_gain":false,"analysis_seed":67101,"blocks":[[0,"BAAB",0.019983899053966254],[1,"BAAB",0.01100054197389502],[2,"BAAB",-0.0078119159442025035],[3,"ABBA",-0.01599759328736254],[4,"BAAB",0.0011678303039630354],[5,"ABBA",0.00017729784948372667],[6,"BAAB",0.018550767293448362],[7,"ABBA",-0.0016359689461160692],[8,"BAAB",-0.0009126960829250519],[9,"ABBA",-0.002319372816882283],[10,"ABBA",-0.006511719387405325],[11,"ABBA",0.006617905372040278],[12,"BAAB",0.0028305431701402726],[13,"BAAB",0.0012410579643922616],[14,"BAAB",-0.009915046952006783],[15,"BAAB",-0.0036970971836355285],[16,"ABBA",-0.0012498709464582038],[17,"ABBA",0.01143401034851094],[18,"BAAB",-0.004786754207473112],[19,"ABBA",-0.016891916783948375],[20,"BAAB",0.0069118012073377914],[21,"ABBA",0.0153743064477396],[22,"ABBA",0.0121312621060504],[23,"ABBA",0.001362059898433344]]}]}, + {"label":"discovery","power":"performance","requested_frequency_khz":3600000,"family_size":32,"blocks_per_comparison":24,"warmup_hops":120,"timed_hops_per_process":300,"cadence_ms":10,"source_plan_sha256":"76180ac8bd2f5e0338b02c1374cfb31fe8752fa50fdf9ecc96ef7c7cf06e6a1f","raw_journal_sha256":"80e055380148f7bfbde8986f0b7c3360b18c0c470b33a033fd47e397b534b266","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"m2-g":{"library_sha256":"41067d90c64f27d3f15d50d2148b7a6d7116d45bb7a4999a90ca6f34b6ec397a","benchmark_sha256":"0149b40ca8b55d3367f4ee7c687ca5c9f010adb53bb97614d0b5c768005c7bc1"},"m2-v":{"library_sha256":"1e122d057e9f379ef4320594dcd42efd9a1e40e7300d72417e8b65af760f0a13","benchmark_sha256":"e0deaab3cff7c989c7152afe9610042a2d5c2a46b79d84b6d6e45f900394e16a"},"m2-gv":{"library_sha256":"b849445134f7bd50c82e6e54bcd1791f109f3dd31da9aaf73ce48b64802b5a05","benchmark_sha256":"83ef699b8bea1253da0b5d37f0bf72159f4ea6278cd376f4e04a9dc6768a04f6"},"m2-gvj":{"library_sha256":"f6fc7f29ec6cf86bce4c65bc4c4655e3528991cc603e16c49f48df4f238ac1b7","benchmark_sha256":"333df757ddd74b8fbaaa83ce519d28653b60a3c24c5a3e65f0bf1a4abc604275"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"m8-g":{"library_sha256":"9079c193c1bca4f8d672757b5f8b1a42fc25f17f4680320b54560a20e60bda71","benchmark_sha256":"7f7d459ada3deffd00f830c389bf923ee1135338f4dc6a9f22ee4cf78d9c5292"},"m8-v":{"library_sha256":"b5ab1f62b7175de62c91fa79cb4e6308ac40790c447577fdf660c279542da31a","benchmark_sha256":"6441a25b90313c58e5d8c5749f8c702d8f8d0cd8874692cefcc57feb6aef95bd"},"m8-gv":{"library_sha256":"e97f3a252bb71ed61414f702a122ff24452847552c5fe520f1251faa652f7161","benchmark_sha256":"f60ae43c57aa62e6fa26afd0f98c41db6509ceef2feba9f9fb45cc2e2e029189"},"m8-b":{"library_sha256":"552f6ba5f46b020ddcc0e4b3cbeaed8706aafa041d4b5494606f82c353a8cf0b","benchmark_sha256":"95dca89401fad66d03dfcdc5ea504969e058004564eb11a2b38eee082a96923f"},"m8-gb":{"library_sha256":"9bf14332b51338fafe9254f4be9fcdc4923821605a6a8372878fed46ef181800","benchmark_sha256":"3e7ec25de48447c88560fe8aeae2ea3ce2be065fe83b7c818b93437dd8c61605"},"m8-vb":{"library_sha256":"bb35bf01f88a1786d47d34674b35f126a15bedcf5690a8e152bbc88731194402","benchmark_sha256":"3cdaf218db5d59cdffade6803c0e9f06bd4bee9c033b02a72218bfac050963fd"},"m8-gvb":{"library_sha256":"9acbc73a2196a8b1fa9328cb037afb90ab20e362d37e7aaad66d98452b5c7c9d","benchmark_sha256":"5b174d00ee8c2ab7673d15509ebc8dbe8faa0b3fa280fcffa78c55d24cdfb7d3"},"m8-s":{"library_sha256":"25cfa82433895b0b359b3fd099e192cd5ab31746cabc4436a5a4a5c94ee93ffd","benchmark_sha256":"a88eb36716c816772d8127edb0c59ed8881974d1529edbcb2be02747e29dded5"},"m8-gs":{"library_sha256":"92fe0c108c653bdfff50fc403a7e11792ae671060d3e010f1de14e690783fc2e","benchmark_sha256":"1e942ff4636018411a33060ad1c5882c23e8d67586e3b1f2ba173a31afbaf5b8"},"m8-vs":{"library_sha256":"417f5e529255fa74b0809ac3a05565ed62579a0562030aed062ba030ae9f681a","benchmark_sha256":"d06e928f6007167df08c06d8ca934add1fa8650c5b6272011f298b8977cb1f96"},"m8-gvs":{"library_sha256":"7513a882add231086734a2b0e582fc89fccc96566feabfd77e1fc4ac07c83c59","benchmark_sha256":"2d96e9d80773fe9214b0f7835ed8104ecd9c22e0eaf3b3ac1a771735cfc8dc12"},"m8-bs":{"library_sha256":"deb2e14aeb277cae132cbfa3c39e3e6f5f1169e74b8fb9adf0ddd20c1e0f1f6a","benchmark_sha256":"8d84c7337e0976ff309e69ff4c9681309b4d7909ce095a20bb9ed5178c690a25"},"m8-gbs":{"library_sha256":"d6398e0af2845f75582bba5afe11bffc85a63a980abb3810cfdb8ef805398fab","benchmark_sha256":"ab901433649daf7c3f78dd1185da0f9a739bbe87be86eb89de662fc35a7848c2"},"m8-vbs":{"library_sha256":"e13752c920b644940bba79eadef9b08d37d86505e9871b293593d68a640d3b7a","benchmark_sha256":"a4322cfaee25381b7f641adf4bccc1f1bcd7578ea027100a1977e497c17cea90"},"m8-gvbs":{"library_sha256":"4b034f13ba9bdb3691484782676d89040fe0c5907c34ef3ddf6dd5e075e42188","benchmark_sha256":"75d845eda486e9fd74898ab7c58201e806ff49f2dbf6313aeb6f396e29beb12b"},"m8-gvbsj":{"library_sha256":"d3b2a0f10a14f6418a89457642d2e15693c3c8061c92db6f104051e05e28fb2d","benchmark_sha256":"4ca7eacab670cbd099cbd1e0d137201a87c7124f63f6f7122d87eeb7b208f3ea"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-g-vs-baseline","model":2,"a":"baseline","b":"m2-g","time_reduction_pct":2.8767198304123887,"time_reduction_ci_pct":[2.264463467489386,3.4851407628743836],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67200,"blocks":[[0,"BAAB",-0.0345251447824518],[1,"ABBA",-0.022723717217384965],[2,"BAAB",-0.02126714406046926],[3,"ABBA",-0.0222052742867012],[4,"ABBA",-0.02774105343204094],[5,"BAAB",-0.036116171298126186],[6,"BAAB",-0.0204496673926241],[7,"BAAB",-0.04158078704542976],[8,"BAAB",-0.015436372149828926],[9,"ABBA",-0.04343939531476503],[10,"BAAB",-0.03560949977465193],[11,"ABBA",-0.0259788132899624],[12,"ABBA",-0.03844570818626424],[13,"ABBA",-0.016596291568716514],[14,"ABBA",-0.02934196814439709],[15,"BAAB",-0.03738400096572845],[16,"BAAB",-0.03122940928344244],[17,"BAAB",-0.015272210808221722],[18,"BAAB",-0.03157279506445575],[19,"BAAB",-0.029404571827879786],[20,"ABBA",-0.03752022874565153],[21,"BAAB",-0.021116067871875418],[22,"ABBA",-0.04034066738741939],[23,"BAAB",-0.02524107647009344]]},{"label":"m2-v-vs-baseline","model":2,"a":"baseline","b":"m2-v","time_reduction_pct":2.529053165508788,"time_reduction_ci_pct":[1.9790844174226274,3.0759361882466973],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67201,"blocks":[[0,"BAAB",-0.01917879321305254],[1,"ABBA",-0.02531173835072925],[2,"BAAB",-0.02791081149571401],[3,"BAAB",-0.033445538271649096],[4,"BAAB",-0.0323592203071819],[5,"BAAB",-0.026193288376345814],[6,"BAAB",-0.019288050140243203],[7,"ABBA",-0.030654931325026724],[8,"BAAB",-0.020289676292050748],[9,"BAAB",-0.0328270466870554],[10,"BAAB",-0.01909422148251754],[11,"BAAB",-0.03640669512824655],[12,"ABBA",-0.03388586358736603],[13,"ABBA",-0.023184868788322755],[14,"ABBA",-0.010222902424658838],[15,"BAAB",-0.03094046726235861],[16,"BAAB",-0.03483666172284195],[17,"ABBA",-0.019555123775985277],[18,"BAAB",-0.017633884347884373],[19,"ABBA",-0.026320881341111955],[20,"BAAB",-0.030937306537720047],[21,"ABBA",-0.008610510837861044],[22,"ABBA",-0.022987502702431346],[23,"BAAB",-0.03270402138268742]]},{"label":"m2-gv-vs-baseline","model":2,"a":"baseline","b":"m2-gv","time_reduction_pct":5.081404027686409,"time_reduction_ci_pct":[4.51364030161181,5.645791819756763],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67202,"blocks":[[0,"ABBA",-0.05563484165143469],[1,"ABBA",-0.04125092005630612],[2,"BAAB",-0.056296346625387114],[3,"BAAB",-0.05434747523785713],[4,"ABBA",-0.06136999644348283],[5,"BAAB",-0.054364849628063074],[6,"BAAB",-0.03606728937923026],[7,"ABBA",-0.0624368398947684],[8,"ABBA",-0.041109632693155776],[9,"BAAB",-0.058203268249668955],[10,"BAAB",-0.045855816613888614],[11,"BAAB",-0.06460884955282346],[12,"ABBA",-0.06321145978723022],[13,"ABBA",-0.052152265330978505],[14,"ABBA",-0.04336834547266549],[15,"BAAB",-0.057230317465221774],[16,"BAAB",-0.0637519262623002],[17,"BAAB",-0.04416299610786002],[18,"BAAB",-0.04350246812530915],[19,"ABBA",-0.05203934110932236],[20,"ABBA",-0.04889829363398067],[21,"ABBA",-0.0460035501871746],[22,"BAAB",-0.05588049297153154],[23,"ABBA",-0.04986552691784355]]},{"label":"m2-gvj-vs-baseline","model":2,"a":"baseline","b":"m2-gvj","time_reduction_pct":5.406089655173929,"time_reduction_ci_pct":[4.882211643113566,5.927082316594201],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67203,"blocks":[[0,"ABBA",-0.056980799970429645],[1,"ABBA",-0.05048465119933247],[2,"BAAB",-0.05034071414415019],[3,"BAAB",-0.05882190122325576],[4,"ABBA",-0.06110082558827906],[5,"ABBA",-0.06370156041574862],[6,"BAAB",-0.047638067808550316],[7,"ABBA",-0.0645460015937178],[8,"BAAB",-0.045491780125975656],[9,"BAAB",-0.051319832629521375],[10,"BAAB",-0.054420281000837574],[11,"BAAB",-0.05778993992207476],[12,"ABBA",-0.06283737586477339],[13,"ABBA",-0.05260728900983584],[14,"ABBA",-0.04346121778563375],[15,"BAAB",-0.061797660492175964],[16,"BAAB",-0.06294176297479005],[17,"ABBA",-0.04412569325652243],[18,"ABBA",-0.04255954198958018],[19,"BAAB",-0.05537510184783763],[20,"ABBA",-0.06660171241454207],[21,"ABBA",-0.05169045159789744],[22,"BAAB",-0.06582808150790652],[23,"BAAB",-0.06138778792124651]]},{"label":"m8-g-vs-baseline","model":8,"a":"baseline","b":"m8-g","time_reduction_pct":1.194009583627853,"time_reduction_ci_pct":[0.41878231346850203,1.9632018068741486],"adjusted_p":0.0031998400079996,"confirmed_gain":true,"analysis_seed":67204,"blocks":[[0,"BAAB",0.01067028534516688],[1,"ABBA",-0.0028338239383232044],[2,"ABBA",-0.02101307224832272],[3,"BAAB",-0.015137453031257575],[4,"ABBA",-0.0027230642966472505],[5,"BAAB",-0.017925885220572226],[6,"ABBA",0.0004994000309723393],[7,"BAAB",-0.013012368460765785],[8,"BAAB",-0.03280016978317496],[9,"BAAB",-0.014072261245915495],[10,"BAAB",-0.020256809898262618],[11,"BAAB",-0.025589268130092234],[12,"BAAB",-0.014274234309015811],[13,"ABBA",-0.012162500636200375],[14,"ABBA",-0.0019764084650805026],[15,"ABBA",-0.0005941363916154702],[16,"ABBA",-0.012569454695999465],[17,"BAAB",-0.019966654182098205],[18,"ABBA",0.005664411439855173],[19,"BAAB",-0.020726224731630508],[20,"ABBA",-0.012123262254630281],[21,"BAAB",-0.0022780556879629568],[22,"BAAB",-0.021809973173206123],[23,"ABBA",-0.021275847898624856]]},{"label":"m8-v-vs-baseline","model":8,"a":"baseline","b":"m8-v","time_reduction_pct":1.4142283789228438,"time_reduction_ci_pct":[0.989677034549652,1.8369592682302316],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67205,"blocks":[[0,"BAAB",-0.006274825927110432],[1,"BAAB",-0.006549534672692861],[2,"BAAB",-0.016730014824563908],[3,"BAAB",-0.01800711395456954],[4,"BAAB",-0.011741881422439895],[5,"BAAB",-0.01834533122533399],[6,"BAAB",-0.013431111928403733],[7,"ABBA",-0.0174031765135494],[8,"BAAB",-0.022306873649778677],[9,"BAAB",-0.021890429499475533],[10,"BAAB",-0.015333235979623947],[11,"BAAB",-0.02455316885703776],[12,"ABBA",-0.009409624979008973],[13,"ABBA",-0.003941151220763898],[14,"ABBA",-0.012178885769464482],[15,"ABBA",-0.01053196687319255],[16,"ABBA",-0.01511127291622208],[17,"BAAB",-0.025401244508856603],[18,"ABBA",-0.004449771988669923],[19,"ABBA",-0.012490327292522148],[20,"ABBA",-0.014285397165867667],[21,"BAAB",-0.011828324918107393],[22,"BAAB",-0.013004636663591532],[23,"BAAB",-0.016638429366021237]]},{"label":"m8-gv-vs-baseline","model":8,"a":"baseline","b":"m8-gv","time_reduction_pct":2.778808041229175,"time_reduction_ci_pct":[2.3324875866783223,3.2230889030512966],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67206,"blocks":[[0,"ABBA",-0.022652617754305153],[1,"ABBA",-0.018162775510945948],[2,"BAAB",-0.02804636451342499],[3,"BAAB",-0.032291618299410775],[4,"BAAB",-0.02489536409895673],[5,"BAAB",-0.03790970715996675],[6,"ABBA",-0.02422197826537077],[7,"BAAB",-0.027372277653275358],[8,"BAAB",-0.03662519259361508],[9,"BAAB",-0.03776140387126044],[10,"BAAB",-0.03155820061088097],[11,"ABBA",-0.03883047123344348],[12,"BAAB",-0.030805850996355334],[13,"ABBA",-0.017941722324902452],[14,"BAAB",-0.02409932596415561],[15,"ABBA",-0.01988003338458286],[16,"ABBA",-0.030578862045076975],[17,"BAAB",-0.032887102470744195],[18,"ABBA",-0.018155831335981257],[19,"BAAB",-0.028343221925677335],[20,"ABBA",-0.029983937388707776],[21,"BAAB",-0.025725956050940017],[22,"ABBA",-0.030708013025053823],[23,"BAAB",-0.026917547963243773]]},{"label":"m8-b-vs-baseline","model":8,"a":"baseline","b":"m8-b","time_reduction_pct":1.0182205543794898,"time_reduction_ci_pct":[0.31042605558546654,1.7209897227131399],"adjusted_p":0.0127993600319984,"confirmed_gain":true,"analysis_seed":67207,"blocks":[[0,"ABBA",0.006861561488231367],[1,"ABBA",0.00038703439065108176],[2,"BAAB",-0.017170782364213568],[3,"BAAB",-0.01656169421439923],[4,"BAAB",-0.012660219898049007],[5,"BAAB",-0.018809884341451488],[6,"ABBA",-0.004553951679660313],[7,"ABBA",-0.01671170167429015],[8,"ABBA",-0.01779658612406412],[9,"ABBA",-0.024767812512793672],[10,"BAAB",0.0016719223806455161],[11,"BAAB",-0.018213113236624726],[12,"ABBA",-0.018636556526864044],[13,"BAAB",-0.006544758888910036],[14,"ABBA",-0.011720864544013597],[15,"BAAB",0.010782918126195222],[16,"BAAB",-0.017503486810882492],[17,"BAAB",-0.014206737543527095],[18,"BAAB",0.002941797226957321],[19,"BAAB",-0.019377604733054606],[20,"ABBA",0.0018536449453180864],[21,"ABBA",-0.01363457669063547],[22,"ABBA",-0.015454094783595931],[23,"BAAB",-0.005800023092058604]]},{"label":"m8-gb-vs-baseline","model":8,"a":"baseline","b":"m8-gb","time_reduction_pct":2.0319594431497556,"time_reduction_ci_pct":[1.362501474657063,2.6968737646696495],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67208,"blocks":[[0,"ABBA",-0.013909620245367873],[1,"ABBA",-0.008983772213403012],[2,"BAAB",-0.030252808113605735],[3,"BAAB",-0.023767386731597555],[4,"BAAB",-0.01840508670675164],[5,"BAAB",-0.018845241025467706],[6,"ABBA",-0.0064256551926337386],[7,"ABBA",-0.01011663845944964],[8,"BAAB",-0.03155301830154306],[9,"BAAB",-0.01838358069641599],[10,"BAAB",-0.02235286829993919],[11,"BAAB",-0.03803021663092945],[12,"BAAB",-0.019430043954485745],[13,"ABBA",-0.02077660795628094],[14,"BAAB",-0.019144617999505193],[15,"ABBA",-0.02121008679905752],[16,"ABBA",-0.019660409002912944],[17,"ABBA",-0.0391505589197466],[18,"BAAB",-0.003931073448278621],[19,"BAAB",-0.007839542127227574],[20,"ABBA",-0.03024955205362723],[21,"BAAB",-0.019688786134382564],[22,"ABBA",-0.021423344877971828],[23,"ABBA",-0.029162538637187704]]},{"label":"m8-vb-vs-baseline","model":8,"a":"baseline","b":"m8-vb","time_reduction_pct":2.2601945556342096,"time_reduction_ci_pct":[1.81215706604676,2.706187621125178],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67209,"blocks":[[0,"ABBA",-0.014082076164763351],[1,"ABBA",-0.015119396370626993],[2,"BAAB",-0.022819307126562667],[3,"BAAB",-0.026034534344762033],[4,"BAAB",-0.021822582971275904],[5,"BAAB",-0.028602094821736018],[6,"ABBA",-0.021152801367349188],[7,"ABBA",-0.024053775332791627],[8,"BAAB",-0.033473622363225625],[9,"BAAB",-0.029249510080524132],[10,"BAAB",-0.02179130686372554],[11,"BAAB",-0.03453979344902678],[12,"BAAB",-0.024887529767572702],[13,"ABBA",-0.01081221067695024],[14,"BAAB",-0.02011288739361743],[15,"ABBA",-0.015832194210613715],[16,"ABBA",-0.02319510017939171],[17,"BAAB",-0.031211529583080565],[18,"ABBA",-0.011200881566401234],[19,"BAAB",-0.023246592228537668],[20,"ABBA",-0.02581149299870413],[21,"BAAB",-0.02292411598965265],[22,"ABBA",-0.02349973420480951],[23,"BAAB",-0.02319576252034769]]},{"label":"m8-gvb-vs-baseline","model":8,"a":"baseline","b":"m8-gvb","time_reduction_pct":3.578063834139944,"time_reduction_ci_pct":[3.1042529560254217,4.0495578226585005],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67210,"blocks":[[0,"BAAB",-0.030511688637658477],[1,"ABBA",-0.026771713653373608],[2,"BAAB",-0.035359401228924676],[3,"BAAB",-0.03865548554419405],[4,"BAAB",-0.03530815405179568],[5,"BAAB",-0.04531388056384265],[6,"ABBA",-0.035546559787208824],[7,"BAAB",-0.03678611016890154],[8,"BAAB",-0.04466271015386739],[9,"BAAB",-0.04342517624961714],[10,"BAAB",-0.037209566086662926],[11,"BAAB",-0.04824564389381189],[12,"BAAB",-0.03600518205044212],[13,"ABBA",-0.023263161267968523],[14,"BAAB",-0.03523053806682312],[15,"BAAB",-0.02685071488403779],[16,"ABBA",-0.03468412771956502],[17,"ABBA",-0.048573476678955924],[18,"BAAB",-0.02539054897180559],[19,"BAAB",-0.035629546567337356],[20,"ABBA",-0.03790809870961334],[21,"ABBA",-0.03624420287953449],[22,"BAAB",-0.04055254057146595],[23,"BAAB",-0.03634673169792459]]},{"label":"m8-s-vs-baseline","model":8,"a":"baseline","b":"m8-s","time_reduction_pct":0.9587217520773073,"time_reduction_ci_pct":[0.3054200505772431,1.607742347087937],"adjusted_p":0.0047997600119994,"confirmed_gain":true,"analysis_seed":67211,"blocks":[[0,"ABBA",-0.002520836507641385],[1,"ABBA",-0.0010945397409318494],[2,"BAAB",-0.019715575925394375],[3,"BAAB",-0.02205148915836079],[4,"ABBA",-0.01597220818304649],[5,"BAAB",-0.007628177085423356],[6,"BAAB",-0.008457857809790094],[7,"BAAB",-0.008127300428946998],[8,"BAAB",-0.02237917726612208],[9,"BAAB",-0.019991670369958862],[10,"BAAB",-0.010877878891954889],[11,"BAAB",-0.011298423580096409],[12,"ABBA",-0.004512430599217876],[13,"ABBA",-0.0028211255860933065],[14,"BAAB",-0.010157745801602263],[15,"ABBA",-0.0015838902965476442],[16,"ABBA",-0.020639568663199413],[17,"ABBA",-0.013909165410562096],[18,"ABBA",0.012107787810626665],[19,"BAAB",-0.01883115807422251],[20,"ABBA",-0.00221995354461004],[21,"BAAB",0.0009070973435357224],[22,"BAAB",-0.0009484351838112568],[23,"BAAB",-0.018479575157327423]]},{"label":"m8-gs-vs-baseline","model":8,"a":"baseline","b":"m8-gs","time_reduction_pct":2.3636565850846503,"time_reduction_ci_pct":[1.780372770266636,2.943476530020195],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67212,"blocks":[[0,"ABBA",-0.020441438702585957],[1,"ABBA",-0.01386788272275239],[2,"BAAB",-0.01733760802257844],[3,"BAAB",-0.0355219702422231],[4,"BAAB",-0.020492032666272482],[5,"BAAB",-0.04274761604384288],[6,"ABBA",-0.02177032272617602],[7,"ABBA",-0.014088493918222885],[8,"ABBA",-0.028489481980436274],[9,"BAAB",-0.03084883645960262],[10,"ABBA",-0.01514379476598645],[11,"BAAB",-0.023445588168313665],[12,"BAAB",-0.025354134235161502],[13,"ABBA",-0.012916060772881054],[14,"ABBA",-0.020586136920814686],[15,"BAAB",-0.016858317587518396],[16,"BAAB",-0.03148796582543836],[17,"ABBA",-0.0332200766568815],[18,"ABBA",-0.012078439563759183],[19,"ABBA",-0.024580431479535758],[20,"ABBA",-0.03332610413634197],[21,"BAAB",-0.03173029298280222],[22,"ABBA",-0.02408292589890234],[23,"BAAB",-0.023673427380463654]]},{"label":"m8-vs-vs-baseline","model":8,"a":"baseline","b":"m8-vs","time_reduction_pct":2.5670901586083317,"time_reduction_ci_pct":[2.1789010306757284,2.9537388131601117],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67213,"blocks":[[0,"ABBA",-0.022815206439918276],[1,"ABBA",-0.019194504014761166],[2,"BAAB",-0.027024378271909164],[3,"BAAB",-0.02692030049799309],[4,"BAAB",-0.022449943427837387],[5,"BAAB",-0.03084263536763031],[6,"ABBA",-0.023740663792860175],[7,"BAAB",-0.026860495005677845],[8,"BAAB",-0.03381814284938863],[9,"BAAB",-0.0334825422779915],[10,"BAAB",-0.028015476620024078],[11,"BAAB",-0.03820463386030433],[12,"ABBA",-0.026958335769203447],[13,"ABBA",-0.014645675202105203],[14,"ABBA",-0.022780305315646385],[15,"BAAB",-0.019732698824729306],[16,"ABBA",-0.026868784883332907],[17,"ABBA",-0.03425676246082982],[18,"ABBA",-0.01841245675940729],[19,"BAAB",-0.02605943918693522],[20,"ABBA",-0.02504573089152229],[21,"BAAB",-0.02526600960144829],[22,"ABBA",-0.02519463410393685],[23,"ABBA",-0.02555782123442122]]},{"label":"m8-gvs-vs-baseline","model":8,"a":"baseline","b":"m8-gvs","time_reduction_pct":3.821594199469691,"time_reduction_ci_pct":[3.3516076938037154,4.289295231883205],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67214,"blocks":[[0,"BAAB",-0.028836102021419965],[1,"ABBA",-0.03010966326854275],[2,"BAAB",-0.04114044680835277],[3,"BAAB",-0.039509026268213794],[4,"BAAB",-0.03397875988227755],[5,"BAAB",-0.04753144984725399],[6,"ABBA",-0.03915918591786896],[7,"BAAB",-0.03909189587580142],[8,"ABBA",-0.05012130401324819],[9,"BAAB",-0.04838360904686524],[10,"BAAB",-0.03934920685566096],[11,"BAAB",-0.04465785924119409],[12,"ABBA",-0.03796870792118297],[13,"ABBA",-0.02377553256680954],[14,"ABBA",-0.03744857102290509],[15,"BAAB",-0.03344232705956786],[16,"ABBA",-0.04181188934921797],[17,"ABBA",-0.04972363801568617],[18,"BAAB",-0.030290580630143987],[19,"ABBA",-0.03673809782912094],[20,"ABBA",-0.0377674964741385],[21,"BAAB",-0.041029689263744194],[22,"ABBA",-0.04086557396622347],[23,"BAAB",-0.04243719746217426]]},{"label":"m8-bs-vs-baseline","model":8,"a":"baseline","b":"m8-bs","time_reduction_pct":1.691348312477381,"time_reduction_ci_pct":[1.132648581484752,2.2468908294359102],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67215,"blocks":[[0,"ABBA",-0.008920302577102584],[1,"ABBA",-0.00057118872497377],[2,"BAAB",-0.006717037574513348],[3,"BAAB",-0.025988370121852962],[4,"BAAB",-0.012262863920618339],[5,"BAAB",-0.025394868351802383],[6,"BAAB",-0.00692388220814463],[7,"ABBA",-0.01950017982875942],[8,"BAAB",-0.027403471594757967],[9,"BAAB",-0.024384060461247522],[10,"BAAB",-0.026347638716362178],[11,"BAAB",-0.02004046096716848],[12,"BAAB",-0.029435073258058667],[13,"ABBA",-0.0066577437607143524],[14,"ABBA",-0.023957606115536063],[15,"ABBA",-0.01876426938597281],[16,"ABBA",-0.00851577030743898],[17,"BAAB",-0.017315148855022725],[18,"BAAB",-0.016205559266808233],[19,"BAAB",-0.017059164751436866],[20,"ABBA",-0.017913001366533534],[21,"ABBA",-0.016752561016224334],[22,"BAAB",-0.018275344606715118],[23,"ABBA",-0.01409002290236869]]},{"label":"m8-gbs-vs-baseline","model":8,"a":"baseline","b":"m8-gbs","time_reduction_pct":2.9628322647740513,"time_reduction_ci_pct":[2.2928327664114234,3.6282374294709263],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67216,"blocks":[[0,"ABBA",-0.011439296134971305],[1,"ABBA",-0.021957642244606706],[2,"BAAB",-0.030290858950541785],[3,"BAAB",-0.02976613454203839],[4,"ABBA",-0.02011777509095229],[5,"BAAB",-0.036957144863691005],[6,"ABBA",-0.0401651366364565],[7,"BAAB",-0.038096059493403334],[8,"ABBA",-0.04279070261414932],[9,"BAAB",-0.04870994212605054],[10,"BAAB",-0.03672305468970072],[11,"BAAB",-0.042774156960825795],[12,"ABBA",-0.023147467357281494],[13,"ABBA",-0.019653758915826502],[14,"ABBA",-0.028917742574797876],[15,"BAAB",-0.02065327645009477],[16,"BAAB",-0.02923282159717578],[17,"BAAB",-0.038563546383588596],[18,"ABBA",-0.02051342653521499],[19,"BAAB",-0.022530221014055395],[20,"ABBA",-0.03119659585993499],[21,"ABBA",-0.0277884450572914],[22,"ABBA",-0.03758731190894862],[23,"ABBA",-0.022254082361247433]]},{"label":"m8-vbs-vs-baseline","model":8,"a":"baseline","b":"m8-vbs","time_reduction_pct":3.3203974022300686,"time_reduction_ci_pct":[2.8645044181399237,3.7741507110995443],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67217,"blocks":[[0,"ABBA",-0.02025736012952431],[1,"ABBA",-0.020775871454582196],[2,"BAAB",-0.0371232626740494],[3,"BAAB",-0.03286572663316729],[4,"ABBA",-0.03314964831180909],[5,"BAAB",-0.04141341916232994],[6,"ABBA",-0.032214599218062204],[7,"BAAB",-0.031264554587280224],[8,"BAAB",-0.04238024597076494],[9,"BAAB",-0.04241600496332688],[10,"ABBA",-0.03533621295867374],[11,"BAAB",-0.045058120682208526],[12,"BAAB",-0.03366630008341055],[13,"ABBA",-0.027989801272767918],[14,"BAAB",-0.03261548851443557],[15,"BAAB",-0.02996781189885729],[16,"ABBA",-0.0336886390425583],[17,"ABBA",-0.04263167421909853],[18,"ABBA",-0.023477429674321742],[19,"BAAB",-0.03383554849422536],[20,"ABBA",-0.03387052149323159],[21,"BAAB",-0.03369355663032723],[22,"ABBA",-0.034526770545670375],[23,"BAAB",-0.036207207029605754]]},{"label":"m8-gvbs-vs-baseline","model":8,"a":"baseline","b":"m8-gvbs","time_reduction_pct":4.478777693668878,"time_reduction_ci_pct":[4.032541470912432,4.922938975924107],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67218,"blocks":[[0,"ABBA",-0.033346675356689275],[1,"BAAB",-0.0349053306880272],[2,"BAAB",-0.04670554182790639],[3,"BAAB",-0.04861718502185749],[4,"ABBA",-0.04534671815987962],[5,"BAAB",-0.053718370412407575],[6,"ABBA",-0.04522456244384957],[7,"ABBA",-0.04510331046769544],[8,"ABBA",-0.05595629731408372],[9,"BAAB",-0.05663114252645164],[10,"BAAB",-0.043819447820651454],[11,"BAAB",-0.05581790393499886],[12,"ABBA",-0.04297816337590249],[13,"ABBA",-0.03876857187157196],[14,"ABBA",-0.04458474384612702],[15,"ABBA",-0.04070448126465202],[16,"ABBA",-0.04703486331710565],[17,"BAAB",-0.05365893090354392],[18,"ABBA",-0.03560694893604937],[19,"BAAB",-0.04659619175009015],[20,"ABBA",-0.04622652399749017],[21,"BAAB",-0.04767753154021225],[22,"BAAB",-0.0438229789352267],[23,"BAAB",-0.046869346360156126]]},{"label":"m8-gvbsj-vs-baseline","model":8,"a":"baseline","b":"m8-gvbsj","time_reduction_pct":5.083820935416028,"time_reduction_ci_pct":[4.647810242727102,5.517837910659928],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67219,"blocks":[[0,"ABBA",-0.04564543560590091],[1,"ABBA",-0.04465129210260566],[2,"BAAB",-0.05130509330709919],[3,"BAAB",-0.053426866503178135],[4,"BAAB",-0.04995304927106542],[5,"BAAB",-0.06111328488712464],[6,"ABBA",-0.04955787972613729],[7,"BAAB",-0.055941091154463406],[8,"ABBA",-0.0631030381650242],[9,"BAAB",-0.059623920027724646],[10,"BAAB",-0.05191406450442118],[11,"BAAB",-0.06021711087432808],[12,"BAAB",-0.05194488736072906],[13,"BAAB",-0.04061749357730018],[14,"BAAB",-0.05025295829399629],[15,"ABBA",-0.042606267962659115],[16,"ABBA",-0.0536376109699349],[17,"BAAB",-0.06423436084422644],[18,"BAAB",-0.04438711016930022],[19,"BAAB",-0.0489326722352382],[20,"BAAB",-0.05314159745731368],[21,"ABBA",-0.05097192400098718],[22,"ABBA",-0.05105476609075062],[23,"ABBA",-0.05399045295378649]]},{"label":"m2-gather-contribution","model":2,"a":"m2-v","b":"m2-gv","time_reduction_pct":2.618576042470988,"time_reduction_ci_pct":[2.196772956105908,3.0385599880055847],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67220,"blocks":[[0,"ABBA",-0.03645604843838217],[1,"BAAB",-0.015939181705576757],[2,"BAAB",-0.028385535129673158],[3,"BAAB",-0.020901936966208054],[4,"ABBA",-0.029010776136300924],[5,"BAAB",-0.02817156125171712],[6,"BAAB",-0.016779239238986974],[7,"BAAB",-0.03178190856974179],[8,"ABBA",-0.020819956401104917],[9,"BAAB",-0.025376221562613533],[10,"BAAB",-0.026761595131371024],[11,"ABBA",-0.028202154424576947],[12,"BAAB",-0.029325596199864256],[13,"ABBA",-0.028967396542655732],[14,"ABBA",-0.03314544304800653],[15,"ABBA",-0.02628985020286312],[16,"ABBA",-0.02891526453945822],[17,"BAAB",-0.02460787233187475],[18,"BAAB",-0.025868583777424736],[19,"BAAB",-0.02571845976821038],[20,"ABBA",-0.01796098709626067],[21,"BAAB",-0.03739303934931359],[22,"BAAB",-0.032892990269100246],[23,"ABBA",-0.017161505535156194]]},{"label":"m2-vector-contribution","model":2,"a":"m2-g","b":"m2-gv","time_reduction_pct":2.2699853149774185,"time_reduction_ci_pct":[1.666883744095804,2.8693879132377087],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67221,"blocks":[[0,"ABBA",-0.02110969686898287],[1,"BAAB",-0.018527202838921192],[2,"ABBA",-0.03502920256491792],[3,"BAAB",-0.032142200951156004],[4,"ABBA",-0.0336289430114418],[5,"BAAB",-0.018248678329936884],[6,"BAAB",-0.015617621986606108],[7,"ABBA",-0.02085605284933867],[8,"ABBA",-0.025673260543326797],[9,"BAAB",-0.014763872934903962],[10,"BAAB",-0.010246316839236687],[11,"BAAB",-0.03863003626286112],[12,"ABBA",-0.02476575160096598],[13,"ABBA",-0.0355559737622619],[14,"ABBA",-0.014026377328268376],[15,"BAAB",-0.01984631649949342],[16,"ABBA",-0.03252251697885772],[17,"BAAB",-0.02889078529963822],[18,"BAAB",-0.011929673060853452],[19,"ABBA",-0.022634769281442525],[20,"ABBA",-0.011378064888329167],[21,"ABBA",-0.02488748231529913],[22,"BAAB",-0.015539825584112257],[23,"ABBA",-0.024624450447750128]]},{"label":"m2-alignment-contribution","model":2,"a":"m2-gv","b":"m2-gvj","time_reduction_pct":0.34206745702626273,"time_reduction_ci_pct":[-0.11125503610920351,0.7933372210983669],"adjusted_p":0.3935803209839508,"confirmed_gain":false,"analysis_seed":67222,"blocks":[[0,"ABBA",-0.0013459583189949322],[1,"ABBA",-0.009233731143026388],[2,"ABBA",0.005955632481237021],[3,"ABBA",-0.004474425985398601],[4,"BAAB",0.00026917085520360064],[5,"ABBA",-0.009336710787685562],[6,"ABBA",-0.011570778429320092],[7,"ABBA",-0.0021091616989494097],[8,"BAAB",-0.004382147432819945],[9,"ABBA",0.0068834356201476305],[10,"BAAB",-0.008564464386948974],[11,"ABBA",0.006818909630748799],[12,"BAAB",0.00037408392245690436],[13,"BAAB",-0.0004550236788573346],[14,"BAAB",-9.28723129683464e-05],[15,"BAAB",-0.004567343026954147],[16,"ABBA",0.0008101632875100247],[17,"ABBA",3.7302851337512276e-05],[18,"ABBA",0.0009429261357290038],[19,"BAAB",-0.0033357607385152256],[20,"BAAB",-0.017703418780561486],[21,"ABBA",-0.005686901410722849],[22,"ABBA",-0.009947588536374969],[23,"BAAB",-0.01152226100340294]]},{"label":"m8-incremental-vector-contribution","model":8,"a":"m8-g","b":"m8-gv","time_reduction_pct":1.6039497715906847,"time_reduction_ci_pct":[1.0681278988013299,2.1368695959980366],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67223,"blocks":[[0,"ABBA",-0.033322903099471966],[1,"ABBA",-0.015328951572622705],[2,"BAAB",-0.007033292265102184],[3,"ABBA",-0.01715416526815312],[4,"BAAB",-0.022172299802309482],[5,"ABBA",-0.01998382193939461],[6,"BAAB",-0.024721378296343147],[7,"ABBA",-0.01435990919250958],[8,"BAAB",-0.0038250228104401624],[9,"BAAB",-0.023689142625344904],[10,"ABBA",-0.011301390712618382],[11,"ABBA",-0.013241203103351126],[12,"BAAB",-0.016531616687339514],[13,"BAAB",-0.0057792216887019975],[14,"BAAB",-0.022122917499075107],[15,"ABBA",-0.019285896992967448],[16,"BAAB",-0.018009407349077418],[17,"ABBA",-0.012920448288645981],[18,"BAAB",-0.023820242775836435],[19,"ABBA",-0.007616997194046775],[20,"BAAB",-0.017860675134077388],[21,"ABBA",-0.02344790036297709],[22,"ABBA",-0.008898039851847766],[23,"BAAB",-0.005641700064619001]]},{"label":"m8-incremental-batch-contribution","model":8,"a":"m8-gv","b":"m8-gvb","time_reduction_pct":0.8221003845023,"time_reduction_ci_pct":[0.6382666036078843,1.0055940459378188],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67224,"blocks":[[0,"BAAB",-0.007859070883353275],[1,"ABBA",-0.008608938142427736],[2,"ABBA",-0.007313036715499726],[3,"ABBA",-0.0063638672447833096],[4,"BAAB",-0.010412789952838883],[5,"ABBA",-0.007404173403875932],[6,"ABBA",-0.011324581521838043],[7,"ABBA",-0.009413832515626266],[8,"ABBA",-0.008037517560252339],[9,"BAAB",-0.005663772378356773],[10,"BAAB",-0.005651365475781858],[11,"BAAB",-0.009415172660368464],[12,"ABBA",-0.005199331054086716],[13,"ABBA",-0.005321438943066093],[14,"BAAB",-0.011131212102667454],[15,"BAAB",-0.0069706814994548874],[16,"ABBA",-0.004105265674488091],[17,"ABBA",-0.015686374208211753],[18,"BAAB",-0.007234717635824386],[19,"ABBA",-0.007286324641660026],[20,"ABBA",-0.007924161320905584],[21,"ABBA",-0.010518246828594478],[22,"BAAB",-0.00984452754641207],[23,"ABBA",-0.009429183734680751]]},{"label":"m8-gather-contribution","model":8,"a":"m8-vbs","b":"m8-gvbs","time_reduction_pct":1.198164101127086,"time_reduction_ci_pct":[1.0646904764029408,1.3314576565859548],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67225,"blocks":[[0,"ABBA",-0.013089315227164942],[1,"BAAB",-0.014129459233445062],[2,"BAAB",-0.009582279153857006],[3,"ABBA",-0.01575145838869022],[4,"ABBA",-0.01219706984807063],[5,"ABBA",-0.012304951250077602],[6,"BAAB",-0.0130099632257874],[7,"ABBA",-0.013838755880415138],[8,"ABBA",-0.0135760513433188],[9,"BAAB",-0.014215137563124789],[10,"BAAB",-0.008483234861977756],[11,"BAAB",-0.010759783252790237],[12,"ABBA",-0.009311863292491947],[13,"ABBA",-0.010778770598804052],[14,"ABBA",-0.01196925533169133],[15,"ABBA",-0.010736669365794782],[16,"BAAB",-0.01334622427454735],[17,"BAAB",-0.011027256684445338],[18,"BAAB",-0.012129519261727622],[19,"BAAB",-0.012760643255864844],[20,"BAAB",-0.012356002504258614],[21,"ABBA",-0.013983974909884915],[22,"BAAB",-0.009296208389556386],[23,"BAAB",-0.010662139330550338]]},{"label":"m8-vector-contribution","model":8,"a":"m8-gbs","b":"m8-gvbs","time_reduction_pct":1.5622317347835257,"time_reduction_ci_pct":[1.1376634231484162,1.9849767205952218],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67226,"blocks":[[0,"ABBA",-0.02190737922171791],[1,"BAAB",-0.012947688443420553],[2,"BAAB",-0.01641468287736456],[3,"ABBA",-0.018851050479819137],[4,"ABBA",-0.025228943068927354],[5,"ABBA",-0.016761225548716584],[6,"BAAB",-0.0050594258073930745],[7,"ABBA",-0.00700725097429197],[8,"BAAB",-0.013165594699934493],[9,"BAAB",-0.007921200400401162],[10,"BAAB",-0.00709639313095075],[11,"BAAB",-0.013043746974173025],[12,"BAAB",-0.019830696018621065],[13,"ABBA",-0.019114812955745443],[14,"ABBA",-0.015667001271329004],[15,"ABBA",-0.02005120481455716],[16,"ABBA",-0.017802041719929895],[17,"BAAB",-0.015095384519955367],[18,"BAAB",-0.015093522400834267],[19,"BAAB",-0.024065970736034774],[20,"BAAB",-0.01502992813755521],[21,"BAAB",-0.019889086482920836],[22,"BAAB",-0.006235667026278104],[23,"BAAB",-0.02461526399890871]]},{"label":"m8-batch-contribution","model":8,"a":"m8-gvs","b":"m8-gvbs","time_reduction_pct":0.6832963062022079,"time_reduction_ci_pct":[0.4786045573679898,0.8875670529809865],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67227,"blocks":[[0,"ABBA",-0.00451057333526927],[1,"BAAB",-0.004795667419484483],[2,"BAAB",-0.005565095019553599],[3,"ABBA",-0.00910815875364363],[4,"ABBA",-0.01136795827760214],[5,"ABBA",-0.006186920565153539],[6,"BAAB",-0.006065376525980639],[7,"ABBA",-0.0060114145918940065],[8,"ABBA",-0.005834993300835608],[9,"BAAB",-0.008247533479586327],[10,"BAAB",-0.004470240964990517],[11,"ABBA",-0.011160044693804733],[12,"BAAB",-0.005009455454719605],[13,"BAAB",-0.014993039304762402],[14,"ABBA",-0.007136172823221946],[15,"ABBA",-0.007262154205084185],[16,"BAAB",-0.005222973967887681],[17,"BAAB",-0.003935292887857718],[18,"ABBA",-0.005316368305905367],[19,"BAAB",-0.009858093920969205],[20,"BAAB",-0.008459027523351727],[21,"BAAB",-0.006647842276467966],[22,"BAAB",-0.002957404969003331],[23,"ABBA",-0.004432148897981981]]},{"label":"m8-state-contribution","model":8,"a":"m8-gvb","b":"m8-gvbs","time_reduction_pct":0.934137910256827,"time_reduction_ci_pct":[0.7105140362986595,1.1572581293061268],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67228,"blocks":[[0,"ABBA",-0.00283498671903088],[1,"BAAB",-0.008133617034653635],[2,"BAAB",-0.011346140598981699],[3,"BAAB",-0.009961699477663458],[4,"ABBA",-0.010038564108083991],[5,"ABBA",-0.008404489848564864],[6,"BAAB",-0.009678002656640747],[7,"ABBA",-0.008317200298793771],[8,"ABBA",-0.011293587160216362],[9,"ABBA",-0.013205966276834478],[10,"BAAB",-0.006609881733988565],[11,"ABBA",-0.007572260041186929],[12,"ABBA",-0.006972981325460474],[13,"BAAB",-0.01550541060360339],[14,"ABBA",-0.009354205779303798],[15,"ABBA",-0.01385376638061423],[16,"BAAB",-0.012350735597540694],[17,"BAAB",-0.005085454224587917],[18,"ABBA",-0.010216399964243781],[19,"BAAB",-0.010966645182752786],[20,"BAAB",-0.008318425287876852],[21,"BAAB",-0.011433328660677693],[22,"BAAB",-0.003270438363760754],[23,"ABBA",-0.010522614662231597]]},{"label":"m8-alignment-contribution","model":8,"a":"m8-gvbs","b":"m8-gvbsj","time_reduction_pct":0.633412373856368,"time_reduction_ci_pct":[0.4198945635356499,0.8464723632586879],"adjusted_p":0.0015999200039998,"confirmed_gain":true,"analysis_seed":67229,"blocks":[[0,"BAAB",-0.012298760249211642],[1,"ABBA",-0.00974596141457841],[2,"ABBA",-0.004599551479192807],[3,"ABBA",-0.004809681481320674],[4,"BAAB",-0.004606331111185855],[5,"BAAB",-0.007394914474717084],[6,"ABBA",-0.004333317282287702],[7,"BAAB",-0.010837780686768014],[8,"ABBA",-0.0071467408509403975],[9,"BAAB",-0.0029927775012729987],[10,"ABBA",-0.00809461668376966],[11,"ABBA",-0.004399206939329312],[12,"BAAB",-0.008966723984826532],[13,"BAAB",-0.0018489217057282912],[14,"BAAB",-0.005668214447869318],[15,"BAAB",-0.001901786698007127],[16,"ABBA",-0.0066027476528292455],[17,"ABBA",-0.010575429940682548],[18,"BAAB",-0.008780161233250934],[19,"ABBA",-0.0023364804851480426],[20,"BAAB",-0.006915073459823401],[21,"ABBA",-0.003294392460774919],[22,"ABBA",-0.007231787155523937],[23,"ABBA",-0.007121106593630282]]},{"label":"m2-concurrent-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":0.16294798445453118,"time_reduction_ci_pct":[-0.5040103766218218,0.8254803186117377],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":67230,"blocks":[[0,"ABBA",-0.00010727532112049482],[1,"ABBA",0.014344513259153082],[2,"BAAB",-0.008808563622370777],[3,"BAAB",-0.003375684545904323],[4,"ABBA",-0.0029078086660463136],[5,"BAAB",0.007139993260002385],[6,"BAAB",0.017377107575093614],[7,"BAAB",-0.016422688157038554],[8,"BAAB",0.005562903806054319],[9,"BAAB",-0.006459271234351115],[10,"BAAB",-0.007797954868209579],[11,"BAAB",-0.014664565935361301],[12,"ABBA",-0.014475561298314565],[13,"ABBA",0.007361233071008327],[14,"ABBA",9.643139234976014e-05],[15,"ABBA",-0.0031855306353154133],[16,"BAAB",-0.01268848448918181],[17,"BAAB",0.007106506797595517],[18,"BAAB",0.002519664100944387],[19,"ABBA",-0.0026324105395906993],[20,"ABBA",-0.005963426675145532],[21,"ABBA",0.009858046515883316],[22,"BAAB",-0.005129296732333155],[23,"ABBA",-0.005887290436828669]]},{"label":"m8-concurrent-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":0.18235307225242803,"time_reduction_ci_pct":[-0.45160241207096163,0.8123076292988696],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":67231,"blocks":[[0,"BAAB",0.0021151006907330528],[1,"ABBA",0.009768380441294088],[2,"BAAB",-0.0006478382485667954],[3,"BAAB",0.0010295403743420717],[4,"BAAB",0.004414090423004699],[5,"BAAB",-0.0037842360055631344],[6,"ABBA",-0.008695444358752863],[7,"ABBA",-0.0023833695466953892],[8,"BAAB",-0.01222550648505632],[9,"ABBA",-0.01901956014533189],[10,"BAAB",-0.00930049449108168],[11,"ABBA",-0.010865275916344156],[12,"ABBA",0.002141961163285751],[13,"ABBA",0.013235411965621622],[14,"ABBA",-0.007366755232568924],[15,"BAAB",0.012494701941629703],[16,"ABBA",-0.0014409454320562299],[17,"ABBA",-0.009219364775650586],[18,"ABBA",0.015131617421826855],[19,"BAAB",-0.0003022431949098999],[20,"ABBA",-0.009646794478694277],[21,"BAAB",-2.786999733349025e-05],[22,"ABBA",-0.0009664650028087844],[23,"ABBA",-0.008243330198672136]]}]}, + {"label":"independent-confirmation","power":"performance","requested_frequency_khz":null,"family_size":40,"blocks_per_comparison":36,"warmup_hops":120,"timed_hops_per_process":500,"cadence_ms":10,"source_plan_sha256":"d712af629efa602588fc54f95a1c44caf7a06cae9dcc7cc3bcaeef6b231bf7cf","raw_journal_sha256":"720e813caa586cd277fb7668ada5d563bb46657848ec0edbda6fd4368e3bf8eb","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"final-r1":{"library_sha256":"dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05","benchmark_sha256":"4c4c8c07832a5ccfc2e3dd45b6b48e3c3a1e9c1413f3295da679b31c24a69b94"},"final-r1-minus-m2-g":{"library_sha256":"ee2b3f099039336febb83bcd71392286b6c33d9362f89940df88cc4134625b7e","benchmark_sha256":"e0da9cf4930b21b943785a8d70bdd1c923aecbd48aa0a0d017a9d05c3a7a3b6c"},"final-r1-minus-m2-v":{"library_sha256":"d75387f7628ce4bcc7f3f6a18633a3102d48eb97fdc90cc5627c65656139e4be","benchmark_sha256":"ee301033650be3154731c8eb423c45ec13ebbdabe9fe2b4496aa3dffc2de24fd"},"final-r1-minus-m8-g":{"library_sha256":"4dfb186a48f726433e675131a70583fd08f8f03e7521719b05e7834f6cc23188","benchmark_sha256":"99edb88fc7841430f573596de1fdb24b12cd55f2eabca6eaa8e895f5cc94c6dc"},"final-r1-minus-m8-v":{"library_sha256":"3537aee9bb13e32954d372eac6819a1fa322f1019dcdd080140a54e4b355a249","benchmark_sha256":"3a0e7152565df9bbcba58a1b4ee0b6463aa73e0a9eba52f8150391443004716f"},"final-r1-minus-m8-b":{"library_sha256":"1f35f3b67c401bd02dda9e6fe06e5140e0db71a126ac80c02a443d0f96dfba7d","benchmark_sha256":"8aa70c748618a450368e25f53510dd98f8f89d858d70be6eea77b595ac17c9a8"},"final-r1-minus-m8-s":{"library_sha256":"0392ec457df72a61554a0c1fb568a94b2499eece08d48c2861ca40ae17e2193d","benchmark_sha256":"3842adc2484eb56b3e8d92f22a3b5cf1e2ac1c5e1dc16c7271c76c7ba3d094b1"},"final-r1-minus-m8-j":{"library_sha256":"1c286289d7679b764fb9b2a123276b6ecd09ec5819ad00e1a6352692c7e7632d","benchmark_sha256":"58d1433d442fb10b86baed137fe5e0c111ccf607834f9fcfe3d732615a5c6025"},"previous-full":{"library_sha256":"1c286289d7679b764fb9b2a123276b6ecd09ec5819ad00e1a6352692c7e7632d","benchmark_sha256":"8d0a5a91e9eb8ef3d38f43d244bd6e606025fdc96c4654641c5029beaa869234"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-contribution-G","model":2,"a":"final-r1-minus-m2-g","b":"final-r1","time_reduction_pct":2.210680411968957,"time_reduction_ci_pct":[1.4635957383968057,2.952100828623372],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68100,"blocks":[[0,"ABBA",-0.024339074710106642],[1,"ABBA",-0.012485608063257178],[2,"BAAB",-0.004556079263227402],[3,"BAAB",-0.03131716519200061],[4,"BAAB",-0.034289274218461514],[5,"BAAB",-0.020178723639010132],[6,"ABBA",-0.03135643020729084],[7,"BAAB",-0.026333641110159015],[8,"BAAB",-0.00655221255894964],[9,"ABBA",-0.019835318365156368],[10,"ABBA",-0.02019713898812318],[11,"BAAB",-0.04428831483316032],[12,"BAAB",-0.020461949020920037],[13,"BAAB",-0.022809012069114634],[14,"BAAB",-0.03870999175933164],[15,"ABBA",-0.010917363065578053],[16,"ABBA",-0.0174582183699905],[17,"ABBA",-0.031909868516021185],[18,"BAAB",-0.04495401072447164],[19,"ABBA",-0.023690938830345634],[20,"ABBA",-0.018136624454014042],[21,"BAAB",-0.034790205262783494],[22,"ABBA",-0.010378009244323515],[23,"ABBA",-0.026816454776175634],[24,"BAAB",-0.010535846103620902],[25,"ABBA",-0.04776880715900454],[26,"ABBA",-0.025091931947777417],[27,"ABBA",-0.007374456326773509],[28,"BAAB",-0.05001526609913349],[29,"BAAB",-0.027892955510379847],[30,"BAAB",-0.009627092507404096],[31,"ABBA",-0.002142673620050248],[32,"BAAB",-0.004311440017048159],[33,"BAAB",-0.005040034330791323],[34,"ABBA",-0.02358836713997987],[35,"BAAB",-0.014623078773503089]]},{"label":"m2-contribution-V","model":2,"a":"final-r1-minus-m2-v","b":"final-r1","time_reduction_pct":2.270745775139904,"time_reduction_ci_pct":[1.7197173239018593,2.818684772971769],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68101,"blocks":[[0,"ABBA",-0.024982649750130814],[1,"BAAB",-0.01537781666224936],[2,"ABBA",-0.020338886133116567],[3,"BAAB",-0.03356519810438513],[4,"ABBA",-0.021918969596147662],[5,"BAAB",-0.01577182193230771],[6,"ABBA",-0.023424146626083886],[7,"BAAB",-0.030408543146777732],[8,"BAAB",-0.018026284155495207],[9,"ABBA",-0.021566987185496676],[10,"ABBA",-0.011057852262341957],[11,"BAAB",-0.030061231033419462],[12,"BAAB",-0.01492926729423341],[13,"BAAB",-0.024394807986639854],[14,"ABBA",-0.04186240793532058],[15,"ABBA",-0.0122264355253918],[16,"ABBA",-0.034487226533842535],[17,"ABBA",-0.03455084510142116],[18,"BAAB",-0.028148648052333476],[19,"BAAB",-0.026344795044871],[20,"ABBA",-0.026050322509124046],[21,"BAAB",-0.025257452023533924],[22,"ABBA",-0.008382885130003993],[23,"ABBA",-0.03632139329034028],[24,"BAAB",-0.020914214743960866],[25,"ABBA",-0.031607900903814094],[26,"BAAB",-0.02563269879525619],[27,"ABBA",-0.020316013853812175],[28,"BAAB",-0.018837408865859787],[29,"BAAB",-0.028936471237084555],[30,"BAAB",-0.005108660019376027],[31,"ABBA",-0.01848730622599859],[32,"ABBA",-0.003592289038240554],[33,"ABBA",-0.007868785800017354],[34,"ABBA",-0.04258641365279466],[35,"ABBA",-0.02354769892418878]]},{"label":"m2-versus-baseline","model":2,"a":"baseline","b":"final-r1","time_reduction_pct":4.7230346043217075,"time_reduction_ci_pct":[4.064956710968126,5.376598333727767],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68102,"blocks":[[0,"BAAB",-0.04214152731286781],[1,"ABBA",-0.02212862430706516],[2,"ABBA",-0.02544891464378606],[3,"BAAB",-0.03983605428005616],[4,"ABBA",-0.03619275678755221],[5,"BAAB",-0.0721336471498878],[6,"ABBA",-0.050381420514065293],[7,"BAAB",-0.04362375974788225],[8,"BAAB",-0.03633427349035468],[9,"ABBA",-0.04787158031124819],[10,"ABBA",-0.05357553561656668],[11,"BAAB",-0.06688139875513306],[12,"BAAB",-0.05382473347074768],[13,"BAAB",-0.0618861219949651],[14,"ABBA",-0.06852469570298571],[15,"ABBA",-0.036031833293894325],[16,"BAAB",-0.05674378657397637],[17,"BAAB",-0.06522434811374964],[18,"BAAB",-0.0531511401881307],[19,"ABBA",-0.05558169086974485],[20,"ABBA",-0.048091380402145216],[21,"BAAB",-0.042091291796510305],[22,"ABBA",-0.04525864933203109],[23,"BAAB",-0.04512181721496194],[24,"BAAB",-0.04846189685553545],[25,"ABBA",-0.061893050978026824],[26,"BAAB",-0.049886067332704113],[27,"ABBA",-0.03539783133551262],[28,"ABBA",-0.050780020332008804],[29,"ABBA",-0.04266806443282314],[30,"ABBA",-0.04275264133899932],[31,"ABBA",-0.02828227592233444],[32,"ABBA",-0.04826502609365335],[33,"ABBA",-0.05687210059351202],[34,"ABBA",-0.058431302117934666],[35,"ABBA",-0.049984728873748226]]},{"label":"m2-versus-previous-full","model":2,"a":"previous-full","b":"final-r1","time_reduction_pct":-0.24605192467668235,"time_reduction_ci_pct":[-0.959064326017578,0.46192490419868504],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":68103,"blocks":[[0,"BAAB",-0.0010551976859111702],[1,"ABBA",0.010871471189753004],[2,"ABBA",0.0006975957783745465],[3,"BAAB",-0.0003564370656241865],[4,"ABBA",0.015098494554917963],[5,"BAAB",-0.007051193978269991],[6,"ABBA",-0.002450317026068981],[7,"BAAB",0.01251641465520989],[8,"BAAB",0.023267987534899986],[9,"ABBA",0.022438352472861973],[10,"ABBA",0.0053108097595527875],[11,"BAAB",-0.006370404130787357],[12,"BAAB",0.012764158885848134],[13,"BAAB",-0.015991415306888176],[14,"ABBA",-0.020943474769954257],[15,"ABBA",-0.001803068841000297],[16,"ABBA",0.004274552695876487],[17,"BAAB",-0.013033222410503585],[18,"BAAB",-0.00016359329230447318],[19,"BAAB",0.0038191207255440164],[20,"ABBA",0.012676073389740054],[21,"BAAB",0.006533450189992877],[22,"ABBA",0.003937276887488215],[23,"BAAB",0.01315025669145969],[24,"ABBA",0.021108252505388104],[25,"ABBA",-0.01956945922864673],[26,"BAAB",-0.00564792417202021],[27,"ABBA",0.004506453590271207],[28,"BAAB",-0.016632908172958115],[29,"ABBA",0.008132598255168107],[30,"ABBA",0.023386767366682396],[31,"BAAB",0.0031670814533234187],[32,"ABBA",-0.0038313849160829267],[33,"ABBA",0.011100459542607747],[34,"ABBA",-0.017335001231525256],[35,"ABBA",0.0019472706249946152]]},{"label":"m2-concurrent-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":-0.07660076581303965,"time_reduction_ci_pct":[-0.8379318695691973,0.6789822524875921],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":68104,"blocks":[[0,"BAAB",0.0019033113689073428],[1,"BAAB",0.010381466724992463],[2,"ABBA",0.0076576435819451175],[3,"BAAB",0.012329211776271857],[4,"ABBA",0.02641242685958033],[5,"BAAB",-0.01880203615341287],[6,"BAAB",-0.0012885287352051627],[7,"BAAB",0.020509225254776896],[8,"BAAB",-0.0025513505911159856],[9,"ABBA",0.00033396353695846446],[10,"ABBA",-0.005966478970724208],[11,"ABBA",-0.016566546062699146],[12,"BAAB",-0.013509090781343991],[13,"ABBA",0.0019207525061580505],[14,"ABBA",-0.007242438824271682],[15,"BAAB",0.015868632823337392],[16,"BAAB",-0.010757222642819381],[17,"BAAB",0.010180748306478875],[18,"ABBA",-0.009476591383890806],[19,"ABBA",-0.004849407152176504],[20,"ABBA",0.0004066197465560055],[21,"BAAB",0.010996682380098126],[22,"ABBA",0.0013591503260060476],[23,"BAAB",0.00863692149667258],[24,"BAAB",-0.014163698007328588],[25,"ABBA",-0.014012897533810076],[26,"BAAB",-0.018041770600471196],[27,"ABBA",0.015022891782309403],[28,"ABBA",0.020477747837189086],[29,"ABBA",0.006953609740611837],[30,"BAAB",0.0026713372520933095],[31,"BAAB",0.02613108891754351],[32,"BAAB",-0.013395936019159347],[33,"ABBA",-0.020418788459753916],[34,"BAAB",-0.00604403638563467],[35,"ABBA",0.00449910534936772]]},{"label":"m8-contribution-G","model":8,"a":"final-r1-minus-m8-g","b":"final-r1","time_reduction_pct":1.1789944679492792,"time_reduction_ci_pct":[1.0117007780927723,1.3460054256153486],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68105,"blocks":[[0,"BAAB",-0.010842230367439695],[1,"BAAB",-0.011707839794471079],[2,"ABBA",-0.015145938191843221],[3,"BAAB",-0.012401775576769261],[4,"ABBA",-0.008746754242278597],[5,"ABBA",-0.01058453934764848],[6,"BAAB",-0.008369053570777697],[7,"BAAB",-0.009114918978797957],[8,"BAAB",-0.00894718828487676],[9,"BAAB",-0.011738941606353236],[10,"ABBA",-0.014950132441339152],[11,"BAAB",-0.017412638935770133],[12,"BAAB",-0.008037411296792241],[13,"BAAB",-0.016018621274737237],[14,"ABBA",-0.01468125692725546],[15,"ABBA",-0.015225784495352435],[16,"ABBA",-0.013164593819723706],[17,"BAAB",-0.01033832789626554],[18,"BAAB",-0.01419862962239042],[19,"BAAB",-0.011646051495287833],[20,"ABBA",-0.008668903941150875],[21,"BAAB",-0.01437197037375612],[22,"ABBA",-0.014773045896128295],[23,"BAAB",-0.011806143793563704],[24,"ABBA",-0.013484462671114332],[25,"BAAB",-0.01430668393548835],[26,"ABBA",-0.007023705331418509],[27,"ABBA",-0.010023607491900448],[28,"BAAB",-0.01477356256926947],[29,"BAAB",-0.012770410334505317],[30,"BAAB",-0.013948428439853156],[31,"ABBA",-0.010489455159346787],[32,"ABBA",-0.012379773880661771],[33,"BAAB",-0.012262890487550407],[34,"ABBA",-0.007166839413792979],[35,"ABBA",-0.005437388471577727]]},{"label":"m8-contribution-V","model":8,"a":"final-r1-minus-m8-v","b":"final-r1","time_reduction_pct":1.5626576066237297,"time_reduction_ci_pct":[1.1110459786515592,2.012206789254678],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68106,"blocks":[[0,"BAAB",-0.013724266630559293],[1,"ABBA",-0.011447854365356412],[2,"ABBA",-0.026665782484719076],[3,"BAAB",-0.01840478085629709],[4,"BAAB",-0.014720900201422393],[5,"ABBA",-0.01148162675987957],[6,"BAAB",-0.022089458035518813],[7,"BAAB",-0.006134505617944791],[8,"ABBA",-0.00762728669530101],[9,"BAAB",-0.016247996004087117],[10,"ABBA",-0.004128349961784879],[11,"ABBA",-0.005682898155568867],[12,"BAAB",-0.0140990591147873],[13,"BAAB",-0.007183545945578469],[14,"BAAB",-0.016049898902157786],[15,"BAAB",-0.00790445602521162],[16,"BAAB",-0.018656329378402295],[17,"ABBA",-0.02586891109649261],[18,"BAAB",-0.008891891010298286],[19,"BAAB",-0.010149263257014915],[20,"BAAB",-0.01671477408131654],[21,"BAAB",-0.029233238166409617],[22,"ABBA",-0.003051329067020938],[23,"ABBA",-0.02885104055850876],[24,"ABBA",-0.023351543978494285],[25,"BAAB",-0.0172447406811767],[26,"BAAB",-0.010767906269420759],[27,"BAAB",-0.023403199630242972],[28,"BAAB",-0.030091151022986304],[29,"BAAB",-0.022673946037020446],[30,"BAAB",-0.023053424831058718],[31,"BAAB",-0.015392089669445694],[32,"BAAB",-0.0067603834596366595],[33,"ABBA",-0.006004516267174165],[34,"ABBA",-0.02125809281117466],[35,"ABBA",-0.021988052863503728]]},{"label":"m8-contribution-B","model":8,"a":"final-r1-minus-m8-b","b":"final-r1","time_reduction_pct":1.1139901132824481,"time_reduction_ci_pct":[0.9618024262506131,1.2659439401204287],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68107,"blocks":[[0,"BAAB",-0.00916375784027485],[1,"ABBA",-0.004946978866384199],[2,"ABBA",-0.01456446612879897],[3,"BAAB",-0.014134480802994663],[4,"BAAB",-0.008715539535891667],[5,"BAAB",-0.009158198893167721],[6,"ABBA",-0.008366027478963353],[7,"BAAB",-0.01183036805870553],[8,"BAAB",-0.013440980834162402],[9,"BAAB",-0.007613543460816576],[10,"BAAB",-0.013392752097990153],[11,"ABBA",-0.0113800138406915],[12,"BAAB",-0.009911344280050622],[13,"BAAB",-0.013150198681591755],[14,"ABBA",-0.008588546892975484],[15,"BAAB",-0.011612549225766681],[16,"ABBA",-0.009759142392198172],[17,"BAAB",-0.00961212438202941],[18,"ABBA",-0.016454609206630753],[19,"BAAB",-0.012008248289542185],[20,"BAAB",-0.007904918869023139],[21,"ABBA",-0.014637211135404057],[22,"ABBA",-0.007804805877613815],[23,"ABBA",-0.015033613350192937],[24,"ABBA",-0.01021197652758235],[25,"ABBA",-0.011525946899759075],[26,"ABBA",-0.011085067135077835],[27,"ABBA",-0.014374478764318724],[28,"BAAB",-0.01475787279898959],[29,"ABBA",-0.011948975324880002],[30,"ABBA",-0.011706432393919896],[31,"ABBA",-0.013620152140582913],[32,"BAAB",-0.009496352185409791],[33,"BAAB",-0.008935274462513881],[34,"ABBA",-0.009753238718786314],[35,"ABBA",-0.012686735199578062]]},{"label":"m8-contribution-S","model":8,"a":"final-r1-minus-m8-s","b":"final-r1","time_reduction_pct":1.1316974576439875,"time_reduction_ci_pct":[0.9215979344485814,1.3413514568025975],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68108,"blocks":[[0,"ABBA",-0.019141513120088775],[1,"BAAB",-0.005470654112096807],[2,"ABBA",-0.013199526989581828],[3,"BAAB",-0.016666586378330298],[4,"BAAB",-0.013119139637814055],[5,"ABBA",-0.006190740650066455],[6,"BAAB",-0.0072916305950713875],[7,"BAAB",-0.01059877159073869],[8,"ABBA",-0.010986913333171049],[9,"BAAB",-0.005116209890254667],[10,"ABBA",-0.010805835154098307],[11,"BAAB",-0.008992643655959498],[12,"BAAB",-0.00715335310342627],[13,"BAAB",-0.013523278707216965],[14,"BAAB",-0.008269531495640574],[15,"BAAB",-0.013127918964633107],[16,"ABBA",-0.011721621123947423],[17,"BAAB",-0.013069594410819747],[18,"BAAB",-0.010618313833815573],[19,"BAAB",-0.013295010946405216],[20,"BAAB",-0.012688622487763108],[21,"ABBA",-0.016133530970220418],[22,"BAAB",-0.0069657622908206995],[23,"BAAB",-0.015257646911779887],[24,"ABBA",-0.010698622965107322],[25,"BAAB",-0.01563059238726532],[26,"ABBA",-0.014511319098368112],[27,"ABBA",-0.01358521128035771],[28,"ABBA",-0.016435284268826476],[29,"BAAB",-0.01682043038532984],[30,"BAAB",-0.009515109730307893],[31,"BAAB",-0.007523904078198127],[32,"BAAB",-0.009708641247244094],[33,"ABBA",-0.010442114002453162],[34,"ABBA",-0.006463564012891463],[35,"ABBA",-0.008994813272177053]]},{"label":"m8-contribution-J","model":8,"a":"final-r1-minus-m8-j","b":"final-r1","time_reduction_pct":0.8832517490894753,"time_reduction_ci_pct":[0.6981590940547067,1.067999402554931],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68109,"blocks":[[0,"BAAB",-0.008814375909956202],[1,"ABBA",-0.005927466090241088],[2,"ABBA",-0.009517848034038181],[3,"ABBA",-0.014516128262388099],[4,"BAAB",-0.008692052315218121],[5,"BAAB",-0.007236085810164431],[6,"BAAB",-0.005264936103451236],[7,"BAAB",-0.004782987927479403],[8,"BAAB",-0.010935580717854169],[9,"BAAB",-0.0034937808843259234],[10,"ABBA",-0.009831504088357612],[11,"BAAB",-0.011781256846860686],[12,"BAAB",-0.005431026251726769],[13,"ABBA",-0.01237327477820366],[14,"BAAB",-0.0071448910637305916],[15,"BAAB",-0.008210561812178612],[16,"BAAB",-0.007517064831009262],[17,"ABBA",-0.011638344652817613],[18,"BAAB",-0.010766286173690222],[19,"BAAB",-0.0041175565615137934],[20,"BAAB",-0.00803848214097932],[21,"BAAB",-0.014121065614673235],[22,"BAAB",-0.010570016500051916],[23,"BAAB",-0.005995741559839197],[24,"BAAB",-0.014001085947740447],[25,"BAAB",-0.012706167205125709],[26,"ABBA",-0.013789788883274517],[27,"BAAB",-0.009032793784979835],[28,"BAAB",-0.013660899508900806],[29,"ABBA",-0.0059357364515312035],[30,"BAAB",-0.00935814928200775],[31,"ABBA",-0.003296311601071038],[32,"BAAB",-0.006557137028905282],[33,"ABBA",-0.007849384921800782],[34,"BAAB",-0.00921577955925306],[35,"ABBA",-0.00726164495858688]]},{"label":"m8-versus-baseline","model":8,"a":"baseline","b":"final-r1","time_reduction_pct":5.177257516463596,"time_reduction_ci_pct":[4.798964689990937,5.554047150643282],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68110,"blocks":[[0,"BAAB",-0.0497113768155431],[1,"ABBA",-0.047607568248990616],[2,"ABBA",-0.05966118346495815],[3,"ABBA",-0.055006799820701356],[4,"BAAB",-0.048729562705409735],[5,"ABBA",-0.04923261279318311],[6,"BAAB",-0.04775041165899965],[7,"BAAB",-0.051558475537615174],[8,"BAAB",-0.06535843551178064],[9,"BAAB",-0.045050434787549457],[10,"ABBA",-0.052857938099206525],[11,"ABBA",-0.04607282617281846],[12,"BAAB",-0.0507372949524601],[13,"BAAB",-0.054860231137017886],[14,"ABBA",-0.05734919696576005],[15,"BAAB",-0.05643440985398366],[16,"BAAB",-0.06422665957935773],[17,"BAAB",-0.04333543202009772],[18,"BAAB",-0.053522329361476974],[19,"BAAB",-0.05921209756285419],[20,"BAAB",-0.04010581999120653],[21,"ABBA",-0.04968012979901461],[22,"BAAB",-0.06190774761570224],[23,"BAAB",-0.060834067910850984],[24,"ABBA",-0.05177765713721718],[25,"BAAB",-0.06154826714349919],[26,"ABBA",-0.051134522687734475],[27,"BAAB",-0.04227272596266188],[28,"BAAB",-0.05549647260619857],[29,"ABBA",-0.05824471346397707],[30,"BAAB",-0.05105257991614508],[31,"BAAB",-0.0596078935099084],[32,"BAAB",-0.05137062599097325],[33,"ABBA",-0.05888336435379195],[34,"ABBA",-0.039179206229779676],[35,"ABBA",-0.06242154042186613]]},{"label":"m8-versus-previous-full","model":8,"a":"previous-full","b":"final-r1","time_reduction_pct":0.8539482054420788,"time_reduction_ci_pct":[0.6771729649851843,1.030408820484352],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":68111,"blocks":[[0,"ABBA",-0.008194458586950188],[1,"ABBA",-0.007250592358954906],[2,"ABBA",-0.00844926385009578],[3,"BAAB",-0.01537391297505148],[4,"BAAB",-0.0059403999214313686],[5,"BAAB",-0.001657417757842132],[6,"BAAB",-0.006897157927947346],[7,"BAAB",-0.006171417469205674],[8,"BAAB",-0.011667955096112953],[9,"BAAB",-0.004634982127230453],[10,"ABBA",-0.008785587651403288],[11,"ABBA",-0.010154055307745567],[12,"ABBA",-0.004006836961716952],[13,"ABBA",-0.012627139577546903],[14,"BAAB",-0.010721229371272102],[15,"ABBA",-0.011578782978446965],[16,"BAAB",-0.0068677431644047085],[17,"BAAB",-0.007640578310185696],[18,"ABBA",-0.007039167778424125],[19,"ABBA",-0.010330953640603548],[20,"BAAB",-0.008435273983925868],[21,"BAAB",-0.010363261001377879],[22,"ABBA",-0.0066863354964878784],[23,"BAAB",-0.008329994917692748],[24,"BAAB",-0.008339007274674702],[25,"BAAB",-0.01290877095495985],[26,"ABBA",-0.009595388783108047],[27,"BAAB",-0.013095981760174251],[28,"BAAB",-0.012629050764821214],[29,"ABBA",-0.010484937970525573],[30,"BAAB",-0.010502536902010253],[31,"ABBA",-0.0032850857186468223],[32,"BAAB",-0.00819127128490667],[33,"ABBA",-0.009342627611917247],[34,"ABBA",-0.003926015277646753],[35,"ABBA",-0.006636311870758856]]},{"label":"m8-concurrent-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":0.19835546174361562,"time_reduction_ci_pct":[-0.3354337674770669,0.7293049071458335],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":68112,"blocks":[[0,"ABBA",0.007937017535649477],[1,"ABBA",-0.005781336055286705],[2,"ABBA",0.0018932896158088373],[3,"BAAB",0.008811887437400865],[4,"BAAB",-0.0003865693523813949],[5,"ABBA",0.010626436285182417],[6,"BAAB",0.004109321986978191],[7,"ABBA",-0.0023138996535467054],[8,"BAAB",-0.01562782755938281],[9,"BAAB",-0.0017606307331145133],[10,"ABBA",0.00041554969141041094],[11,"BAAB",0.0043331775884831785],[12,"ABBA",0.008303982452638458],[13,"BAAB",-0.009824491543741917],[14,"BAAB",-0.0019011444091213516],[15,"ABBA",-0.012096057638556224],[16,"BAAB",-0.02102563194891683],[17,"BAAB",0.01159136912696425],[18,"BAAB",-0.009729642135218286],[19,"BAAB",0.0016285206571366422],[20,"BAAB",0.010422790030201757],[21,"ABBA",-0.003284409912778426],[22,"BAAB",-0.001995527968253652],[23,"BAAB",-0.015456159700186965],[24,"ABBA",-0.01079807774585048],[25,"ABBA",-0.009216796120770601],[26,"ABBA",0.0015124175651696564],[27,"BAAB",0.00014866733453440507],[28,"ABBA",0.0011260599150658107],[29,"ABBA",-0.013823226681800263],[30,"ABBA",-0.007652552742262481],[31,"BAAB",-0.00038865285947767595],[32,"BAAB",0.0037908235227554167],[33,"ABBA",-0.013811850542011044],[34,"BAAB",0.018885631755880112],[35,"ABBA",-0.010141338017698778]]}]}, + {"label":"original-power-guard","power":"original","requested_frequency_khz":null,"family_size":40,"blocks_per_comparison":12,"warmup_hops":120,"timed_hops_per_process":300,"cadence_ms":10,"source_plan_sha256":"c4b1cbbe505487ab969c47c44e64861a903f3aa0e075a5182ce44ff8de8fa5ef","raw_journal_sha256":"2e7d7e03601046ac9cbd8e875ac0603343e0aaf1dc61bd252b4095657581f78f","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"final-r1":{"library_sha256":"dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05","benchmark_sha256":"4c4c8c07832a5ccfc2e3dd45b6b48e3c3a1e9c1413f3295da679b31c24a69b94"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-original-power-gain","model":2,"a":"baseline","b":"final-r1","time_reduction_pct":6.699626799355363,"time_reduction_ci_pct":[1.1476883596109544,11.93974632533632],"adjusted_p":0.10101010101010102,"confirmed_gain":false,"analysis_seed":69700,"blocks":[[0,"BAAB",-0.042472017971414956],[1,"ABBA",-0.12829717221855338],[2,"BAAB",-0.1046140455102935],[3,"ABBA",0.02111981184241858],[4,"ABBA",-0.13297902358597108],[5,"ABBA",-0.0806640868099229],[6,"ABBA",-0.05001606664864627],[7,"ABBA",-0.08643742204097887],[8,"BAAB",-0.010384794407394857],[9,"ABBA",-0.051435716684793666],[10,"BAAB",-0.10731065652856746],[11,"BAAB",-0.05866174706648816]]},{"label":"m2-original-power-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":1.2475508730798057,"time_reduction_ci_pct":[-4.342994019487012,6.538562553191863],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":69701,"blocks":[[0,"ABBA",0.05203284951062823],[1,"ABBA",-0.04702783296771888],[2,"BAAB",0.008103653943565556],[3,"ABBA",0.017411004416598992],[4,"ABBA",-0.05511200971363133],[5,"ABBA",-0.0688119165873269],[6,"ABBA",0.02961277546424435],[7,"BAAB",0.015591849911486032],[8,"BAAB",0.030660298560708597],[9,"ABBA",-0.009989908974981811],[10,"ABBA",-0.04269496178344056],[11,"BAAB",-0.0804235765298018]]},{"label":"m8-original-power-gain","model":8,"a":"baseline","b":"final-r1","time_reduction_pct":-1.5420090204468329,"time_reduction_ci_pct":[-8.246405949342606,4.74714143642082],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":69702,"blocks":[[0,"BAAB",-0.033371485223604495],[1,"ABBA",0.039799344320560884],[2,"ABBA",0.013868331694486181],[3,"BAAB",-0.02111547255201275],[4,"BAAB",0.00733197618017155],[5,"ABBA",0.08077057902047731],[6,"ABBA",-0.029766014885001302],[7,"BAAB",0.03921231061094782],[8,"ABBA",0.11669012493010124],[9,"BAAB",-0.06951502424069056],[10,"BAAB",0.006066155250368716],[11,"ABBA",0.03365808101111774]]},{"label":"m8-original-power-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":0.11284291201733021,"time_reduction_ci_pct":[-5.733187633490067,5.635644073223267],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":69703,"blocks":[[0,"BAAB",0.04158724827875387],[1,"ABBA",-0.011115238979865383],[2,"ABBA",-0.05151959216232681],[3,"BAAB",-0.05339027324265744],[4,"ABBA",0.020902633734499628],[5,"BAAB",0.053859461349972826],[6,"BAAB",-0.06683294590062319],[7,"BAAB",-0.012907484380557567],[8,"BAAB",0.012771799197168194],[9,"BAAB",-0.0486187939745437],[10,"ABBA",0.04579354551457626],[11,"ABBA",0.05592084525742807]]}]}, + {"label":"original-power-followup","power":"original","requested_frequency_khz":null,"family_size":40,"blocks_per_comparison":36,"warmup_hops":120,"timed_hops_per_process":300,"cadence_ms":10,"source_plan_sha256":"a794212c09b34772d5e098caca039e99d1f80c180d302a3d2e7aed1850a88b0e","raw_journal_sha256":"331445e796da65b332114d005deade16841e964823a97608d3558bd13108cd22","binary_hashes":{"baseline":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"control":{"library_sha256":"d93412d53f530ca0e26024998ae2e2ff0be202797bb7c0aaa7b988ec0d140e28","benchmark_sha256":"2cea2e57a3c5ece5b9b99f03ab02e45ff5fc71ab015d49fed6e70b0280b9356e"},"final-linkfix":{"library_sha256":"dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05","benchmark_sha256":"19c1ea336bc35ca445ec8c5bd6c6a243848cf3dd8328791ab3f2d15a4c6afbcd"}},"input_sha256":{"original-00.f32":"9e66149f77765f60d1246c055ede2183cbdf6a45ee27fc7951708c825285ee54","original-06.f32":"9e837ce0f74fcb583c4a256bb23fc3e6e73911ad6741b259d67dea4964df496e","original-11.f32":"912bdf2552582c2530cf61dc1e719e9b270ba0fefb0218060463df02d2f8c36c","low-03.f32":"a66c835ebd08be18fc5e14c96767e9e8260ebc190444db7c446b75a670ac9c91","silence.f32":"970394d675c644864192321660d55e46abc8dd633b03fc003b41a5bc085d2783","long-mechanical.f32":"48cbc3f39f4db802c873a01c1d02a4907fb146c71c8ef6839dd6e79015755b58"},"comparisons":[{"label":"m2-original-power-gain","model":2,"a":"baseline","b":"final-linkfix","time_reduction_pct":5.141504943992025,"time_reduction_ci_pct":[2.5563707252567403,7.658056752788189],"adjusted_p":0.00199990000499975,"confirmed_gain":true,"analysis_seed":71937,"blocks":[[0,"BAAB",-0.01106119522495595],[1,"BAAB",-0.09746925385632571],[2,"BAAB",-0.001140390758108309],[3,"BAAB",-0.04578071362907833],[4,"BAAB",-0.05739495845661113],[5,"ABBA",-0.12398375483822417],[6,"BAAB",0.01850088892007798],[7,"ABBA",-0.07953586158921289],[8,"BAAB",-0.006145642151071435],[9,"ABBA",-0.05475185986534167],[10,"BAAB",0.05831146649630843],[11,"BAAB",-0.06629165277132192],[12,"ABBA",-0.1278273259234135],[13,"BAAB",-0.025370830848232592],[14,"ABBA",-0.045567103551529355],[15,"ABBA",-0.007368220069657251],[16,"ABBA",-0.13594005361383196],[17,"BAAB",-0.06323397351520776],[18,"ABBA",-0.0215197086468913],[19,"ABBA",-0.024487778934084777],[20,"ABBA",-0.09858334279602746],[21,"BAAB",-0.030320481506105865],[22,"ABBA",-0.10238988871539459],[23,"BAAB",-0.12373828024732003],[24,"ABBA",0.012509936600660234],[25,"ABBA",-0.05992094481640444],[26,"ABBA",-0.07485857469667082],[27,"BAAB",-0.08002643482339517],[28,"ABBA",-0.060495607265816785],[29,"ABBA",-0.03214692040611195],[30,"BAAB",-0.06105099346794572],[31,"ABBA",0.0062799797342855904],[32,"BAAB",-0.05980610385109971],[33,"BAAB",-0.056232661532479994],[34,"ABBA",-0.12098315958459147],[35,"BAAB",-0.04040009996088902]]},{"label":"m2-original-power-aa","model":2,"a":"baseline","b":"control","time_reduction_pct":-0.22664581489713065,"time_reduction_ci_pct":[-3.9906996540607587,3.401164097153264],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":71938,"blocks":[[0,"BAAB",0.06409903269902813],[1,"BAAB",-0.01786812950626107],[2,"BAAB",0.05285470974182925],[3,"ABBA",0.028305451092780914],[4,"BAAB",-0.054486355189198976],[5,"ABBA",-0.011891569462490238],[6,"ABBA",0.08678086196456009],[7,"ABBA",-0.10330009102480704],[8,"BAAB",0.06426842413167144],[9,"ABBA",0.006592585079377344],[10,"BAAB",0.08325050295869825],[11,"BAAB",0.012652574706269279],[12,"ABBA",0.024239427824416324],[13,"BAAB",0.014805918758275657],[14,"ABBA",-0.05024593180093659],[15,"ABBA",-0.054591652580154255],[16,"ABBA",0.0318130994928889],[17,"ABBA",0.019176651519230432],[18,"ABBA",-0.09753918720543109],[19,"BAAB",0.03627182641506128],[20,"BAAB",0.0295870792541996],[21,"BAAB",-0.24042343798361107],[22,"ABBA",0.020577226633966612],[23,"BAAB",0.000484753028211809],[24,"ABBA",0.03586817284955532],[25,"ABBA",-0.007963624828628517],[26,"BAAB",0.012636692332161303],[27,"ABBA",-0.030070811164062166],[28,"ABBA",0.01059761107839559],[29,"ABBA",0.05012404128629552],[30,"BAAB",0.04353031846603219],[31,"ABBA",0.09059551008698971],[32,"ABBA",0.035191462662007233],[33,"ABBA",-0.05676784805925585],[34,"ABBA",-0.032499088450998435],[35,"ABBA",-0.015156036956902515]]},{"label":"m8-original-power-gain","model":8,"a":"baseline","b":"final-linkfix","time_reduction_pct":1.507644284142795,"time_reduction_ci_pct":[-1.240277144062385,4.180980059398365],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":71939,"blocks":[[0,"ABBA",0.004295914657180777],[1,"ABBA",-0.039489811134278976],[2,"ABBA",-0.08575606515999962],[3,"ABBA",-0.04815644378257053],[4,"BAAB",-0.0960588872001566],[5,"BAAB",0.002738674295455917],[6,"ABBA",-0.026602379521025208],[7,"BAAB",0.11640433643239553],[8,"BAAB",-0.07076862010053937],[9,"BAAB",-0.0010141145929566978],[10,"ABBA",-0.017302808291606735],[11,"BAAB",-0.009730304019154487],[12,"ABBA",-0.11168338848558523],[13,"ABBA",0.022266343265753146],[14,"BAAB",-0.028350679833540268],[15,"ABBA",-0.010859658784327089],[16,"ABBA",-0.08497710681164755],[17,"BAAB",0.011601758500758435],[18,"BAAB",-0.003836824700219147],[19,"BAAB",0.034397745960569916],[20,"ABBA",0.044617055977594515],[21,"ABBA",-0.10732215877044309],[22,"BAAB",0.014640110389997562],[23,"BAAB",0.02773560867513082],[24,"BAAB",-0.0070434836581878026],[25,"BAAB",-0.08202919646759148],[26,"BAAB",-0.007933954929252307],[27,"BAAB",-0.014132666717738081],[28,"ABBA",0.025016217892057782],[29,"BAAB",-0.006896341866125763],[30,"BAAB",0.019731714834793787],[31,"BAAB",-0.0012135022151163024],[32,"ABBA",0.003059370163407445],[33,"ABBA",-0.016665316465203434],[34,"BAAB",0.012692155220662128],[35,"BAAB",-0.008258212378956173]]},{"label":"m8-original-power-aa","model":8,"a":"baseline","b":"control","time_reduction_pct":1.3661046956326417,"time_reduction_ci_pct":[-1.0055912617178864,3.6821112436757564],"adjusted_p":1.0,"confirmed_gain":false,"analysis_seed":71940,"blocks":[[0,"ABBA",-0.022964160897554025],[1,"BAAB",-0.007890514775760166],[2,"ABBA",-0.03792606927155292],[3,"BAAB",0.013987736044806453],[4,"BAAB",-0.01809621083843818],[5,"BAAB",0.019034435468805944],[6,"ABBA",0.004051332687255064],[7,"BAAB",0.044392435356034786],[8,"ABBA",-0.026251876705032096],[9,"ABBA",-0.01719425597443318],[10,"ABBA",-0.00203478563050512],[11,"BAAB",-0.022137578492743823],[12,"BAAB",0.003626679750465904],[13,"BAAB",0.0098357126273567],[14,"BAAB",-0.10097215135075233],[15,"ABBA",0.013593937808378913],[16,"BAAB",-0.026899480709497346],[17,"BAAB",0.05549315104445991],[18,"BAAB",0.044953072868361206],[19,"BAAB",0.037769979302760034],[20,"ABBA",0.034849919816201516],[21,"ABBA",-0.03475774297877836],[22,"BAAB",-0.0946988762680212],[23,"ABBA",-0.04200383621191619],[24,"ABBA",0.023536241563975102],[25,"BAAB",-0.046197657842027055],[26,"BAAB",0.02590293450298421],[27,"ABBA",-0.04313796174933834],[28,"ABBA",-0.027135306132309224],[29,"BAAB",-0.04763327557548584],[30,"BAAB",0.043816193658346575],[31,"ABBA",-0.05257391696010056],[32,"BAAB",-0.011009545749314675],[33,"ABBA",-0.0817154774197271],[34,"BAAB",-0.023133211210173425],[35,"ABBA",-0.08366770656214272]]}]} + ] +} diff --git a/optimized_inference/validation/i7_7700t_final.json b/optimized_inference/validation/i7_7700t_final.json new file mode 100644 index 0000000..f764474 --- /dev/null +++ b/optimized_inference/validation/i7_7700t_final.json @@ -0,0 +1,1359 @@ +{ + "schema_version": 1, + "created_utc": "2026-10-27T10:21:42.239219+00:00", + "cpu": "Intel Core i7-7700T", + "compiler": "GCC 14.2.0", + "baseline_commit": "afa8292f3b8083c3daadd06dbcfe4ff877dd3172", + "post_measurement_build_fix": { + "utc": "2026-10-27T10:17:55.486125+00:00", + "reason": "Static PGO GENERATE consumer failed to link __gcov symbols. Propagate only the profiling-generation link option to static consumers. Shared and final release compilation/link options are unchanged.", + "measured_library_sha256": "dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05", + "before_cmake_sha256": "0d58e93c8f358550f1a27a70069febd7335f18035446fa7f9abd18253c4479f6", + "after_cmake_sha256": "f1b2de1f1d0e566e032f73cc227f3b97a6f9f3f8f6d7d22176d13718ef1369cd", + "failed_static_log": "/home/varyagnord/projects/dpdfnet-7700t/.local/i7-7700t-final-2026-10-27/results/validate-final-static-failed-before-linkfix.log", + "confirmation_results_unchanged": true, + "failed_static_log_sha256": "02aa9e2a93bf2f564df5bfbab63e2d7d079a3b919645c82b53570cac64e3d535", + "fresh_shared_build_byte_identical_to_measured": true, + "fresh_shared_library_sha256": "dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05", + "new_production_build": "/home/varyagnord/projects/dpdfnet-7700t/.local/i7-7700t-final-2026-10-27/builds/final-linkfix", + "completed_utc": "2026-10-27T10:19:27.799041+00:00" + }, + "production_library_sha256": "dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05", + "production_source_files_sha256": { + "CMakeLists.txt": "8d63506c1b4ebad13065166d22c0c2110bd2f5e07a64d67c8bcdb7ed2da4c3f6", + "src/common/avx2.c": "886dc736cb017ea45aac2ba08680cdad76400c049a6be2cbf46904c1a96281b5", + "src/common/int8_kernels.inc": "4e126f3ef7cd043f2db373efc7dc645151df55a4f3ce3a27d57732f21259d847", + "src/private/namespace8.h": "66458494d201f27eb17d85712f106969770b3653faec4385615ca7e64cfaaedb", + "src/models/dpdfnet2_48khz_hr/generated_model.c": "b937a23fab206864d51cf60dceac53e13ab51fb0bd8fb49975f710563e88f3da", + "src/models/dpdfnet8_48khz_hr/generated_model.c": "e6fb16e60d4b95608971b31166fe6e2cfba207b538d73e852608ef53f4903ead" + }, + "models": { + "2": { + "mask": "GV", + "whole": { + "time_reduction_pct": 4.7230346043217075, + "time_reduction_ci_pct": [ + 4.064956710968126, + 5.376598333727767 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 0.9536024996666667, + "sd": 0.010764959428912466, + "median": 0.953107269, + "min": 0.930747792, + "max": 0.974403026 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.14207825, + "sd": 0.0335214511130612, + "median": 1.1384135, + "min": 1.055672, + "max": 1.247254 + }, + "observed_max_ms": 1.581548, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 99, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 0.9085676971111111, + "sd": 0.009518995610017076, + "median": 0.9102749880000001, + "min": 0.887897018, + "max": 0.926316866 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.0974079027777777, + "sd": 0.03250189490387488, + "median": 1.0971495, + "min": 1.027954, + "max": 1.181377 + }, + "observed_max_ms": 1.521652, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 106, + "major_faults": 0 + } + }, + "contributions": { + "G": { + "time_reduction_pct": 2.210680411968957, + "time_reduction_ci_pct": [ + 1.4635957383968057, + 2.952100828623372 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 0.9291106414166667, + "sd": 0.00990664397134193, + "median": 0.928029797, + "min": 0.912807156, + "max": 0.948247346 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.1153949027777779, + "sd": 0.03144996322090137, + "median": 1.1183535, + "min": 1.060355, + "max": 1.183111 + }, + "observed_max_ms": 1.325711, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 91, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 0.9085676971111111, + "sd": 0.009518995610017076, + "median": 0.9102749880000001, + "min": 0.887897018, + "max": 0.926316866 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.0974079027777777, + "sd": 0.03250189490387488, + "median": 1.0971495, + "min": 1.027954, + "max": 1.181377 + }, + "observed_max_ms": 1.521652, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 106, + "major_faults": 0 + } + }, + "V": { + "time_reduction_pct": 2.270745775139904, + "time_reduction_ci_pct": [ + 1.7197173239018593, + 2.818684772971769 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 0.9296798506388889, + "sd": 0.010712730777289623, + "median": 0.929880985, + "min": 0.908053252, + "max": 0.947434228 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.1108131388888889, + "sd": 0.028014939454304125, + "median": 1.113747, + "min": 1.038242, + "max": 1.17521 + }, + "observed_max_ms": 1.369964, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 104, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 0.9085676971111111, + "sd": 0.009518995610017076, + "median": 0.9102749880000001, + "min": 0.887897018, + "max": 0.926316866 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.0974079027777777, + "sd": 0.03250189490387488, + "median": 1.0971495, + "min": 1.027954, + "max": 1.181377 + }, + "observed_max_ms": 1.521652, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 106, + "major_faults": 0 + } + } + }, + "versus_previous_full": { + "time_reduction_pct": -0.24605192467668235, + "time_reduction_ci_pct": [ + -0.959064326017578, + 0.46192490419868504 + ], + "adjusted_p": 1.0, + "confirmed_gain": false, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 0.90633879325, + "sd": 0.009192289361851857, + "median": 0.9067761480000001, + "min": 0.892149592, + "max": 0.923792456 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.088015, + "sd": 0.031144797204371213, + "median": 1.0911795, + "min": 1.015971, + "max": 1.156631 + }, + "observed_max_ms": 1.322443, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 92, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 0.9085676971111111, + "sd": 0.009518995610017076, + "median": 0.9102749880000001, + "min": 0.887897018, + "max": 0.926316866 + }, + "run_p99_ms": { + "n": 72, + "mean": 1.0974079027777777, + "sd": 0.03250189490387488, + "median": 1.0971495, + "min": 1.027954, + "max": 1.181377 + }, + "observed_max_ms": 1.521652, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 106, + "major_faults": 0 + } + }, + "regression_cases": 65, + "regression_hops": 147711 + }, + "8": { + "mask": "GVBSJ", + "whole": { + "time_reduction_pct": 5.177257516463596, + "time_reduction_ci_pct": [ + 4.798964689990937, + 5.554047150643282 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 2.001467180416667, + "sd": 0.017927484262125322, + "median": 2.008032922, + "min": 1.968522234, + "max": 2.031132602 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.2396295833333335, + "sd": 0.03756339210700369, + "median": 2.238533, + "min": 2.144666, + "max": 2.321544 + }, + "observed_max_ms": 3.823805, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 352, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "contributions": { + "G": { + "time_reduction_pct": 1.1789944679492792, + "time_reduction_ci_pct": [ + 1.0117007780927723, + 1.3460054256153486 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.920453171361111, + "sd": 0.005934611263344976, + "median": 1.920664048, + "min": 1.90405438, + "max": 1.931621922 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.160338152777778, + "sd": 0.031217270475847915, + "median": 2.1592260000000003, + "min": 2.089246, + "max": 2.224063 + }, + "observed_max_ms": 2.517956, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 376, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "V": { + "time_reduction_pct": 1.5626576066237297, + "time_reduction_ci_pct": [ + 1.1110459786515592, + 2.012206789254678 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.927993503, + "sd": 0.019254257313968508, + "median": 1.920734377, + "min": 1.894722366, + "max": 1.956081552 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.1629289305555557, + "sd": 0.03844486404179749, + "median": 2.165048, + "min": 2.067293, + "max": 2.256181 + }, + "observed_max_ms": 2.543012, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 386, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "B": { + "time_reduction_pct": 1.1139901132824481, + "time_reduction_ci_pct": [ + 0.9618024262506131, + 1.2659439401204287 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.9191924515833334, + "sd": 0.005991038093290404, + "median": 1.918359323, + "min": 1.90369694, + "max": 1.932773192 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.1551216944444445, + "sd": 0.03165665949680841, + "median": 2.1550775, + "min": 2.051358, + "max": 2.209851 + }, + "observed_max_ms": 2.449138, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 350, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "S": { + "time_reduction_pct": 1.1316974576439875, + "time_reduction_ci_pct": [ + 0.9215979344485814, + 1.3413514568025975 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.9195394031388888, + "sd": 0.007808794383702505, + "median": 1.919860992, + "min": 1.90475371, + "max": 1.950738588 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.1650242083333335, + "sd": 0.034744685893374046, + "median": 2.16697, + "min": 2.104904, + "max": 2.264737 + }, + "observed_max_ms": 2.681587, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 331, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "J": { + "time_reduction_pct": 0.8832517490894753, + "time_reduction_ci_pct": [ + 0.6981590940547067, + 1.067999402554931 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.9147241876111112, + "sd": 0.006487976111516768, + "median": 1.914621691, + "min": 1.900812596, + "max": 1.936213224 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.149757111111111, + "sd": 0.0347852126379755, + "median": 2.1493425, + "min": 2.076029, + "max": 2.285999 + }, + "observed_max_ms": 2.526006, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 360, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + } + }, + "versus_previous_full": { + "time_reduction_pct": 0.8539482054420788, + "time_reduction_ci_pct": [ + 0.6771729649851843, + 1.030408820484352 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 1.9141567021111112, + "sd": 0.005355698353860582, + "median": 1.9143583560000001, + "min": 1.901863108, + "max": 1.928939482 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.1457656666666667, + "sd": 0.03238124363417462, + "median": 2.1439895, + "min": 2.071387, + "max": 2.218314 + }, + "observed_max_ms": 2.385803, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 367, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 1.8978113221388888, + "sd": 0.006097239407554772, + "median": 1.8985538229999999, + "min": 1.883590336, + "max": 1.915091244 + }, + "run_p99_ms": { + "n": 72, + "mean": 2.140235222222222, + "sd": 0.035507753256183855, + "median": 2.1421365000000003, + "min": 2.050053, + "max": 2.216167 + }, + "observed_max_ms": 2.43829, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 314, + "major_faults": 0 + } + }, + "regression_cases": 65, + "regression_hops": 147711 + } + }, + "final_confirmation_round": 1, + "protocol": { + "blocks": 36, + "fresh_processes_per_variant_per_model": 72, + "warmup_hops": 120, + "timed_hops": 500, + "cadence_ms": 10, + "family_size": 40, + "power": "performance governor+EPP, original800000..3800000kHz bounds on CPU2+6", + "all_runs_retained": true, + "unit": "independent randomized mirrored block", + "statistical_functions_unchanged": true + }, + "selection": "Full G/V subsets for2 and G/V/B/S subsets for8, plus full-setJ; family32 with concurrent A/A. Discovery requested3.6GHz, final confirmation uncapped.", + "pilot": "Initial identical-binary control under uncappedperformance gave marginal falsegain .8046% for2; stopped before optimization data, all evidence retained. Revised discovery frequencycontrol before collection.", + "quality": { + "historical_suite": false, + "all_every_hop_spectra_and_states_bitwise_equal": true, + "case_manifest_sha256": "1d7fa9cd10147eec6cdcf438ce6651d945fc3e9dd7ba67b7fb4bcebf56fd8175", + "new_perceptual_scores": false + }, + "original_power_guard": { + "2": { + "time_reduction_pct": 6.699626799355363, + "time_reduction_ci_pct": [ + 1.1476883596109544, + 11.93974632533632 + ], + "adjusted_p": 0.10101010101010102, + "confirmed_gain": false, + "complete_blocks": 12, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 24, + "mean": 3.1533145909583333, + "sd": 0.12498806604605996, + "median": 3.179743765, + "min": 2.906714977, + "max": 3.326296767 + }, + "run_p99_ms": { + "n": 24, + "mean": 3.8842522083333333, + "sd": 0.027859138687923748, + "median": 3.8852805, + "min": 3.834018, + "max": 3.921315 + }, + "observed_max_ms": 4.918539, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 239, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 24, + "mean": 2.9426531690833335, + "sd": 0.15443591778666318, + "median": 2.9878522849999998, + "min": 2.648629497, + "max": 3.20409158 + }, + "run_p99_ms": { + "n": 24, + "mean": 3.6685689166666666, + "sd": 0.025844445062749025, + "median": 3.664079, + "min": 3.636196, + "max": 3.727258 + }, + "observed_max_ms": 3.82935, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 247, + "major_faults": 0 + } + }, + "8": { + "time_reduction_pct": -1.5420090204468329, + "time_reduction_ci_pct": [ + -8.246405949342606, + 4.74714143642082 + ], + "adjusted_p": 1.0, + "confirmed_gain": false, + "complete_blocks": 12, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 24, + "mean": 4.625202018208333, + "sd": 0.21584337538464474, + "median": 4.681381484999999, + "min": 3.978271443, + "max": 5.016593547 + }, + "run_p99_ms": { + "n": 24, + "mean": 8.404056416666666, + "sd": 0.0742634448772492, + "median": 8.4393155, + "min": 8.271306, + "max": 8.503616 + }, + "observed_max_ms": 8.615851, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 696, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 24, + "mean": 4.696160542666667, + "sd": 0.16128875197814518, + "median": 4.699897138, + "min": 4.40511203, + "max": 5.026191427 + }, + "run_p99_ms": { + "n": 24, + "mean": 7.940815416666666, + "sd": 0.032119169294467516, + "median": 7.942011, + "min": 7.882074, + "max": 8.014464 + }, + "observed_max_ms": 8.100067, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 587, + "major_faults": 0 + } + } + }, + "confirmation_decisions": [ + { + "round": 1, + "created_utc": "2026-10-27T09:52:31.386674+00:00", + "current_masks": { + "2": "GV", + "8": "GVBSJ" + }, + "proposed_masks": { + "2": "GV", + "8": "GVBSJ" + }, + "requires_next_round": false, + "models": { + "2": { + "mask": "GV", + "whole_gain_confirmed": true, + "whole_time_reduction_pct": 4.7230346043217075, + "whole_ci": [ + 4.064956710968126, + 5.376598333727767 + ], + "contributions": { + "G": { + "time_reduction_pct": 2.210680411968957, + "time_reduction_ci_pct": [ + 1.4635957383968057, + 2.952100828623372 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + }, + "V": { + "time_reduction_pct": 2.270745775139904, + "time_reduction_ci_pct": [ + 1.7197173239018593, + 2.818684772971769 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + } + }, + "unconfirmed_factors": [], + "extra_late_completions": false, + "extra_over10ms": false, + "median_p99_ratio": 0.9637530651208898, + "versus_previous_full": { + "time_reduction_pct": -0.24605192467668235, + "time_reduction_ci_pct": [ + -0.959064326017578, + 0.46192490419868504 + ], + "adjusted_p": 1.0 + }, + "within_half_percent_of_previous_supported": false, + "decision": "Accept; whole-model gain and every retained contribution confirmed" + }, + "8": { + "mask": "GVBSJ", + "whole_gain_confirmed": true, + "whole_time_reduction_pct": 5.177257516463596, + "whole_ci": [ + 4.798964689990937, + 5.554047150643282 + ], + "contributions": { + "G": { + "time_reduction_pct": 1.1789944679492792, + "time_reduction_ci_pct": [ + 1.0117007780927723, + 1.3460054256153486 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + }, + "V": { + "time_reduction_pct": 1.5626576066237297, + "time_reduction_ci_pct": [ + 1.1110459786515592, + 2.012206789254678 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + }, + "B": { + "time_reduction_pct": 1.1139901132824481, + "time_reduction_ci_pct": [ + 0.9618024262506131, + 1.2659439401204287 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + }, + "S": { + "time_reduction_pct": 1.1316974576439875, + "time_reduction_ci_pct": [ + 0.9215979344485814, + 1.3413514568025975 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + }, + "J": { + "time_reduction_pct": 0.8832517490894753, + "time_reduction_ci_pct": [ + 0.6981590940547067, + 1.067999402554931 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true + } + }, + "unconfirmed_factors": [], + "extra_late_completions": false, + "extra_over10ms": false, + "median_p99_ratio": 0.9569376462174113, + "versus_previous_full": { + "time_reduction_pct": 0.8539482054420788, + "time_reduction_ci_pct": [ + 0.6771729649851843, + 1.030408820484352 + ], + "adjusted_p": 0.00199990000499975 + }, + "within_half_percent_of_previous_supported": true, + "decision": "Accept; whole-model gain and every retained contribution confirmed" + } + }, + "all_runs_retained": true + } + ], + "test_builds": { + "release": { + "total": 34, + "passed": 28, + "skipped": 6, + "log_sha256": "291a5e9c71ae44f74674d2a07cca45905db21c54cf74fedd493dd55fca283a2e" + }, + "final-asan": { + "total": 34, + "passed": 28, + "skipped": 6, + "log_sha256": "c7537aa1f4a050b376ec5893def5280daeedfb8080a9344223c21574c48b30ac" + }, + "final-static": { + "total": 33, + "passed": 27, + "skipped": 6, + "log_sha256": "bb284fda2c07da2d719d8c01c1418a6caa76d08e15ec4f02bbe848f187492305" + }, + "final-no-vnni": { + "total": 28, + "passed": 28, + "skipped": 0, + "log_sha256": "ea1dee34b2c1d9a7b80b22c0ee6985acbc8720601773b227390296ad8d60e0d1" + } + }, + "vnni_objects_baseline_identical": { + "2": true, + "8": true + }, + "emulated_cpu_checks": [ + { + "cpu": "Nehalem", + "test": "cpu_contract", + "expect": 0, + "returncode": 0, + "stdout": "{\"cpu_supported\":0,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":true}\n", + "stderr": "" + }, + { + "cpu": "SandyBridge", + "test": "cpu_contract", + "expect": 0, + "returncode": 0, + "stdout": "{\"cpu_supported\":0,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":true}\n", + "stderr": "" + }, + { + "cpu": "Haswell,-avx2", + "test": "cpu_contract", + "expect": 0, + "returncode": 0, + "stdout": "{\"cpu_supported\":0,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":true}\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]\nqemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]\n" + }, + { + "cpu": "Haswell,-fma", + "test": "cpu_contract", + "expect": 0, + "returncode": 0, + "stdout": "{\"cpu_supported\":0,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":true}\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]\nqemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]\n" + }, + { + "cpu": "Haswell,-xsave", + "test": "cpu_contract", + "expect": 0, + "returncode": 0, + "stdout": "{\"cpu_supported\":0,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":true}\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]\nqemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]\n" + }, + { + "cpu": "Haswell,-f16c,-bmi1,-bmi2,-popcnt,-aes,-pclmulqdq,-abm,-rdrand", + "test": "cpu_contract", + "expect": 1, + "returncode": 0, + "stdout": "{\"cpu_supported\":1,\"metadata_and_state_init\":true,\"unsupported_create_rejected\":null}\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]\nqemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]\n" + }, + { + "cpu": "Haswell,-f16c,-bmi1,-bmi2,-popcnt,-aes,-pclmulqdq,-abm,-rdrand", + "test": "public_contract", + "returncode": 0, + "stdout": "Public API, both graphs, weight ownership, reset and in-place contracts passed.\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.hle [bit 4]\nqemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11]\n" + } + ], + "vnni_emulation": [ + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model2_fused_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model2_pair_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model2_wide_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model2_pair_fused_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model8_fused_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model8_pair_contract_vnni", + "returncode": 77, + "stdout": "", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\nAVX-VNNI assembly oracle requires AVX-VNNI\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model2_int8_dispatch_contract", + "returncode": 0, + "stdout": "256 exact dispatch cases; selected AVX2\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\n" + }, + { + "cpu": "max,+avx-vnni,-avx512f", + "test": "model8_int8_dispatch_contract", + "returncode": 0, + "stdout": "256 exact dispatch cases; selected AVX2\n", + "stderr": "qemu-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EAX.avx-vnni [bit 4]\n" + } + ], + "vnni_execution_covered": false, + "exports": [ + "dpdfnet_cpu_supported", + "dpdfnet_create", + "dpdfnet_destroy", + "dpdfnet_get_model_info", + "dpdfnet_init_state", + "dpdfnet_owned_bytes", + "dpdfnet_process" + ], + "needed": [ + "0x0000000000000001 (NEEDED) Shared library: [libm.so.6]", + "0x0000000000000001 (NEEDED) Shared library: [libc.so.6]" + ], + "all_settings_restored": true, + "factor_groups": { + "G": "bounded depthwise loads/permutations", + "V": "AVX2/FMA graph target plus no-math-errno", + "B": "model8 selected AVX2batchfusion plusquantize64", + "S": "model8 direct state writes", + "J": "branch alignment on selected backend, all VNNI objects excluded and baseline-identical" + }, + "limits": [ + "One host/compiler; selectedsix latencyinputs", + "V andB internal edits not separatelyisolated", + "No hard worst-case bound", + "Original historical65-file corpus unavailable; independent65cases used", + "VNNI performance not measured on physical VNNIhardware" + ], + "original_power_followup": { + "2": { + "time_reduction_pct": 5.141504943992025, + "time_reduction_ci_pct": [ + 2.5563707252567403, + 7.658056752788189 + ], + "adjusted_p": 0.00199990000499975, + "confirmed_gain": true, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 3.0791319756805557, + "sd": 0.1502285225887149, + "median": 3.1027774714999996, + "min": 2.728634387, + "max": 3.32114001 + }, + "run_p99_ms": { + "n": 72, + "mean": 3.8651420416666666, + "sd": 0.031134948984474754, + "median": 3.868055, + "min": 3.80206, + "max": 3.925865 + }, + "observed_max_ms": 6.009811, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 615, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 2.9215807305972223, + "sd": 0.1464464197591933, + "median": 2.940816945, + "min": 2.606284163, + "max": 3.22031184 + }, + "run_p99_ms": { + "n": 72, + "mean": 3.662593916666667, + "sd": 0.032599579041501424, + "median": 3.6555655, + "min": 3.628072, + "max": 3.853713 + }, + "observed_max_ms": 8.387916, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 547, + "major_faults": 0 + } + }, + "8": { + "time_reduction_pct": 1.507644284142795, + "time_reduction_ci_pct": [ + -1.240277144062385, + 4.180980059398365 + ], + "adjusted_p": 1.0, + "confirmed_gain": false, + "complete_blocks": 36, + "ci_level": 0.99875, + "baseline": { + "run_means_ms": { + "n": 72, + "mean": 4.651846171763889, + "sd": 0.1976900058470401, + "median": 4.666401799999999, + "min": 3.877391673, + "max": 5.067277447 + }, + "run_p99_ms": { + "n": 72, + "mean": 8.362756902777777, + "sd": 0.082493173464926, + "median": 8.316605, + "min": 8.251828, + "max": 8.517941 + }, + "observed_max_ms": 8.714649, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 1547, + "major_faults": 0 + }, + "candidate": { + "run_means_ms": { + "n": 72, + "mean": 4.582533332472222, + "sd": 0.21708634752370676, + "median": 4.601467155, + "min": 4.018279397, + "max": 5.040164233 + }, + "run_p99_ms": { + "n": 72, + "mean": 7.933859680555556, + "sd": 0.02546258012983664, + "median": 7.928215, + "min": 7.886744, + "max": 7.990534 + }, + "observed_max_ms": 8.538139, + "over_10ms": 0, + "late": 0, + "involuntary_switches": 1440, + "major_faults": 0 + } + } + }, + "original_power_followup_protocol": { + "created_utc": "2026-10-27T10:25:33.304424+00:00", + "reason": "Post-study review found12 blocks cannot attain adjusted randomization p<.05 under family40. For6/6 orientations, symmetry requires at least2 extreme assignments:80/924=.08658. For unequal orientation counts there are at most792 assignments, so even1 extreme gives40/792=.050505. Thus all attainable adjusted p values exceed.05. Original guard retained; fresh independent36-block follow-up, locked library/power policy.", + "original_guard_blocks": 12, + "new_blocks": 36, + "hops": 300, + "family_size_unchanged": 40, + "already_tested_confirmatory_contrasts": 17, + "new_contrasts": 4, + "maximum_total_confirmatory_contrasts_after_followup": 21, + "unused_planned_simplification_rounds_cancelled": true, + "no_further_followups_or_optional_stopping": true, + "candidate_changes": false, + "seed": 71937, + "reason_original_superseded": "Post-study review found12 blocks cannot attain adjusted randomization p<.05 under family40. At maximum conditional assignment count choose(12,6)=924, the minimum two-sided adjusted p is80/924=.08658. Original guard retained; fresh independent36-block follow-up, same locked library and power policy.", + "original_guard_minimum_attainable_adjusted_p_optimistic_bound": 0.050505050505050504, + "balanced_6_6_minimum_adjusted_p": 0.08658008658008658, + "explanation_corrected_utc": "2026-10-27T10:27:27.642103+00:00", + "schedule_counts_seed_candidate_and_thresholds_unchanged": true + }, + "study_status": "All fixed observations and compatibility checks complete; reports include the original12-block guard and the independently planned36-block follow-up.", + "accepted_configuration_cleanup": { + "created_utc": "2026-10-27T16:02:37.610566+00:00", + "request": "Keep only tested beneficial factors for each model; remove unused experimental production configuration.", + "masks": { + "2": "GV", + "8": "GVBSJ" + }, + "changes": [ + "Remove global and per-model experimental branch-alignment switches; retain alignment only for backend8", + "Remove redundant both-model conditional around accepted V compile option", + "Preserve AVX2 fallback and VNNI sources/dispatch unchanged" + ], + "before_cmake_sha256": "f1b2de1f1d0e566e032f73cc227f3b97a6f9f3f8f6d7d22176d13718ef1369cd", + "after_cmake_sha256": "8d63506c1b4ebad13065166d22c0c2110bd2f5e07a64d67c8bcdb7ed2da4c3f6", + "measured_library_sha256": "dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05", + "fresh_pgo_library_byte_identical_to_measured": true, + "fresh_pgo_library_sha256": "dddffd31da6a8393a49f1fc7302e97a2ad38f7507afd91bb4b2a092f574c2a05", + "vnni_objects_baseline_identical": { + "2": true, + "8": true + }, + "release_tests": { + "total": 34, + "passed": 28, + "skipped": 6, + "log_sha256": "291a5e9c71ae44f74674d2a07cca45905db21c54cf74fedd493dd55fca283a2e" + }, + "verified_utc": "2026-10-27T16:04:04.927422+00:00" + }, + "additional_build_checks": { + "gcc12_pgo": { + "created_utc": "2026-10-27T17:41:02.115790+00:00", + "scope": "Additional PR-readiness review; no optimization or runtime-source changes", + "compiler": "gcc-12 (Debian 12.4.0-5) 12.4.0", + "fresh_pgo_build": true, + "tests": { + "total": 34, + "passed": 28, + "skipped": 6, + "skip_reason": "Native CPU lacks AVX-VNNI", + "log_sha256": "212e4cea3552f86609b6c2e09489eae2b843a8fe671dd89bd919ee92d3c1755e" + }, + "library_sha256": "8649ce1207c00f92c52b2e00d7ce03015645953b1957ae6df0878256fdae949c", + "exports": [ + "dpdfnet_cpu_supported", + "dpdfnet_create", + "dpdfnet_destroy", + "dpdfnet_get_model_info", + "dpdfnet_init_state", + "dpdfnet_owned_bytes", + "dpdfnet_process" + ], + "needed": [ + "0x0000000000000001 (NEEDED) Shared library: [libm.so.6]", + "0x0000000000000001 (NEEDED) Shared library: [libc.so.6]" + ], + "performance_claims_remain_gcc14_only": true, + "runtime_review_blocking_findings": [], + "remaining_limits": [ + "No native VNNI execution on this host; VNNI objects are baseline-identical in measured GCC14 build", + "No cross-CPU speedup claim; target measurements are i7-7700T", + "Historical corpus unavailable; independent65-case spectrum/state regression used" + ], + "publication_pending": [ + "Commits and push not performed", + "PR body must state performance policy, confidence intervals, skips and corpus scope", + "Full raw artifact is local; attach or provide accessible evidence when publishing" + ], + "target_branch": { + "repository": "ceva-ip/DPDFNet", + "branch": "optimized-inference", + "head_sha": "afa8292f3b8083c3daadd06dbcfe4ff877dd3172", + "comparison": "identical to local study baseline; no rebase needed as checked", + "checked_utc": "2026-10-27T17:44:40.268744+00:00" + }, + "existing_ci": "Native integration: Ubuntu22.04 shared PGO, static, AVX2-only, ASan/UBSan; new-PR CI has not run because no commits/push/PR were created." + } + }, + "ci_pgo_generation_local_checks": { + "shared": { + "kind": "shared", + "mode": "GENERATE", + "all_contracts_and_kernel_benchmarks_linked": true, + "total": 34, + "passed": 28, + "skipped": 6, + "log_sha256": "4c5dc010dd4704225e1bb16e682b5538c1ab5fc6661b582b9ad5ece7049e0d34", + "compiler": "GCC12.4" + }, + "static": { + "kind": "static", + "mode": "GENERATE", + "all_contracts_and_kernel_benchmarks_linked": true, + "total": 33, + "passed": 27, + "skipped": 6, + "log_sha256": "589ad13190c2a988c3a49d3c6003afd6e12e3f32eba466bc8abc3a3ca6d87a63", + "compiler": "GCC12.4" + } + }, + "portable_block_observations": { + "path": "i7_7700t_blocks.json", + "sha256": "0ea7e7ef1623010c898ca98e4fddbfc0efb0cee219c4bfac9df8d22c1851be8e", + "contrasts": 57, + "includes_failed_initial_control": true, + "individual_hop_samples_in_local_archive": true + } +} From 30899a72736bff5bf0616886b58f54f89c24acbb Mon Sep 17 00:00:00 2001 From: Varyag Nord <124573691+varyagnord@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:38:13 +0300 Subject: [PATCH 5/5] Exercise shared and static PGO linkage in native CI Build and run every contract in GENERATE mode, including linking kernel benchmark executables, before training fresh separate shared/static PGO releases. Add the static PGO matrix entry and retain CMake/CTest logs as workflow artifacts. --- .github/workflows/native-integration.yml | 33 +++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/native-integration.yml b/.github/workflows/native-integration.yml index 639b022..f530abb 100644 --- a/.github/workflows/native-integration.yml +++ b/.github/workflows/native-integration.yml @@ -16,6 +16,10 @@ jobs: include: - name: Release shared (PGO) pgo: true + shared: 'ON' + - name: Release static (PGO) + pgo: true + shared: 'OFF' - name: Release static pgo: false config: '-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF' @@ -36,9 +40,25 @@ jobs: run: python3 tools/generate_vnni.py --check - name: Verify both model weights run: sha256sum -c models/SHA256SUMS + - name: Configure PGO generation with all contracts enabled + if: matrix.pgo + run: >- + cmake -S . -B build/ci-generate -DCMAKE_BUILD_TYPE=Release + -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DBUILD_TESTING=ON + -DDPDF_BUILD_KERNEL_BENCHMARKS=ON + -DDPDF_PGO_MODE=GENERATE + -DDPDF_PROFILE_DIR="$PWD/build/ci-generate/profiles" + - name: Link every PGO generation executable + if: matrix.pgo + run: cmake --build build/ci-generate --parallel 2 + - name: Run PGO generation contracts + if: matrix.pgo + run: ctest --test-dir build/ci-generate --output-on-failure --parallel 1 - name: Build recommended PGO release and run contracts if: matrix.pgo - run: python3 tools/build.py --build-dir build/ci --jobs 2 + run: >- + python3 tools/build.py --build-dir build/ci --jobs 2 + --cmake-arg=-DBUILD_SHARED_LIBS=${{ matrix.shared }} - name: Configure static or sanitizer build if: '!matrix.pgo' run: cmake -S . -B build/ci ${{ matrix.config }} -DDPDF_PGO_MODE=OFF -DBUILD_TESTING=ON @@ -48,3 +68,14 @@ jobs: - name: Run contracts for both models if: '!matrix.pgo' run: ctest --test-dir build/ci --output-on-failure --parallel 1 + - name: Preserve configuration and contract logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: native-contract-logs-${{ strategy.job-index }} + path: | + optimized_inference/build/ci*/CMakeCache.txt + optimized_inference/build/ci*/Testing/Temporary/LastTest.log + optimized_inference/build/ci*/Testing/Temporary/LastTestsFailed.log + if-no-files-found: ignore + retention-days: 14