Profiling results ----------------- Total cpu time observed: 44510ms (out of 44888ms) Number of samples taken: 188 (once every 237ms) (Hiding functions with self<1.0% and local<2.0%: 2 of 96 hidden) ====================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ====================================================================== ??? [28] 100.0% [1] 43866(98.6%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [5] 100.0% ---------------------------------------------------------------------- ??? [28] 100.0% [2] 6848(15.4%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [7] 46.7% loop [6] 24.4% get-final-combination [8] 23.2% setup-prog [9] 5.7% ---------------------------------------------------------------------- map [73] 23.9% loop [76] 76.1% [3] 460(1.0%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [60] 100.0% ---------------------------------------------------------------------- copying-mergesort [43] 100.0% [4] 444(1.0%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [54] 100.0% ---------------------------------------------------------------------- profile-thunk14 [1] 100.0% [5] 43866(98.6%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [28] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 4.3% ??? [28] 95.7% [6] 39112(87.9%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [10] 44.8% make-exacts* [14] 33.9% loop [15] 21.3% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [7] 3196(7.2%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [11] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [8] 1588(3.6%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [12] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [9] 392(0.9%) 0(0.0%) setup-prog /home/ztatlock/herbie/src/glue.rkt:46:0 simplify-alt [13] 100.0% ---------------------------------------------------------------------- loop [6] 100.0% [10] 17540(39.4%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 make-exacts* [14] 47.0% loop [15] 44.9% eval-prog [58] 8.1% ---------------------------------------------------------------------- for-loop [7] 100.0% [11] 3196(7.2%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [17] 60.5% gen-series! [19] 25.7% finalize-iter! [20] 6.9% localize-error [39] 6.9% ---------------------------------------------------------------------- get-final-combination [8] 100.0% [12] 1588(3.6%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [18] 100.0% ---------------------------------------------------------------------- setup-prog [9] 100.0% [13] 392(0.9%) 0(0.0%) simplify-alt .../ztatlock/herbie/src/glue.rkt:84:0 simplify [16] 100.0% ---------------------------------------------------------------------- loop [10] 38.4% loop [6] 61.6% [14] 21502(48.3%) 242(0.5%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 loop [76] 49.4% map [73] 47.5% eval-prog [58] 2.0% ---------------------------------------------------------------------- loop [10] 48.6% loop [6] 51.4% [15] 16194(36.4%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [73] 100.0% ---------------------------------------------------------------------- simplify-alt [13] 16.9% ??? [28] 83.1% [16] 2324(5.2%) 392(0.9%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [23] 38.2% iterate-egraph!5 [29] 36.2% loop [27] 8.7% ---------------------------------------------------------------------- run-iter! [11] 100.0% [17] 1932(4.3%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [21] 100.0% ---------------------------------------------------------------------- split-table [12] 100.0% [18] 1588(3.6%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 option-on-expr [22] 84.9% exprs-to-branch-on [25] 15.1% ---------------------------------------------------------------------- run-iter! [11] 100.0% [19] 822(1.8%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [24] 100.0% ---------------------------------------------------------------------- run-iter! [11] 100.0% [20] 222(0.5%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [26] 100.0% ---------------------------------------------------------------------- simplify! [17] 100.0% [21] 1932(4.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [28] 100.0% ---------------------------------------------------------------------- infer-splitpoints4 [18] 100.0% [22] 1348(3.0%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [30] 83.4% err-lsts->split-indices [33] 16.6% ---------------------------------------------------------------------- simplify [16] 100.0% [23] 888(2.0%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [29] 100.0% ---------------------------------------------------------------------- gen-series! [19] 100.0% [24] 822(1.8%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [31] 100.0% ---------------------------------------------------------------------- infer-splitpoints4 [18] 100.0% [25] 240(0.5%) 0(0.0%) exprs-to-branch-on ...ie/src/core/regimes.rkt:41:0 critical-subexpression [32] 100.0% ---------------------------------------------------------------------- finalize-iter! [20] 100.0% [26] 222(0.5%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [34] 100.0% ---------------------------------------------------------------------- simplify [16] 100.0% [27] 202(0.5%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [35] 100.0% ---------------------------------------------------------------------- for-loop [21] 1.5% run [5] 48.8% [28] 44288(99.5%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 48.8% loop [6] 42.7% run-improve58 [2] 7.0% simplify [16] 1.5% ---------------------------------------------------------------------- simplify [16] 48.7% simplify-expr [23] 51.3% [29] 1730(3.9%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [36] 86.0% map-enodes [40] 14.0% ---------------------------------------------------------------------- option-on-expr [22] 100.0% [30] 1124(2.5%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [37] 100.0% ---------------------------------------------------------------------- for-loop [24] 100.0% [31] 822(1.8%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [38] 100.0% ---------------------------------------------------------------------- exprs-to-branch-on [25] 100.0% [32] 240(0.5%) 0(0.0%) critical-subexpression ...rc/core/regimes.rkt:49:0 localize-error [39] 100.0% ---------------------------------------------------------------------- option-on-expr [22] 100.0% [33] 224(0.5%) 224(0.5%) err-lsts->split-indices .../core/regimes.rkt:224:0 ---------------------------------------------------------------------- ??? [26] 100.0% [34] 222(0.5%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [41] 100.0% ---------------------------------------------------------------------- loop [27] 100.0% [35] 202(0.5%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [42] 100.0% ---------------------------------------------------------------------- iterate-egraph!5 [29] 100.0% [36] 1488(3.3%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [44] 55.4% loop [46] 31.0% loop [48] 13.6% ---------------------------------------------------------------------- sort-context-on-expr [30] 100.0% [37] 1124(2.5%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [43] 80.4% loop [51] 19.6% ---------------------------------------------------------------------- taylor-alt [31] 100.0% [38] 822(1.8%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [45] 100.0% ---------------------------------------------------------------------- run-iter! [11] 47.8% critical-subexpression [32] 52.2% [39] 460(1.0%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [60] 100.0% ---------------------------------------------------------------------- iterate-egraph!5 [29] 100.0% [40] 242(0.5%) 0(0.0%) map-enodes ...ock/herbie/src/core/egraph.rkt:139:0 loop [76] 100.0% ---------------------------------------------------------------------- for-loop [34] 100.0% [41] 222(0.5%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [47] 100.0% ---------------------------------------------------------------------- pass [35] 100.0% [42] 202(0.5%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 for-loop [49] 100.0% ---------------------------------------------------------------------- copying-mergesort [43] 49.1% sort [37] 50.9% [43] 904(2.0%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 copying-mergesort [43] 49.1% loop [51] 38.6% jloop [4] 12.3% ---------------------------------------------------------------------- for-loop [44] 50.0% one-iter [36] 50.0% [44] 824(1.9%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [44] 50.0% match-e [55] 50.0% ---------------------------------------------------------------------- location-do [45] 41.9% for-loop [38] 58.1% [45] 822(1.8%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 approximate9 [50] 58.1% location-do [45] 41.9% ---------------------------------------------------------------------- one-iter [36] 100.0% [46] 462(1.0%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [52] 100.0% ---------------------------------------------------------------------- atab-add-altn [41] 100.0% [47] 222(0.5%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [53] 100.0% ---------------------------------------------------------------------- one-iter [36] 100.0% [48] 202(0.5%) 202(0.5%) loop ...ket/collects/racket/private/list.rkt:264:4 ---------------------------------------------------------------------- for-loop [42] 100.0% [49] 202(0.5%) 202(0.5%) for-loop ...ck/herbie/src/core/simplify.rkt:183:13 ---------------------------------------------------------------------- location-do [45] 100.0% [50] 822(1.8%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [56] 75.4% f6 [70] 24.6% ---------------------------------------------------------------------- sort [37] 32.4% copying-mergesort [43] 67.6% [51] 680(1.5%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [54] 100.0% ---------------------------------------------------------------------- loop [46] 100.0% [52] 462(1.0%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 merge-egraph-nodes! [57] 52.4% match-e [55] 47.6% ---------------------------------------------------------------------- best-and-tied-at-points [47] 100.0% [53] 222(0.5%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 eval-prog [58] 100.0% ---------------------------------------------------------------------- jloop [4] 39.5% loop [51] 60.5% [54] 1124(2.5%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [58] 100.0% ---------------------------------------------------------------------- apply-match [52] 10.5% for-loop [61] 20.1% for-loop [44] 69.3% [55] 1044(2.3%) 200(0.4%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [59] 90.4% ---------------------------------------------------------------------- approximate9 [50] 100.0% [56] 620(1.4%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [60] 100.0% ---------------------------------------------------------------------- apply-match [52] 100.0% [57] 242(0.5%) 242(0.5%) merge-egraph-nodes! ...e/src/core/egraph.rkt:152:0 ---------------------------------------------------------------------- errors [53] 7.0% make-exacts* [14] 13.2% ??? [54] 35.3% loop [10] 44.5% [58] 3182(7.1%) 1548(3.5%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [60] 51.4% ---------------------------------------------------------------------- match-e [55] 100.0% [59] 1044(2.3%) 202(0.5%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 for-loop [61] 29.7% curry* [63] 21.1% loop [76] 19.3% list-cartesian-product [62] 10.5% ---------------------------------------------------------------------- localize-error [39] 7.1% ??? [3] 9.8% ??? [67] 11.4% loop [56] 11.4% loop [76] 15.9% eval-prog [58] 44.3% [60] 2714(6.1%) 0(0.0%) hash-ref! ...racket/private/more-scheme.rkt:373:13 bigfloat-hash [64] 44.3% ??? [66] 15.9% ??? [67] 11.4% simplify [65] 11.4% f6 [70] 9.8% parse-loop50 [75] 7.1% ---------------------------------------------------------------------- for-loop [59] 100.0% [61] 420(0.9%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [55] 100.0% ---------------------------------------------------------------------- for-loop [59] 100.0% [62] 220(0.5%) 220(0.5%) list-cartesian-product ...src/core/ematch.rkt:20:0 ---------------------------------------------------------------------- for-loop [59] 100.0% [63] 220(0.5%) 0(0.0%) curry* ...racket/collects/racket/function.rkt:44:2 procedure-arity [68] 100.0% ---------------------------------------------------------------------- hash-ref! [60] 100.0% [64] 1634(3.7%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 bfcanonicalize [69] 74.5% sig+exp->bigfloat [71] 25.5% ---------------------------------------------------------------------- loop [76] 24.6% hash-ref! [60] 75.4% [65] 822(1.8%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 f6 [70] 48.7% parse-loop50 [75] 26.8% debug-print [72] 24.6% ---------------------------------------------------------------------- hash-ref! [60] 100.0% [66] 796(1.8%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [76] 100.0% ---------------------------------------------------------------------- hash-ref! [60] 100.0% [67] 620(1.4%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 hash-ref! [60] 100.0% ---------------------------------------------------------------------- curry* [63] 100.0% [68] 220(0.5%) 220(0.5%) procedure-arity ...ket/private/norm-arity.rkt:7:27 ---------------------------------------------------------------------- bigfloat-hash [64] 100.0% [69] 1218(2.7%) 1218(2.7%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ---------------------------------------------------------------------- f6 [70] 9.5% approximate9 [50] 9.5% map [73] 14.1% simplify [65] 23.5% hash-ref! [60] 43.3% [70] 1062(2.4%) 0(0.0%) f6 ...et/collects/racket/match/compiler.rkt:499:40 map [73] 81.0% f6 [70] 9.5% loop [76] 9.5% ---------------------------------------------------------------------- bigfloat-hash [64] 100.0% [71] 416(0.9%) 416(0.9%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 ---------------------------------------------------------------------- simplify [65] 100.0% [72] 202(0.5%) 0(0.0%) debug-print ...ztatlock/herbie/src/debug.rkt:107:0 for-loop [74] 100.0% ---------------------------------------------------------------------- parse-loop50 [75] 0.4% f6 [70] 2.8% make-exacts* [14] 37.5% loop [15] 59.4% [73] 27270(61.3%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [76] 97.3% parse-loop50 [75] 0.9% ??? [77] 0.8% f6 [70] 0.6% ??? [3] 0.4% ---------------------------------------------------------------------- debug-print [72] 100.0% [74] 202(0.5%) 202(0.5%) for-loop /home/ztatlock/herbie/src/debug.rkt:113:2 ---------------------------------------------------------------------- simplify [65] 20.4% map [73] 37.0% hash-ref! [60] 42.6% [75] 1080(2.4%) 620(1.4%) parse-loop50 ...s/racket/match/compiler.rkt:410:15 loop [76] 42.6% map [73] 9.3% ---------------------------------------------------------------------- parse-loop50 [75] 0.0% map-enodes [40] 0.3% make-exacts* [14] 0.5% f6 [70] 0.5% for-loop [59] 0.5% map [73] 1.5% ??? [66] 2.0% loop [76] 94.6% [76] 38936(87.5%) 238(0.5%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [76] 94.6% hash-ref! [60] 2.0% ??? [77] 2.0% simplify [65] 0.5% for-loop [78] 0.3% ->flonum [79] 0.0% ??? [3] 0.0% ??? [84] 0.0% ...higher-order.rkt:373:33 [86] 0.0% ---------------------------------------------------------------------- map [73] 0.6% loop [76] 99.4% [77] 36798(82.7%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [80] 96.3% real->bigfloat [81] 2.5% ??? [92] 0.5% ---------------------------------------------------------------------- loop [76] 100.0% [78] 242(0.5%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:161:2 setfindf [82] 100.0% ---------------------------------------------------------------------- loop [76] 100.0% [79] 220(0.5%) 0(0.0%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [83] 100.0% ---------------------------------------------------------------------- ??? [77] 100.0% [80] 35446(79.6%) 0(0.0%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [84] 96.9% ...higher-order.rkt:369:33 [85] 1.9% ...higher-order.rkt:373:33 [86] 1.2% ---------------------------------------------------------------------- ??? [77] 100.0% [81] 916(2.1%) 676(1.5%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [91] 26.2% ---------------------------------------------------------------------- for-loop [78] 100.0% [82] 242(0.5%) 0(0.0%) setfindf ...e/ztatlock/herbie/src/common.rkt:173:0 for-loop [87] 100.0% ---------------------------------------------------------------------- ->flonum [79] 100.0% [83] 220(0.5%) 0(0.0%) ??? ...-racket/utils/simple-result-arrow.rkt:47:15 ??? [91] 100.0% ---------------------------------------------------------------------- loop [76] 0.7% ??? [80] 99.3% [84] 34598(77.7%) 27942(62.8%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfneg [88] 13.5% bfsub [89] 4.4% ??? [93] 1.3% ---------------------------------------------------------------------- ??? [80] 100.0% [85] 670(1.5%) 0(0.0%) ...higher-order.rkt:369:33 (unknown source) ??? [92] 66.9% ??? [90] 33.1% ---------------------------------------------------------------------- loop [76] 34.5% ??? [80] 65.5% [86] 638(1.4%) 200(0.4%) ...higher-order.rkt:373:33 (unknown source) ??? [92] 68.7% ---------------------------------------------------------------------- setfindf [82] 100.0% [87] 242(0.5%) 242(0.5%) for-loop ...e/ztatlock/herbie/src/common.rkt:174:2 ---------------------------------------------------------------------- ??? [84] 100.0% [88] 4676(10.5%) 3374(7.6%) bfneg ...-lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [91] 27.8% ---------------------------------------------------------------------- ??? [84] 100.0% [89] 1526(3.4%) 464(1.0%) bfsub ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [91] 69.6% ---------------------------------------------------------------------- ...higher-order.rkt:369:33 [85]100.0% [90] 222(0.5%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [92] 100.0% ---------------------------------------------------------------------- ??? [83] 7.8% real->bigfloat [81] 8.5% bfsub [89] 37.6% bfneg [88] 46.1% [91] 2824(6.3%) 2824(6.3%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ---------------------------------------------------------------------- ??? [77] 15.2% ??? [90] 17.0% ...higher-order.rkt:373:33 [86] 33.5% ...higher-order.rkt:369:33 [85] 34.3% [92] 1306(2.9%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [93] 100.0% ---------------------------------------------------------------------- ??? [84] 25.8% ??? [92] 74.2% [93] 1760(4.0%) 664(1.5%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [94] 62.3% ---------------------------------------------------------------------- ??? [93] 100.0% [94] 1096(2.5%) 1096(2.5%) ??? ...llects/racket/contract/combinator.rkt:178:4 ----------------------------------------------------------------------