Profiling results ----------------- Total cpu time observed: 30884ms (out of 31328ms) Number of samples taken: 134 (once every 230ms) (Hiding functions with self<1.0% and local<2.0%: 1 of 88 hidden) ======================================================================= Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ======================================================================= ??? [9] 100.0% [1] 29790(96.5%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [5] 100.0% ----------------------------------------------------------------------- copying-mergesort [52] 100.0% [2] 646(2.1%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [57] 100.0% ----------------------------------------------------------------------- ??? [9] 100.0% [3] 622(2.0%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [6] 67.5% for-loop [7] 32.5% ----------------------------------------------------------------------- location-do [54] 100.0% [4] 200(0.6%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [8] 100.0% ----------------------------------------------------------------------- profile-thunk14 [1] 97.1% [5] 30666(99.3%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [9] 100.0% ----------------------------------------------------------------------- completely-simplify-alt [74] 48.8% simplify [3] 51.2% [6] 820(2.7%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [10] 100.0% ----------------------------------------------------------------------- simplify [3] 100.0% [7] 202(0.7%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [10] 100.0% ----------------------------------------------------------------------- approximate9 [4] 100.0% [8] 200(0.6%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [59] 100.0% ----------------------------------------------------------------------- for-loop [36] 0.7% run [5] 50.7% [9] 30884(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 47.9% loop [13] 43.2% run-improve58 [11] 8.2% simplify [3] 0.7% ----------------------------------------------------------------------- for-loop [7] 19.8% simplify-expr [6] 80.2% [10] 1022(3.3%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [12] 100.0% ----------------------------------------------------------------------- ??? [9] 100.0% [11] 4652(15.1%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 get-final-combination [14] 36.9% for-loop [15] 31.8% finalize-table! [17] 17.2% loop [13] 14.2% ----------------------------------------------------------------------- iterate-egraph!5 [10] 100.0% [12] 1022(3.3%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [16] 78.7% apply-match [18] 21.3% ----------------------------------------------------------------------- run-improve58 [11] 2.5% ??? [9] 97.5% [13] 26892(87.1%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 make-exacts* [25] 54.0% loop [19] 45.1% loop [26] 0.8% ----------------------------------------------------------------------- run-improve58 [11] 100.0% [14] 1716(5.6%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [20] 100.0% ----------------------------------------------------------------------- run-improve58 [11] 100.0% [15] 1478(4.8%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [21] 100.0% ----------------------------------------------------------------------- for-loop [16] 50.0% one-iter [12] 50.0% [16] 804(2.6%) 200(0.6%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [16] 50.0% match-e [23] 37.6% ----------------------------------------------------------------------- run-improve58 [11] 100.0% [17] 798(2.6%) 0(0.0%) finalize-table! ...k/herbie/src/mainloop.rkt:264:0 post-process [22] 100.0% ----------------------------------------------------------------------- one-iter [12] 100.0% [18] 218(0.7%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 merge-egraph-nodes! [24] 100.0% ----------------------------------------------------------------------- loop [13] 100.0% [19] 12138(39.3%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [26] 61.5% make-exacts* [25] 36.7% eval-prog [58] 1.8% ----------------------------------------------------------------------- get-final-combination [14] 100.0% [20] 1716(5.6%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [27] 100.0% ----------------------------------------------------------------------- for-loop [15] 100.0% [21] 1478(4.8%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [28] 42.1% localize-error [48] 28.4% gen-rewrites! [29] 16.1% finalize-iter! [34] 13.4% ----------------------------------------------------------------------- finalize-table! [17] 100.0% [22] 798(2.6%) 0(0.0%) post-process .../ztatlock/herbie/src/glue.rkt:95:0 loop [70] 25.1% completely-simplify-alt [74] 25.1% for-loop [33] 25.1% localize-error [48] 24.8% ----------------------------------------------------------------------- for-loop [32] 16.7% for-loop [16] 83.3% [23] 604(2.0%) 402(1.3%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [32] 16.7% constant? [31] 16.7% ----------------------------------------------------------------------- apply-match [18] 100.0% [24] 218(0.7%) 0(0.0%) merge-egraph-nodes! ...e/src/core/egraph.rkt:152:0 update-leader! [30] 100.0% ----------------------------------------------------------------------- loop [19] 23.5% loop [13] 76.5% [25] 18984(61.5%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 map [68] 48.9% loop [70] 48.8% eval-prog [58] 2.3% ----------------------------------------------------------------------- loop [13] 2.9% loop [19] 97.1% [26] 7690(24.9%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [68] 100.0% ----------------------------------------------------------------------- split-table [20] 100.0% [27] 1716(5.6%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 option-on-expr [35] 88.2% exprs-to-branch-on [38] 11.8% ----------------------------------------------------------------------- run-iter! [21] 100.0% [28] 622(2.0%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [36] 100.0% ----------------------------------------------------------------------- run-iter! [21] 100.0% [29] 238(0.8%) 0(0.0%) gen-rewrites! ...ock/herbie/src/mainloop.rkt:148:0 for-loop [37] 100.0% ----------------------------------------------------------------------- merge-egraph-nodes! [24] 100.0% [30] 218(0.7%) 218(0.7%) update-leader! ...herbie/src/core/egraph.rkt:217:0 ----------------------------------------------------------------------- match-e [23] 100.0% [31] 202(0.7%) 202(0.7%) constant? ...ck/herbie/src/syntax/syntax.rkt:221:0 ----------------------------------------------------------------------- match-e [23] 100.0% [32] 202(0.7%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [23] 100.0% ----------------------------------------------------------------------- post-process [22] 100.0% [33] 200(0.6%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:119:17 append-map [39] 100.0% ----------------------------------------------------------------------- run-iter! [21] 100.0% [34] 198(0.6%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [40] 100.0% ----------------------------------------------------------------------- infer-splitpoints4 [27] 100.0% [35] 1514(4.9%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [41] 85.5% err-lsts->split-indices [43] 14.5% ----------------------------------------------------------------------- simplify! [28] 100.0% [36] 622(2.0%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [9] 100.0% ----------------------------------------------------------------------- gen-rewrites! [29] 100.0% [37] 238(0.8%) 0(0.0%) for-loop ...tatlock/herbie/src/mainloop.rkt:153:11 ??? [42] 100.0% ----------------------------------------------------------------------- infer-splitpoints4 [27] 100.0% [38] 202(0.7%) 0(0.0%) exprs-to-branch-on ...ie/src/core/regimes.rkt:41:0 critical-subexpression [44] 100.0% ----------------------------------------------------------------------- for-loop [33] 100.0% [39] 200(0.6%) 0(0.0%) append-map ...acket/collects/racket/list.rkt:565:2 taylor-alt [45] 100.0% ----------------------------------------------------------------------- finalize-iter! [34] 100.0% [40] 198(0.6%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [46] 100.0% ----------------------------------------------------------------------- option-on-expr [35] 100.0% [41] 1294(4.2%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [47] 100.0% ----------------------------------------------------------------------- for-loop [37] 100.0% [42] 238(0.8%) 238(0.8%) ??? /home/ztatlock/herbie/src/alternative.rkt:90:0 ----------------------------------------------------------------------- option-on-expr [35] 100.0% [43] 220(0.7%) 0(0.0%) err-lsts->split-indices .../core/regimes.rkt:224:0 add-splitpoint [49] 100.0% ----------------------------------------------------------------------- exprs-to-branch-on [38] 100.0% [44] 202(0.7%) 0(0.0%) critical-subexpression ...rc/core/regimes.rkt:49:0 localize-error [48] 100.0% ----------------------------------------------------------------------- append-map [39] 100.0% [45] 200(0.6%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [50] 100.0% ----------------------------------------------------------------------- ??? [40] 100.0% [46] 198(0.6%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [51] 100.0% ----------------------------------------------------------------------- sort-context-on-expr [41] 100.0% [47] 1294(4.2%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [52] 66.6% loop [56] 33.4% ----------------------------------------------------------------------- post-process [22] 24.1% critical-subexpression [44] 24.6% run-iter! [21] 51.2% [48] 820(2.7%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [59] 100.0% ----------------------------------------------------------------------- err-lsts->split-indices [43] 100.0% [49] 220(0.7%) 0(0.0%) add-splitpoint ...erbie/src/core/regimes.rkt:237:2 for-loop [53] 100.0% ----------------------------------------------------------------------- taylor-alt [45] 100.0% [50] 200(0.6%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [54] 100.0% ----------------------------------------------------------------------- for-loop [46] 100.0% [51] 198(0.6%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [55] 100.0% ----------------------------------------------------------------------- sort [47] 31.3% copying-mergesort [52] 68.7% [52] 862(2.8%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 copying-mergesort [52] 68.7% jloop [2] 18.7% loop [56] 12.5% ----------------------------------------------------------------------- add-splitpoint [49] 100.0% [53] 220(0.7%) 220(0.7%) for-loop ...lock/herbie/src/core/regimes.rkt:239:4 ----------------------------------------------------------------------- for-loop [50] 33.3% location-do [54] 66.7% [54] 200(0.6%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 location-do [54] 66.7% approximate9 [4] 33.3% ----------------------------------------------------------------------- atab-add-altn [51] 100.0% [55] 198(0.6%) 198(0.6%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 ----------------------------------------------------------------------- copying-mergesort [52] 33.3% sort [47] 66.7% [56] 648(2.1%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [57] 100.0% ----------------------------------------------------------------------- jloop [2] 49.9% loop [56] 50.1% [57] 1294(4.2%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [58] 100.0% ----------------------------------------------------------------------- loop [19] 11.2% make-exacts* [25] 22.4% ??? [57] 66.4% [58] 1948(6.3%) 1080(3.5%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [59] 33.6% go [60] 11.0% ----------------------------------------------------------------------- ??? [63] 6.0% loop [8] 6.0% localize-error [48] 17.3% eval-prog [58] 19.3% loop [70] 19.8% ??? [72] 31.7% [59] 1674(5.4%) 0(0.0%) hash-ref! ...racket/private/more-scheme.rkt:373:13 f6 [65] 38.6% ??? [62] 19.8% bigfloat-hash [61] 19.3% parse-loop12 [69] 10.4% ??? [63] 6.0% simplify [64] 6.0% ----------------------------------------------------------------------- eval-prog [58] 100.0% [60] 214(0.7%) 214(0.7%) go .../collects/racket/private/qq-and-or.rkt:50:20 ----------------------------------------------------------------------- hash-ref! [59] 100.0% [61] 654(2.1%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 sig+exp->bigfloat [66] 66.7% bfcanonicalize [67] 33.3% ----------------------------------------------------------------------- hash-ref! [59] 100.0% [62] 428(1.4%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [70] 100.0% ----------------------------------------------------------------------- hash-ref! [59] 100.0% [63] 200(0.6%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 hash-ref! [59] 100.0% ----------------------------------------------------------------------- hash-ref! [59] 100.0% [64] 200(0.6%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 f6 [65] 100.0% ----------------------------------------------------------------------- simplify [64] 6.5% map [68] 13.1% hash-ref! [59] 80.4% [65] 1020(3.3%) 0(0.0%) f6 ...et/collects/racket/match/compiler.rkt:499:40 map [68] 100.0% ----------------------------------------------------------------------- bigfloat-hash [61] 100.0% [66] 436(1.4%) 436(1.4%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 ----------------------------------------------------------------------- bigfloat-hash [61] 100.0% [67] 218(0.7%) 218(0.7%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ----------------------------------------------------------------------- parse-loop12 [69] 0.3% ??? [72] 0.4% f6 [65] 5.0% loop [26] 42.8% make-exacts* [25] 51.6% [68] 17986(58.2%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [70] 94.9% ??? [72] 2.3% ??? [71] 1.3% f6 [65] 0.6% parse-loop12 [69] 0.6% ->flonum [73] 0.4% ----------------------------------------------------------------------- parse-loop12 [69] 10.7% map [68] 21.4% hash-ref! [59] 67.8% [69] 622(2.0%) 200(0.6%) parse-loop12 ...s/racket/match/compiler.rkt:410:15 loop [70] 67.8% map [68] 10.7% parse-loop12 [69] 10.7% ----------------------------------------------------------------------- make-exacts* [25] 0.1% post-process [22] 0.1% parse-loop12 [69] 0.2% ??? [62] 1.6% map [68] 2.6% loop [70] 95.4% [70] 27446(88.9%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [70] 95.4% ??? [71] 2.5% hash-ref! [59] 1.6% ??? [72] 0.3% completely-simplify-alt [74] 0.1% ??? [80] 0.1% ->flonum [73] 0.0% ----------------------------------------------------------------------- map [68] 0.9% loop [70] 99.1% [71] 25770(83.4%) 242(0.8%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [75] 94.3% real->bigfloat [76] 3.8% ----------------------------------------------------------------------- loop [70] 31.9% map [68] 68.1% [72] 820(2.7%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [59] 93.8% map [68] 6.2% ----------------------------------------------------------------------- map [68] 30.1% loop [70] 69.9% [73] 670(2.2%) 234(0.8%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [77] 34.9% ??? [83] 30.1% ----------------------------------------------------------------------- post-process [22] 50.0% loop [70] 50.0% [74] 400(1.3%) 0(0.0%) completely-simplify-alt ...erbie/src/glue.rkt:87:0 simplify-expr [6] 100.0% ----------------------------------------------------------------------- ??? [71] 100.0% [75] 24294(78.7%) 0(0.0%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [80] 93.4% bf* [78] 5.6% ...higher-order.rkt:373:33 [79] 1.0% ----------------------------------------------------------------------- ??? [71] 100.0% [76] 988(3.2%) 988(3.2%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ----------------------------------------------------------------------- ->flonum [73] 100.0% [77] 234(0.8%) 0(0.0%) ??? ...-racket/utils/simple-result-arrow.rkt:47:15 ??? [85] 100.0% ----------------------------------------------------------------------- ??? [75] 100.0% [78] 1354(4.4%) 234(0.8%) bf* ...ath/private/bigfloat/bigfloat-mpfr.rkt:95:0 ??? [80] 82.7% ----------------------------------------------------------------------- ??? [75] 100.0% [79] 240(0.8%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [81] 100.0% ----------------------------------------------------------------------- loop [70] 2.5% bf* [78] 4.6% ??? [75] 92.9% [80] 24438(79.1%) 21070(68.2%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfdiv [82] 6.4% ??? [83] 3.8% bfexp [84] 3.6% ----------------------------------------------------------------------- ...higher-order.rkt:373:33 [79]100.0% [81] 240(0.8%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [83] 100.0% ----------------------------------------------------------------------- ??? [80] 100.0% [82] 1568(5.1%) 1326(4.3%) bfdiv ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [85] 15.4% ----------------------------------------------------------------------- ->flonum [73] 14.8% ??? [81] 17.6% ??? [80] 67.5% [83] 1362(4.4%) 700(2.3%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [86] 48.6% ----------------------------------------------------------------------- ??? [80] 100.0% [84] 880(2.8%) 226(0.7%) bfexp ...-lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [85] 74.3% ----------------------------------------------------------------------- ??? [77] 20.7% bfdiv [82] 21.4% bfexp [84] 57.9% [85] 1130(3.7%) 1130(3.7%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ----------------------------------------------------------------------- ??? [83] 100.0% [86] 662(2.1%) 240(0.8%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [87] 63.7% ----------------------------------------------------------------------- ??? [86] 100.0% [87] 422(1.4%) 422(1.4%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 -----------------------------------------------------------------------