Profiling results ----------------- Total cpu time observed: 41336ms (out of 42152ms) Number of samples taken: 168 (once every 246ms) (Hiding functions with self<1.0% and local<2.0%: 2 of 92 hidden) ====================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ====================================================================== ??? [16] 100.0% [1] 40104(97.0%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [4] 100.0% ---------------------------------------------------------------------- ??? [16] 100.0% [2] 15550(37.6%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 get-final-combination [5] 80.3% for-loop [6] 15.5% loop [18] 2.7% setup-prog [7] 1.4% ---------------------------------------------------------------------- copying-mergesort [60] 100.0% [3] 4800(11.6%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [67] 100.0% ---------------------------------------------------------------------- profile-thunk14 [1] 98.9% [4] 40554(98.1%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [16] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [5] 12490(30.2%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [8] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [6] 2416(5.8%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [9] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [7] 222(0.5%) 0(0.0%) setup-prog /home/ztatlock/herbie/src/glue.rkt:46:0 simplify-alt [10] 100.0% ---------------------------------------------------------------------- get-final-combination [5] 100.0% [8] 12490(30.2%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [11] 100.0% ---------------------------------------------------------------------- for-loop [6] 100.0% [9] 2416(5.8%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [12] 74.3% finalize-iter! [13] 25.7% ---------------------------------------------------------------------- setup-prog [7] 100.0% [10] 222(0.5%) 0(0.0%) simplify-alt .../ztatlock/herbie/src/glue.rkt:84:0 simplify [19] 100.0% ---------------------------------------------------------------------- split-table [8] 100.0% [11] 12490(30.2%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 loop [37] 61.7% option-on-expr [43] 38.3% ---------------------------------------------------------------------- run-iter! [9] 100.0% [12] 1796(4.3%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [14] 100.0% ---------------------------------------------------------------------- run-iter! [9] 100.0% [13] 620(1.5%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [15] 100.0% ---------------------------------------------------------------------- simplify! [12] 100.0% [14] 1796(4.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [16] 100.0% ---------------------------------------------------------------------- finalize-iter! [13] 100.0% [15] 620(1.5%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [17] 100.0% ---------------------------------------------------------------------- for-loop [14] 1.5% run [4] 49.6% [16] 40772(98.6%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 48.4% loop [18] 31.5% run-improve58 [2] 18.6% simplify [19] 1.5% ---------------------------------------------------------------------- ??? [15] 100.0% [17] 620(1.5%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [20] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 1.6% ??? [16] 98.4% [18] 25644(62.0%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [21] 52.7% make-exacts* [26] 31.1% loop [27] 12.5% for-loop [23] 3.7% ---------------------------------------------------------------------- simplify-alt [10] 11.0% ??? [16] 89.0% [19] 2018(4.9%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [22] 69.2% loop [25] 20.9% iterate-egraph!5 [28] 9.9% ---------------------------------------------------------------------- for-loop [17] 100.0% [20] 620(1.5%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [24] 100.0% ---------------------------------------------------------------------- loop [18] 100.0% [21] 13522(32.7%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [27] 54.7% make-exacts* [26] 45.3% ---------------------------------------------------------------------- simplify [19] 100.0% [22] 1396(3.4%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [28] 100.0% ---------------------------------------------------------------------- loop [18] 100.0% [23] 940(2.3%) 0(0.0%) for-loop .../ztatlock/herbie/src/points.rkt:128:18 for-loop [29] 100.0% ---------------------------------------------------------------------- atab-add-altn [20] 100.0% [24] 620(1.5%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [30] 100.0% ---------------------------------------------------------------------- simplify [19] 100.0% [25] 422(1.0%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [31] 100.0% ---------------------------------------------------------------------- loop [21] 43.5% loop [18] 56.5% [26] 14110(34.1%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 loop [37] 55.9% map [32] 40.4% eval-prog [69] 3.7% ---------------------------------------------------------------------- loop [18] 30.2% loop [21] 69.8% [27] 10594(25.6%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [32] 100.0% ---------------------------------------------------------------------- simplify [19] 12.5% simplify-expr [22] 87.5% [28] 1596(3.9%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [33] 100.0% ---------------------------------------------------------------------- for-loop [23] 100.0% [29] 940(2.3%) 450(1.1%) for-loop .../ztatlock/herbie/src/points.rkt:129:20 sample [36] 28.9% sample-double [39] 23.2% ---------------------------------------------------------------------- best-and-tied-at-points [24] 100.0% [30] 620(1.5%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 for-loop [35] 64.2% eval-prog [69] 35.8% ---------------------------------------------------------------------- loop [25] 100.0% [31] 422(1.0%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [34] 100.0% ---------------------------------------------------------------------- make-exacts* [26] 35.0% loop [27] 65.0% [32] 16300(39.4%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [37] 98.2% ??? [68] 1.8% ---------------------------------------------------------------------- iterate-egraph!5 [28] 100.0% [33] 1596(3.9%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [38] 75.1% loop [40] 24.9% ---------------------------------------------------------------------- pass [31] 100.0% [34] 422(1.0%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 for-loop [41] 52.6% argmin [42] 47.4% ---------------------------------------------------------------------- errors [30] 100.0% [35] 398(1.0%) 0(0.0%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ??? [68] 100.0% ---------------------------------------------------------------------- for-loop [29] 100.0% [36] 272(0.7%) 0(0.0%) sample /home/ztatlock/herbie/src/points.rkt:68:0 sample-double [39] 100.0% ---------------------------------------------------------------------- make-exacts* [26] 0.6% map [32] 0.9% ??? [68] 1.1% infer-splitpoints4 [11] 24.0% loop [37] 73.4% [37] 32088(77.6%) 1874(4.5%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [37] 73.4% option-on-expr [43] 24.0% ??? [68] 1.4% ??? [84] 0.4% real->bigfloat [71] 0.4% ->flonum [72] 0.3% ---------------------------------------------------------------------- for-loop [38] 41.7% one-iter [33] 58.3% [38] 1198(2.9%) 598(1.4%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [38] 41.7% match-e [48] 25.0% ---------------------------------------------------------------------- for-loop [29] 44.5% sample [36] 55.5% [39] 490(1.2%) 0(0.0%) sample-double .../src/syntax/distributions.rkt:8:0 random-exp [44] 100.0% ---------------------------------------------------------------------- one-iter [33] 100.0% [40] 398(1.0%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [45] 100.0% ---------------------------------------------------------------------- for-loop [34] 100.0% [41] 222(0.5%) 222(0.5%) for-loop ...ck/herbie/src/core/simplify.rkt:183:13 ---------------------------------------------------------------------- for-loop [34] 100.0% [42] 200(0.5%) 0(0.0%) argmin ...re/racket/collects/racket/list.rkt:743:0 expression-cost [46] 100.0% ---------------------------------------------------------------------- infer-splitpoints4 [11] 38.3% loop [37] 61.7% [43] 12490(30.2%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [47] 94.6% err-lsts->split-indices [49] 3.6% pick-errors [50] 1.8% ---------------------------------------------------------------------- sample-double [39] 100.0% [44] 490(1.2%) 490(1.2%) random-exp ...ztatlock/herbie/src/common.rkt:153:0 ---------------------------------------------------------------------- loop [40] 100.0% [45] 398(1.0%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 match-e [48] 50.3% for-loop [52] 49.7% ---------------------------------------------------------------------- argmin [42] 100.0% [46] 200(0.5%) 0(0.0%) expression-cost ...k/herbie/src/programs.rkt:212:0 compile [51] 100.0% ---------------------------------------------------------------------- option-on-expr [43] 100.0% [47] 11820(28.6%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [53] 100.0% ---------------------------------------------------------------------- apply-match [45] 25.0% for-loop [38] 75.0% [48] 800(1.9%) 202(0.5%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [54] 74.8% ---------------------------------------------------------------------- option-on-expr [43] 100.0% [49] 444(1.1%) 0(0.0%) err-lsts->split-indices .../core/regimes.rkt:224:0 for-loop [55] 54.5% add-splitpoint [57] 45.5% ---------------------------------------------------------------------- option-on-expr [43] 100.0% [50] 226(0.5%) 0(0.0%) pick-errors ...k/herbie/src/core/regimes.rkt:173:0 for-loop [56] 100.0% ---------------------------------------------------------------------- expression-cost [46] 100.0% [51] 200(0.5%) 0(0.0%) compile .../ztatlock/herbie/src/programs.rkt:189:0 hash-ref! [58] 100.0% ---------------------------------------------------------------------- apply-match [45] 100.0% [52] 198(0.5%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:136:10 loop! [59] 100.0% ---------------------------------------------------------------------- sort-context-on-expr [47] 100.0% [53] 11820(28.6%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [60] 67.0% loop [65] 33.0% ---------------------------------------------------------------------- match-e [48] 100.0% [54] 598(1.4%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 list-cartesian-product [61] 100.0% ---------------------------------------------------------------------- err-lsts->split-indices [49] 100.0% [55] 242(0.6%) 242(0.6%) for-loop ...lock/herbie/src/core/regimes.rkt:262:4 ---------------------------------------------------------------------- pick-errors [50] 100.0% [56] 226(0.5%) 0(0.0%) for-loop ...lock/herbie/src/core/regimes.rkt:176:4 eval-prog [69] 100.0% ---------------------------------------------------------------------- err-lsts->split-indices [49] 100.0% [57] 202(0.5%) 0(0.0%) add-splitpoint ...erbie/src/core/regimes.rkt:237:2 for-loop [62] 100.0% ---------------------------------------------------------------------- compile [51] 33.3% ??? [63] 66.7% [58] 200(0.5%) 200(0.5%) hash-ref! ...racket/private/more-scheme.rkt:373:13 ??? [63] 66.7% ---------------------------------------------------------------------- for-loop [52] 100.0% [59] 198(0.5%) 0(0.0%) loop! .../ztatlock/herbie/src/core/enode.rkt:163:2 custom-set-union [64] 100.0% ---------------------------------------------------------------------- sort [53] 41.4% copying-mergesort [60] 58.6% [60] 7922(19.2%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 copying-mergesort [60] 58.6% loop [65] 26.3% jloop [3] 15.1% ---------------------------------------------------------------------- list-cartesian-product [61] 16.6% for-loop [54] 83.4% [61] 598(1.4%) 598(1.4%) list-cartesian-product ...src/core/ematch.rkt:20:0 list-cartesian-product [61] 16.6% ---------------------------------------------------------------------- add-splitpoint [57] 100.0% [62] 202(0.5%) 0(0.0%) for-loop ...lock/herbie/src/core/regimes.rkt:239:4 for-loop [66] 100.0% ---------------------------------------------------------------------- hash-ref! [58] 100.0% [63] 200(0.5%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 hash-ref! [58] 100.0% ---------------------------------------------------------------------- loop! [59] 100.0% [64] 198(0.5%) 198(0.5%) custom-set-union ...et/private/set-types.rkt:168:0 ---------------------------------------------------------------------- copying-mergesort [60] 44.5% sort [53] 55.5% [65] 7020(17.0%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [67] 100.0% ---------------------------------------------------------------------- for-loop [62] 100.0% [66] 202(0.5%) 202(0.5%) for-loop ...lock/herbie/src/core/regimes.rkt:243:8 ---------------------------------------------------------------------- jloop [3] 40.6% loop [65] 59.4% [67] 11820(28.6%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [69] 98.3% ??? [68] 1.7% ---------------------------------------------------------------------- ??? [67] 0.8% map [32] 1.2% for-loop [35] 1.6% loop [37] 96.4% [68] 24824(60.1%) 2236(5.4%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [70] 40.1% loop [37] 33.9% real->bigfloat [71] 11.0% ??? [84] 5.2% ->flonum [72] 0.8% ---------------------------------------------------------------------- errors [30] 1.8% for-loop [56] 1.8% make-exacts* [26] 4.1% ??? [67] 92.3% [69] 12588(30.5%) 11482(27.8%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 go [73] 3.6% ??? [74] 1.6% ---------------------------------------------------------------------- ??? [68] 100.0% [70] 9954(24.1%) 198(0.5%) ??? ...acket/collects/racket/private/kw.rkt:400:14 bffma [75] 46.7% ??? [82] 24.8% ...higher-order.rkt:373:33 [76] 14.1% bf* [80] 6.6% ...ow-val-first.rkt:357:18 [81] 5.8% ---------------------------------------------------------------------- ??? [68] 37.1% loop [37] 62.9% [71] 7382(17.9%) 4582(11.1%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [87] 37.9% ---------------------------------------------------------------------- ??? [68] 31.0% loop [37] 69.0% [72] 638(1.5%) 240(0.6%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [78] 62.4% ---------------------------------------------------------------------- eval-prog [69] 100.0% [73] 448(1.1%) 0(0.0%) go .../collects/racket/private/qq-and-or.rkt:50:20 loop [77] 100.0% ---------------------------------------------------------------------- eval-prog [69] 100.0% [74] 196(0.5%) 0(0.0%) ??? ...collects/racket/private/qq-and-or.rkt:155:9 ??? [79] 100.0% ---------------------------------------------------------------------- ??? [70] 100.0% [75] 4648(11.2%) 0(0.0%) bffma ...atlock/herbie/src/syntax/syntax.rkt:122:0 bf* [80] 69.4% ...ow-val-first.rkt:357:18 [81] 30.6% ---------------------------------------------------------------------- ??? [70] 100.0% [76] 1406(3.4%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [83] 100.0% ---------------------------------------------------------------------- loop [77] 23.4% go [73] 76.6% [77] 448(1.1%) 448(1.1%) loop ...llects/racket/private/qq-and-or.rkt:101:61 loop [77] 23.4% ---------------------------------------------------------------------- ->flonum [72] 100.0% [78] 398(1.0%) 398(1.0%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ---------------------------------------------------------------------- ??? [74] 100.0% [79] 196(0.5%) 196(0.5%) ??? ...ollects/racket/private/qq-and-or.rkt:164:21 ---------------------------------------------------------------------- ??? [70] 16.8% bffma [75] 83.2% [80] 3878(9.4%) 0(0.0%) bf* ...ath/private/bigfloat/bigfloat-mpfr.rkt:95:0 ??? [82] 100.0% ---------------------------------------------------------------------- ??? [70] 29.0% bffma [75] 71.0% [81] 2002(4.8%) 0(0.0%) ...ow-val-first.rkt:357:18 (unknown source) ??? [83] 100.0% ---------------------------------------------------------------------- ??? [70] 38.9% bf* [80] 61.1% [82] 6348(15.4%) 290(0.7%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfadd [85] 72.2% ??? [86] 23.3% ---------------------------------------------------------------------- ...higher-order.rkt:373:33 [76] 41.3% ...ow-val-first.rkt:357:18 [81] 58.7% [83] 3408(8.2%) 692(1.7%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [84] 79.7% ---------------------------------------------------------------------- ??? [68] 22.5% loop [37] 29.8% ??? [83] 47.7% [84] 5696(13.8%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [86] 100.0% ---------------------------------------------------------------------- ??? [82] 100.0% [85] 4582(11.1%) 3308(8.0%) bfadd ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [87] 27.8% ---------------------------------------------------------------------- ??? [82] 20.6% ??? [84] 79.4% [86] 7172(17.4%) 2990(7.2%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [88] 48.4% ??? [89] 9.9% ---------------------------------------------------------------------- bfadd [85] 31.3% real->bigfloat [71] 68.7% [87] 4074(9.9%) 4074(9.9%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ---------------------------------------------------------------------- ??? [86] 100.0% [88] 3474(8.4%) 440(1.1%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [90] 87.3% ---------------------------------------------------------------------- ??? [86] 100.0% [89] 708(1.7%) 708(1.7%) ??? ...ects/racket/contract/private/prop.rkt:489:4 ---------------------------------------------------------------------- ??? [88] 100.0% [90] 3034(7.3%) 3034(7.3%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 ----------------------------------------------------------------------