Profiling results ----------------- Total cpu time observed: 20284ms (out of 20588ms) Number of samples taken: 166 (once every 122ms) (Hiding functions with self<1.0% and local<2.0%: 2 of 90 hidden) =============================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee =============================================================================== ??? [5] 100.0% [1] 20284(100.0%) 0(0.0%) profile-thunk16 ...e/pkgs/profile-lib/main.rkt:9:0 run [3] 100.0% ------------------------------------------------------------------------------- ??? [5] 100.0% [2] 112(0.6%) 0(0.0%) baseline-error .../use-places/src/points.rkt:192:0 argmin [4] 100.0% ------------------------------------------------------------------------------- profile-thunk16 [1] 100.0% [3] 20284(100.0%) 0(0.0%) run ...et-7.2/share/pkgs/profile-lib/main.rkt:39:2 ??? [5] 100.0% ------------------------------------------------------------------------------- baseline-error [2] 100.0% [4] 112(0.6%) 0(0.0%) argmin ...acket-7.2/collects/racket/list.rkt:765:0 ??? [6] 100.0% ------------------------------------------------------------------------------- run [3] 50.0% [5] 20284(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk16 [1] 50.0% run-improve47 [7] 38.5% prepare-points-intervals [9] 11.3% baseline-error [2] 0.3% ------------------------------------------------------------------------------- argmin [4] 100.0% [6] 112(0.6%) 0(0.0%) ??? ...ies/herbie/use-places/src/points.rkt:193:27 loop [65] 100.0% ------------------------------------------------------------------------------- ??? [5] 100.0% [7] 15600(76.9%) 0(0.0%) run-improve47 ...use-places/src/mainloop.rkt:346:0 simplify! [8] 97.9% prepare-points-intervals [9] 1.1% ??? [47] 1.0% ------------------------------------------------------------------------------- run-improve47 [7] 100.0% [8] 15278(75.3%) 0(0.0%) simplify! ...bie/use-places/src/mainloop.rkt:224:0 ??? [10] 100.0% ------------------------------------------------------------------------------- run-improve47 [7] 3.5% ??? [5] 96.5% [9] 4740(23.4%) 0(0.0%) prepare-points-intervals ...s/src/points.rkt:110:0 loop [11] 100.0% ------------------------------------------------------------------------------- simplify! [8] 100.0% [10] 15278(75.3%) 0(0.0%) ??? ...erbie/use-places/src/core/simplify.rkt:31:0 for-loop [12] 99.3% loop [18] 0.7% ------------------------------------------------------------------------------- prepare-points-intervals [9] 100.0% [11] 4740(23.4%) 0(0.0%) loop ...ies/herbie/use-places/src/points.rkt:123:4 loop [13] 82.2% ??? [14] 17.8% ------------------------------------------------------------------------------- ??? [10] 100.0% [12] 15176(74.8%) 0(0.0%) for-loop .../use-places/src/core/simplify.rkt:51:2 ??? [15] 97.0% precompute-phase [17] 2.1% loop [18] 1.0% ------------------------------------------------------------------------------- loop [11] 100.0% [13] 3894(19.2%) 200(1.0%) loop ...lies/herbie/use-places/src/points.rkt:81:2 ??? [16] 94.9% ------------------------------------------------------------------------------- loop [11] 100.0% [14] 846(4.2%) 0(0.0%) ??? ...lies/herbie/use-places/src/points.rkt:106:2 ??? [22] 88.4% do-curry [56] 11.6% ------------------------------------------------------------------------------- for-loop [12] 100.0% [15] 14714(72.5%) 0(0.0%) ??? ...erbie/use-places/src/core/simplify.rkt:92:0 find-matches [19] 56.1% for-loop [20] 43.9% ------------------------------------------------------------------------------- loop [13] 100.0% [16] 3694(18.2%) 102(0.5%) ??? ...es/herbie/use-places/src/programs.rkt:115:2 ??? [21] 66.7% ??? [22] 30.5% ------------------------------------------------------------------------------- for-loop [12] 100.0% [17] 314(1.5%) 0(0.0%) precompute-phase ...es/src/core/simplify.rkt:101:0 for-loop [23] 100.0% ------------------------------------------------------------------------------- ??? [10] 40.8% for-loop [12] 59.2% [18] 250(1.2%) 0(0.0%) loop ...ie/use-places/src/core/extraction.rkt:25:2 for-loop [24] 100.0% ------------------------------------------------------------------------------- ??? [15] 100.0% [19] 8252(40.7%) 0(0.0%) find-matches ...-places/src/core/simplify.rkt:84:0 for-loop [25] 100.0% ------------------------------------------------------------------------------- ??? [15] 100.0% [20] 6462(31.9%) 106(0.5%) for-loop .../use-places/src/core/simplify.rkt:93:2 for-loop [26] 98.4% ------------------------------------------------------------------------------- ??? [16] 100.0% [21] 2464(12.1%) 0(0.0%) ??? ...t-7.2/collects/racket/private/kw.rkt:594:14 ??? [27] 100.0% ------------------------------------------------------------------------------- ??? [14] 39.9% ??? [16] 60.1% [22] 1876(9.2%) 116(0.6%) ??? ...tract/private/arrow-higher-order.rkt:360:33 mk-ival [28] 60.1% sample-multi-bounded [29] 33.7% ------------------------------------------------------------------------------- precompute-phase [17] 100.0% [23] 314(1.5%) 0(0.0%) for-loop ...use-places/src/core/simplify.rkt:102:2 set-precompute! [30] 100.0% ------------------------------------------------------------------------------- loop [18] 100.0% [24] 250(1.2%) 102(0.5%) for-loop ...se-places/src/core/extraction.rkt:29:4 for-loop [31] 59.2% ------------------------------------------------------------------------------- for-loop [25] 49.4% find-matches [19] 50.6% [25] 8252(40.7%) 104(0.5%) for-loop .../use-places/src/core/simplify.rkt:86:8 for-loop [25] 49.4% match-e [32] 49.4% ------------------------------------------------------------------------------- for-loop [20] 100.0% [26] 6356(31.3%) 0(0.0%) for-loop .../use-places/src/core/simplify.rkt:96:4 merge-egraph-nodes! [42] 56.6% dedup-children! [52] 34.7% mk-enode-rec! [37] 4.7% pattern-substitute [38] 4.0% ------------------------------------------------------------------------------- ??? [21] 100.0% [27] 2464(12.1%) 102(0.5%) ??? ...tract/private/arrow-higher-order.rkt:364:33 ival-add [33] 86.9% ival-sub [39] 9.0% ------------------------------------------------------------------------------- ??? [22] 100.0% [28] 1128(5.6%) 0(0.0%) mk-ival ...bie/use-places/src/biginterval.rkt:65:0 bf [34] 100.0% ------------------------------------------------------------------------------- ??? [22] 100.0% [29] 632(3.1%) 324(1.6%) sample-multi-bounded ...places/src/points.rkt:15:0 random-ranges [36] 48.7% ------------------------------------------------------------------------------- for-loop [23] 100.0% [30] 314(1.5%) 0(0.0%) set-precompute! ...ces/src/core/simplify.rkt:110:0 for-loop [35] 100.0% ------------------------------------------------------------------------------- for-loop [24] 100.0% [31] 148(0.7%) 0(0.0%) for-loop ...e-places/src/core/extraction.rkt:37:16 for-loop [40] 100.0% ------------------------------------------------------------------------------- for-loop [50] 35.7% for-loop [25] 64.3% [32] 8148(40.2%) 926(4.6%) match-e ...bie/use-places/src/core/ematch.rkt:39:0 for-loop [41] 87.8% constant? [81] 4.9% variable? [44] 0.8% ??? [47] 0.4% ------------------------------------------------------------------------------- ??? [27] 100.0% [33] 2140(10.6%) 202(1.0%) ival-add ...e/use-places/src/biginterval.rkt:101:0 bfadd [43] 90.6% ------------------------------------------------------------------------------- mk-ival [28] 100.0% [34] 1128(5.6%) 270(1.3%) bf ...ath-lib/math/private/bigfloat/mpfr.rkt:601:2 ??? [54] 47.5% new-mpfr [53] 28.5% ------------------------------------------------------------------------------- set-precompute! [30] 100.0% [35] 314(1.5%) 0(0.0%) for-loop ...use-places/src/core/simplify.rkt:112:2 setfindf [48] 64.3% merge-egraph-nodes! [42] 35.7% ------------------------------------------------------------------------------- sample-multi-bounded [29] 100.0% [36] 308(1.5%) 0(0.0%) random-ranges ...e/use-places/src/common.rkt:171:0 build--> [45] 100.0% ------------------------------------------------------------------------------- for-loop [26] 100.0% [37] 298(1.5%) 0(0.0%) mk-enode-rec! ...-places/src/core/egraph.rkt:117:0 hash-has-key? [46] 100.0% ------------------------------------------------------------------------------- pattern-substitute [38] 29.8% for-loop [26] 70.2% [38] 252(1.2%) 0(0.0%) pattern-substitute ...es/src/core/matcher.rkt:46:0 return/no-unsupplied [49] 40.5% pattern-substitute [38] 29.8% variable? [44] 29.8% ------------------------------------------------------------------------------- ??? [27] 100.0% [39] 222(1.1%) 102(0.5%) ival-sub ...e/use-places/src/biginterval.rkt:107:0 bfadd [43] 54.1% ------------------------------------------------------------------------------- for-loop [31] 100.0% [40] 148(0.7%) 148(0.7%) for-loop ...e-places/src/core/extraction.rkt:41:23 ------------------------------------------------------------------------------- match-e [32] 100.0% [41] 7714(38.0%) 3328(16.4%) for-loop ...e/use-places/src/core/ematch.rkt:52:11 for-loop [50] 58.2% loop [65] 4.1% procedure-reduce-keyword-arity-mask [57] 3.3% foldr [61] 2.6% do-curry [56] 2.1% ??? [75] 1.4% make-curried [58] 1.4% foldl [76] 0.6% ------------------------------------------------------------------------------- for-loop [35] 1.5% merge-egraph-nodes! [42] 2.0% for-loop [59] 2.8% for-loop [26] 93.6% [42] 3712(18.3%) 0(0.0%) merge-egraph-nodes! ...s/src/core/egraph.rkt:145:0 loop! [51] 73.6% update-leader! [55] 14.8% dedup-children! [52] 6.7% for-loop [59] 2.8% merge-egraph-nodes! [42] 2.0% ------------------------------------------------------------------------------- ival-sub [39] 5.8% ival-add [33] 94.2% [43] 2058(10.1%) 0(0.0%) bfadd ...-lib/math/private/bigfloat/mpfr.rkt:821:4 new-mpfr [53] 68.7% ??? [54] 31.3% ------------------------------------------------------------------------------- pattern-substitute [38] 43.1% match-e [32] 56.9% [44] 348(1.7%) 0(0.0%) variable? ...se-places/src/syntax/syntax.rkt:729:0 value? [85] 100.0% ------------------------------------------------------------------------------- random-ranges [36] 100.0% [45] 308(1.5%) 206(1.0%) build--> ...act/private/arrow-val-first.rkt:1088:0 coerce-contract [63] 33.1% ------------------------------------------------------------------------------- mk-enode-rec! [37] 100.0% [46] 298(1.5%) 298(1.5%) hash-has-key? ...ket/private/more-scheme.rkt:371:2 ------------------------------------------------------------------------------- match-e [32] 40.3% run-improve47 [7] 59.7% [47] 258(1.3%) 104(0.5%) ??? ...contract/private/arrow-val-first.rkt:390:18 make-alt-table [62] 59.7% ------------------------------------------------------------------------------- for-loop [35] 100.0% [48] 202(1.0%) 0(0.0%) setfindf ...herbie/use-places/src/common.rkt:130:0 for-loop [60] 100.0% ------------------------------------------------------------------------------- pattern-substitute [38] 100.0% [49] 102(0.5%) 102(0.5%) return/no-unsupplied ...ct/private/arr-i.rkt:542:0 ------------------------------------------------------------------------------- for-loop [41] 100.0% [50] 6580(32.4%) 372(1.8%) for-loop ...e/use-places/src/core/ematch.rkt:58:37 match-e [32] 84.6% ??? [67] 10.6% ------------------------------------------------------------------------------- loop [65] 24.5% merge-egraph-nodes! [42] 75.5% [51] 2912(14.4%) 876(4.3%) loop! ...erbie/use-places/src/core/enode.rkt:194:2 custom-set-union [66] 48.4% loop [65] 30.6% set [71] 2.6% update-en-expr [88] 1.7% ------------------------------------------------------------------------------- merge-egraph-nodes! [42] 10.2% for-loop [26] 89.8% [52] 2456(12.1%) 0(0.0%) dedup-children! ...places/src/core/enode.rkt:202:0 loop [64] 100.0% ------------------------------------------------------------------------------- bf [34] 18.5% bfadd [43] 81.5% [53] 1736(8.6%) 1736(8.6%) new-mpfr ...b/math/private/bigfloat/mpfr.rkt:335:0 ------------------------------------------------------------------------------- bf [34] 45.4% bfadd [43] 54.6% [54] 1180(5.8%) 1180(5.8%) ??? /opt/racket-7.2/collects/ffi/unsafe.rkt:905:4 ------------------------------------------------------------------------------- merge-egraph-nodes! [42] 100.0% [55] 550(2.7%) 0(0.0%) update-leader! ...places/src/core/egraph.rkt:213:0 for-loop [68] 100.0% ------------------------------------------------------------------------------- ??? [14] 23.2% for-loop [41] 76.8% [56] 422(2.1%) 422(2.1%) do-curry ...-7.2/collects/racket/function.rkt:71:2 ------------------------------------------------------------------------------- for-loop [41] 100.0% [57] 406(2.0%) 406(2.0%) procedure-reduce-keyword-arity-mask ....rkt:1562:4 ------------------------------------------------------------------------------- for-loop [41] 100.0% [58] 214(1.1%) 214(1.1%) make-curried ...collects/racket/function.rkt:130:9 ------------------------------------------------------------------------------- merge-egraph-nodes! [42] 100.0% [59] 210(1.0%) 0(0.0%) for-loop ...e/use-places/src/core/egraph.rkt:199:4 merge-egraph-nodes! [42] 100.0% ------------------------------------------------------------------------------- setfindf [48] 100.0% [60] 202(1.0%) 102(0.5%) for-loop ...herbie/use-places/src/common.rkt:131:2 constant? [81] 49.5% ------------------------------------------------------------------------------- for-loop [41] 100.0% [61] 200(1.0%) 0(0.0%) foldr ....2/collects/racket/private/list.rkt:242:4 cp-2 [69] 100.0% ------------------------------------------------------------------------------- ??? [47] 100.0% [62] 154(0.8%) 0(0.0%) make-alt-table ...aces/src/core/alt-table.rkt:32:0 errors [70] 100.0% ------------------------------------------------------------------------------- build--> [45] 100.0% [63] 102(0.5%) 0(0.0%) coerce-contract ...contract/private/guts.rkt:308:0 coerce-contract/f [72] 100.0% ------------------------------------------------------------------------------- dedup-children! [52] 9.6% loop [64] 90.4% [64] 2456(12.1%) 2456(12.1%) loop ...racket-7.2/collects/racket/list.rkt:434:17 loop [64] 90.4% ------------------------------------------------------------------------------- ??? [6] 5.9% for-loop [41] 7.4% loop! [51] 8.8% loop [65] 77.9% [65] 1910(9.4%) 478(2.4%) loop ...-7.2/collects/racket/private/map.rkt:40:19 loop [65] 77.9% loop! [51] 7.8% ??? [75] 5.5% foldl [76] 0.4% ------------------------------------------------------------------------------- loop! [51] 100.0% [66] 1484(7.3%) 766(3.8%) custom-set-union ...et/private/set-types.rkt:168:0 for-loop [73] 48.4% ------------------------------------------------------------------------------- for-loop [50] 100.0% [67] 700(3.5%) 300(1.5%) ??? .../herbie/use-places/src/core/ematch.rkt:43:5 for-loop [74] 57.1% ------------------------------------------------------------------------------- update-leader! [55] 100.0% [68] 550(2.7%) 0(0.0%) for-loop ...e/use-places/src/core/egraph.rkt:218:6 hash-update! [82] 64.0% for-loop [77] 36.0% ------------------------------------------------------------------------------- foldr [61] 100.0% [69] 200(1.0%) 100(0.5%) cp-2 .../racket-7.2/collects/racket/list.rkt:826:2 for-loop [80] 50.0% ------------------------------------------------------------------------------- make-alt-table [62] 100.0% [70] 154(0.8%) 0(0.0%) errors ...s/herbie/use-places/src/points.rkt:201:0 for-loop [78] 100.0% ------------------------------------------------------------------------------- loop! [51] 100.0% [71] 150(0.7%) 150(0.7%) set ...collects/racket/private/set-types.rkt:981:0 ------------------------------------------------------------------------------- coerce-contract [63] 100.0% [72] 102(0.5%) 0(0.0%) coerce-contract/f ...ntract/private/guts.rkt:373:0 coerce-simple-value [79] 100.0% ------------------------------------------------------------------------------- custom-set-union [66] 100.0% [73] 718(3.5%) 264(1.3%) for-loop ...cts/racket/private/set-types.rkt:174:3 for-loop [83] 63.2% ------------------------------------------------------------------------------- ??? [67] 100.0% [74] 400(2.0%) 200(1.0%) for-loop ...ie/use-places/src/core/ematch.rkt:44:7 constant? [81] 50.0% ------------------------------------------------------------------------------- loop [65] 32.3% for-loop [41] 67.7% [75] 328(1.6%) 328(1.6%) ??? ...ket-7.2/collects/racket/function.rkt:138:13 ------------------------------------------------------------------------------- for-loop [41] 49.5% loop [65] 50.5% [76] 198(1.0%) 100(0.5%) foldl ....2/collects/racket/private/list.rkt:229:4 merge2 [84] 49.5% ------------------------------------------------------------------------------- for-loop [68] 100.0% [77] 198(1.0%) 0(0.0%) for-loop ...e/use-places/src/core/egraph.rkt:219:8 hash-update! [82] 100.0% ------------------------------------------------------------------------------- errors [70] 100.0% [78] 154(0.8%) 154(0.8%) for-loop ...herbie/use-places/src/points.rkt:203:2 ------------------------------------------------------------------------------- coerce-contract/f [72] 100.0% [79] 102(0.5%) 102(0.5%) coerce-simple-value ...ract/private/guts.rkt:386:0 ------------------------------------------------------------------------------- cp-2 [69] 100.0% [80] 100(0.5%) 100(0.5%) for-loop ...ket-7.2/collects/racket/list.rkt:827:4 ------------------------------------------------------------------------------- for-loop [60] 12.0% for-loop [74] 24.0% match-e [32] 64.0% [81] 834(4.1%) 0(0.0%) constant? ...se-places/src/syntax/syntax.rkt:726:0 value? [85] 100.0% ------------------------------------------------------------------------------- for-loop [77] 36.0% for-loop [68] 64.0% [82] 550(2.7%) 0(0.0%) hash-update! ...cket/private/more-scheme.rkt:365:4 ??? [86] 100.0% ------------------------------------------------------------------------------- for-loop [73] 100.0% [83] 454(2.2%) 454(2.2%) for-loop ...cts/racket/private/set-types.rkt:178:5 ------------------------------------------------------------------------------- foldl [76] 100.0% [84] 98(0.5%) 98(0.5%) merge2 ...rbie/use-places/src/core/ematch.rkt:24:0 ------------------------------------------------------------------------------- variable? [44] 29.4% constant? [81] 70.6% [85] 1182(5.8%) 1182(5.8%) value? ...bie/use-places/src/syntax/types.rkt:18:0 ------------------------------------------------------------------------------- hash-update! [82] 100.0% [86] 550(2.7%) 0(0.0%) ??? ...erbie/use-places/src/core/egraph.rkt:221:24 for-loop [87] 100.0% ------------------------------------------------------------------------------- ??? [86] 100.0% [87] 550(2.7%) 452(2.2%) for-loop .../use-places/src/core/egraph.rkt:222:26 update-en-expr [88] 17.8% ------------------------------------------------------------------------------- for-loop [87] 39.5% loop! [51] 60.5% [88] 248(1.2%) 248(1.2%) update-en-expr ...places/src/core/egraph.rkt:207:0 -------------------------------------------------------------------------------