Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/bench/evidence/20261107T1155Z-payoff/x925/wolfram-rank-ngA-query.wl # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / bench / evidence / 20261107T1155Z-payoff / x925 / wolfram-rank-ngA-query.wl` 20 lines ยท 3474 bytes Raw Blame History 1 s = <|{"LICM+ROT","bcopy"}->{0.6846,0.6739,0.7932},{"LICM+ROT","arith"}->{0.9964,0.9950,0.9968},{"LICM+ROT","branch"}->{0.9374,0.9359,0.9405},{"LICM+ROT","isort"}->{0.6837,0.6825,0.6865},{"LICM+ROT","sort"}->{0.6818,0.6802,0.6853},{"LICM+ROT","matmul"}->{0.7611,0.7511,0.7807},{"LICM+ROT","sieve"}->{0.7826,0.7777,0.7888},{"LICM+ROT","linear"}->{1.0246,1.0223,1.0262},{"BCE","bcopy"}->{0.7719,0.6647,0.7798},{"BCE","isort"}->{0.9775,0.9748,0.9795},{"BCE","sort"}->{0.9809,0.9796,0.9817},{"BCE","matmul"}->{1.0346,1.0156,1.0457},{"BCE","sieve"}->{0.9747,0.9663,0.9803},{"BCE","linear"}->{0.9875,0.9862,0.9889},{"VEC","bcopy"}->{0.0632,0.0623,0.0648},{"DIV","arith"}->{0.3333,0.3317,0.3344},{"IFC","branch"}->{0.8952,0.8939,0.8981},{"CALL","leafcall"}->{0.3634,0.3618,0.3653},{"INL","leafcall"}->{0.8369,0.8320,0.8456},{"ISEL","linear"}->{0.9077,0.9047,0.9092}|>; 2 aa = <|"bcopy"->{1.0005,0.9991,1.0015},"arith"->{1.0000,0.9951,1.0011},"branch"->{1.0003,0.9977,1.0016},"isort"->{0.9992,0.9970,1.0026},"sort"->{0.9995,0.9902,1.0008},"leafcall"->{0.9999,0.9985,1.0011},"matmul"->{0.9969,0.9867,1.0035},"sieve"->{0.9997,0.9969,1.0019},"linear"->{0.9995,0.9985,1.0004}|>; 3 fibA = <|"fib40"->0.578,"fib38"->0.591|>; fibE = <|"fib40"->0.35,"fib38"->0.357|>; 4 f = <|"bcopy"->{(18-11)/18,(11-7)/11},"arith"->{(17-11)/17,0},"branch"->{(18-12)/18,0},"isort"->{(28-14)/28,(14-7)/14},"sort"->{(24-14)/24,(14-7)/14},"matmul"->{(22-13)/22,(13-9)/13},"sieve"->{(19-9)/19,(9-4)/9},"linear"->{(20-17)/20,(17-13)/17}|>; 5 aaok = Select[Keys[aa], !(aa[#][[2]] <= 1 <= aa[#][[3]] || 0.99 <= aa[#][[1]] <= 1.01) &]; 6 eL = Table[(1 - s[{"LICM+ROT", k}][[1]])/f[k][[1]], {k, {"bcopy","arith","branch","isort","sort","matmul","sieve","linear"}}]; 7 eB = Table[(1 - s[{"BCE", k}][[1]])/f[k][[2]], {k, {"bcopy","isort","sort","matmul","sieve","linear"}}]; 8 e = Median[Join[eL, eB]]; 9 p = <|{"sha","LICM+ROT"}->9/3650, {"sha","BCE"}->136/3650, {"sha","CALL"}->52/3650, {"chacha","LICM+ROT"}->1072/6871, {"chacha","BCE"}->1902/6871, {"chacha","CALL"}->178/6871|>; 10 mod = Association[Table[k -> 1 - e p[k], {k, Keys[p]}]]; 11 passes = {"LICM+ROT","BCE","VEC","DIV","IFC","CALL","INL","ISEL","REC"}; 12 meas[P_] := Join[Table[s[k][[1]], {k, Select[Keys[s], #[[1]] == P &]}], If[P == "CALL", Values[fibA], {}], If[P == "REC", Table[fibE[c]/fibA[c], {c, {"fib40","fib38"}}], {}]]; 13 modl[P_] := Table[mod[k], {k, Select[Keys[mod], #[[2]] == P &]}]; 14 gm[x_] := 1/(Times @@ x)^(1/13); 15 nd = Select[Keys[s], s[#][[2]] <= 1 <= s[#][[3]] &]; 16 slower = Select[Keys[s], s[#][[2]] > 1 &]; 17 rank = SortBy[Table[{P, N[gm[meas[P]]], N[gm[Join[meas[P], modl[P]]]], Length[meas[P]], Length[modl[P]]}, {P, passes}], -#[[3]] &]; 18 all = N[gm[Join[Flatten[Table[meas[P], {P, passes}]], Values[mod]]]]; 19 bc = <|"bcopy"->{29.2980,30.3800},"arith"->{3.4147,3.4452},"branch"->{1.8503,1.8642},"isort"->{1.9670,1.9825},"sort"->{2.7221,2.7187},"leafcall"->{3.3627,3.3951},"matmul"->{1.6421,1.6634},"sieve"->{2.0241,2.0737},"linear"->{1.2391,1.2452}|>; 20 {"aa_failing" -> aaok, "aa_intervals" -> aa, "omc/gccO2 this round over baseline round" -> N[Association[Table[c -> bc[c][[1]]/bc[c][[2]], {c, Keys[bc]}]], 4], "geomean of that" -> N[GeometricMean[Table[bc[c][[1]]/bc[c][[2]], {c, Keys[bc]}]], 4], "eL" -> N[eL, 4], "eB" -> N[eB, 4], "e" -> N[e, 4], "modeled" -> N[mod, 4], "no_difference" -> nd, "slower" -> slower, "rank {pass, gain measured, gain measured+modeled, n measured, n modeled}" -> rank, "all passes together (product of every factor)" -> all}