Profiling results ----------------- Total cpu time observed: 18364ms (out of 18732ms) Number of samples taken: 77 (once every 238ms) ======================================================================= Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ======================================================================= ??? [31] 100.0% [1] 17430(94.9%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [7] 100.0% ----------------------------------------------------------------------- ??? [31] 100.0% [2] 3854(21.0%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 get-final-combination [8] 44.1% for-loop [9] 43.5% loop [39] 12.4% ----------------------------------------------------------------------- hash-ref! [72] 100.0% [3] 874(4.8%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [68] 77.1% hash-ref! [72] 22.9% ----------------------------------------------------------------------- ??? [31] 100.0% [4] 842(4.6%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [10] 76.2% for-loop [12] 23.8% ----------------------------------------------------------------------- f143 [66] 100.0% [5] 214(1.2%) 0(0.0%) taylor-sqrt ...ck/herbie/src/core/taylor.rkt:346:0 simplify [11] 100.0% ----------------------------------------------------------------------- copying-mergesort [48] 100.0% [6] 202(1.1%) 0(0.0%) jloop ...et/collects/racket/private/sort.rkt:85:19 ??? [64] 100.0% ----------------------------------------------------------------------- profile-thunk14 [1] 100.0% [7] 17430(94.9%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [31] 100.0% ----------------------------------------------------------------------- run-improve58 [2] 100.0% [8] 1700(9.3%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 split-table [13] 100.0% ----------------------------------------------------------------------- run-improve58 [2] 100.0% [9] 1676(9.1%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [14] 100.0% ----------------------------------------------------------------------- simplify [4] 100.0% [10] 642(3.5%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [15] 100.0% ----------------------------------------------------------------------- taylor-sqrt [5] 100.0% [11] 214(1.2%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 f143 [66] 100.0% ----------------------------------------------------------------------- simplify [4] 100.0% [12] 200(1.1%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 loop [16] 100.0% ----------------------------------------------------------------------- get-final-combination [8] 100.0% [13] 1700(9.3%) 0(0.0%) split-table .../ztatlock/herbie/src/glue.rkt:171:0 infer-splitpoints4 [17] 100.0% ----------------------------------------------------------------------- for-loop [9] 100.0% [14] 1676(9.1%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [18] 50.2% finalize-iter! [20] 24.0% gen-rewrites! [21] 13.0% gen-series! [22] 12.8% ----------------------------------------------------------------------- simplify-expr [10] 100.0% [15] 642(3.5%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [19] 100.0% ----------------------------------------------------------------------- for-loop [12] 100.0% [16] 200(1.1%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [23] 100.0% ----------------------------------------------------------------------- split-table [13] 100.0% [17] 1700(9.3%) 0(0.0%) infer-splitpoints4 ...ie/src/core/regimes.rkt:19:0 option-on-expr [24] 100.0% ----------------------------------------------------------------------- run-iter! [14] 100.0% [18] 842(4.6%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [25] 100.0% ----------------------------------------------------------------------- iterate-egraph!5 [15] 100.0% [19] 642(3.5%) 0(0.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [26] 100.0% ----------------------------------------------------------------------- run-iter! [14] 100.0% [20] 402(2.2%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [27] 100.0% ----------------------------------------------------------------------- run-iter! [14] 100.0% [21] 218(1.2%) 0(0.0%) gen-rewrites! ...ock/herbie/src/mainloop.rkt:148:0 for-loop [28] 100.0% ----------------------------------------------------------------------- run-iter! [14] 100.0% [22] 214(1.2%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [29] 100.0% ----------------------------------------------------------------------- loop [16] 100.0% [23] 200(1.1%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [30] 100.0% ----------------------------------------------------------------------- infer-splitpoints4 [17] 100.0% [24] 1700(9.3%) 0(0.0%) option-on-expr ...erbie/src/core/regimes.rkt:106:0 sort-context-on-expr [32] 87.1% pick-errors [35] 12.9% ----------------------------------------------------------------------- simplify! [18] 100.0% [25] 842(4.6%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [31] 100.0% ----------------------------------------------------------------------- for-loop [26] 50.0% one-iter [19] 50.0% [26] 642(3.5%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [26] 50.0% match-e [33] 50.0% ----------------------------------------------------------------------- finalize-iter! [20] 100.0% [27] 402(2.2%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [34] 100.0% ----------------------------------------------------------------------- gen-rewrites! [21] 100.0% [28] 218(1.2%) 0(0.0%) for-loop ...tatlock/herbie/src/mainloop.rkt:153:11 ??? [36] 100.0% ----------------------------------------------------------------------- gen-series! [22] 100.0% [29] 214(1.2%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [37] 100.0% ----------------------------------------------------------------------- pass [23] 100.0% [30] 200(1.1%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 argmin [38] 100.0% ----------------------------------------------------------------------- for-loop [25] 1.5% run [7] 46.7% [31] 18364(100.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 46.7% loop [39] 42.0% run-improve58 [2] 9.7% simplify [4] 1.5% ----------------------------------------------------------------------- option-on-expr [24] 100.0% [32] 1480(8.1%) 0(0.0%) sort-context-on-expr ...herbie/src/points.rkt:50:0 sort [40] 100.0% ----------------------------------------------------------------------- for-loop [52] 17.0% for-loop [26] 83.0% [33] 642(3.5%) 424(2.3%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [43] 34.0% ----------------------------------------------------------------------- ??? [27] 100.0% [34] 402(2.2%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [41] 100.0% ----------------------------------------------------------------------- option-on-expr [24] 100.0% [35] 220(1.2%) 0(0.0%) pick-errors ...k/herbie/src/core/regimes.rkt:173:0 for-loop [42] 100.0% ----------------------------------------------------------------------- for-loop [28] 100.0% [36] 218(1.2%) 0(0.0%) ??? /home/ztatlock/herbie/src/alternative.rkt:90:0 rewriter [44] 100.0% ----------------------------------------------------------------------- for-loop [29] 100.0% [37] 214(1.2%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [45] 100.0% ----------------------------------------------------------------------- for-loop [30] 100.0% [38] 200(1.1%) 0(0.0%) argmin ...re/racket/collects/racket/list.rkt:743:0 expression-cost [46] 100.0% ----------------------------------------------------------------------- run-improve58 [2] 3.2% ??? [31] 96.8% [39] 14988(81.6%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [47] 50.5% make-exacts* [56] 38.8% loop [57] 10.7% ----------------------------------------------------------------------- sort-context-on-expr [32] 100.0% [40] 1480(8.1%) 0(0.0%) sort ...ket/collects/racket/private/sort.rkt:213:0 copying-mergesort [48] 70.4% loop [58] 29.6% ----------------------------------------------------------------------- for-loop [34] 100.0% [41] 402(2.2%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [49] 100.0% ----------------------------------------------------------------------- pick-errors [35] 100.0% [42] 220(1.2%) 0(0.0%) for-loop ...lock/herbie/src/core/regimes.rkt:176:4 eval-prog [69] 100.0% ----------------------------------------------------------------------- match-e [33] 100.0% [43] 218(1.2%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 for-loop [52] 50.0% list-cartesian-product [50] 50.0% ----------------------------------------------------------------------- ??? [36] 33.3% matcher [61] 66.7% [44] 218(1.2%) 0(0.0%) rewriter ...lock/herbie/src/core/matcher.rkt:123:2 for-loop [53] 66.7% *rules* [51] 33.3% ----------------------------------------------------------------------- taylor-alt [37] 100.0% [45] 214(1.2%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [54] 100.0% ----------------------------------------------------------------------- argmin [38] 100.0% [46] 200(1.1%) 0(0.0%) expression-cost ...k/herbie/src/programs.rkt:212:0 compile [55] 100.0% ----------------------------------------------------------------------- loop [39] 100.0% [47] 7562(41.2%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [57] 60.6% make-exacts* [56] 33.0% eval-prog [69] 6.3% ----------------------------------------------------------------------- copying-mergesort [48] 47.5% sort [40] 52.5% [48] 1042(5.7%) 0(0.0%) copying-mergesort .../racket/private/sort.rkt:91:4 loop [58] 47.7% copying-mergesort [48] 47.5% jloop [6] 4.8% ----------------------------------------------------------------------- atab-add-altn [41] 100.0% [49] 402(2.2%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [59] 100.0% ----------------------------------------------------------------------- for-loop [43] 100.0% [50] 218(1.2%) 218(1.2%) list-cartesian-product ...src/core/ematch.rkt:20:0 ----------------------------------------------------------------------- rewriter [44] 100.0% [51] 218(1.2%) 0(0.0%) *rules* ...tlock/herbie/src/syntax/rules.rkt:296:0 for-loop [60] 100.0% ----------------------------------------------------------------------- for-loop [43] 100.0% [52] 218(1.2%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [33] 100.0% ----------------------------------------------------------------------- rewriter [44] 100.0% [53] 218(1.2%) 0(0.0%) for-loop ...ock/herbie/src/core/matcher.rkt:126:10 matcher [61] 100.0% ----------------------------------------------------------------------- for-loop [45] 100.0% [54] 214(1.2%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 approximate9 [62] 100.0% ----------------------------------------------------------------------- expression-cost [46] 100.0% [55] 200(1.1%) 0(0.0%) compile .../ztatlock/herbie/src/programs.rkt:189:0 hash-ref! [72] 100.0% ----------------------------------------------------------------------- loop [47] 30.0% loop [39] 70.0% [56] 8316(45.3%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 map [63] 55.3% loop [68] 39.7% eval-prog [69] 5.0% ----------------------------------------------------------------------- loop [39] 26.0% loop [47] 74.0% [57] 6194(33.7%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [63] 100.0% ----------------------------------------------------------------------- sort [40] 34.3% copying-mergesort [48] 65.7% [58] 1278(7.0%) 0(0.0%) loop ...cket/collects/racket/private/sort.rkt:64:8 ??? [64] 100.0% ----------------------------------------------------------------------- best-and-tied-at-points [49] 100.0% [59] 402(2.2%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 for-loop [67] 50.2% eval-prog [69] 49.8% ----------------------------------------------------------------------- *rules* [51] 100.0% [60] 218(1.2%) 218(1.2%) for-loop ...e/ztatlock/herbie/src/common.rkt:205:9 ----------------------------------------------------------------------- for-loop [65] 25.0% matcher [61] 25.0% for-loop [53] 50.0% [61] 218(1.2%) 0(0.0%) matcher ...tlock/herbie/src/core/matcher.rkt:159:2 rewriter [44] 50.0% matcher [61] 25.0% for-loop [65] 25.0% ----------------------------------------------------------------------- location-do [54] 100.0% [62] 214(1.2%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 f143 [66] 100.0% ----------------------------------------------------------------------- make-exacts* [56] 42.6% loop [57] 57.4% [63] 10794(58.8%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [68] 93.5% ??? [71] 6.5% ----------------------------------------------------------------------- jloop [6] 13.6% loop [58] 86.4% [64] 1480(8.1%) 0(0.0%) ??? /home/ztatlock/herbie/src/points.rkt:52:27 eval-prog [69] 86.5% ??? [71] 13.5% ----------------------------------------------------------------------- matcher [61] 100.0% [65] 218(1.2%) 0(0.0%) for-loop ...ock/herbie/src/core/matcher.rkt:175:21 matcher [61] 100.0% ----------------------------------------------------------------------- simplify [11] 50.0% approximate9 [62] 50.0% [66] 214(1.2%) 0(0.0%) f143 .../collects/racket/match/compiler.rkt:499:40 taylor-sqrt [5] 50.0% gather-multiplicative-terms [70] 50.0% ----------------------------------------------------------------------- errors [59] 100.0% [67] 202(1.1%) 202(1.1%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ----------------------------------------------------------------------- make-exacts* [56] 0.5% map [63] 3.1% ??? [3] 4.8% loop [68] 91.6% [68] 14064(76.6%) 274(1.5%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [68] 91.6% hash-ref! [72] 4.8% ??? [71] 3.6% ->flonum [77] 0.0% ----------------------------------------------------------------------- errors [59] 7.7% for-loop [42] 8.5% make-exacts* [56] 16.0% loop [47] 18.4% ??? [64] 49.4% [69] 2592(14.1%) 1500(8.2%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [72] 26.0% inductor [73] 8.4% parse-lambda [74] 7.7% ----------------------------------------------------------------------- f143 [66] 100.0% [70] 214(1.2%) 214(1.2%) gather-multiplicative-terms ...re/reduce.rkt:107:0 ----------------------------------------------------------------------- ??? [64] 1.5% map [63] 5.2% loop [68] 93.3% [71] 13546(73.8%) 1112(6.1%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [75] 62.0% real->bigfloat [76] 25.3% ??? [90] 3.1% ->flonum [77] 1.5% ----------------------------------------------------------------------- compile [55] 7.6% ??? [3] 15.3% eval-prog [69] 27.4% loop [68] 49.7% [72] 874(4.8%) 412(2.2%) hash-ref! ...racket/private/more-scheme.rkt:373:13 ??? [3] 65.0% bigfloat-hash [78] 21.4% ----------------------------------------------------------------------- eval-prog [69] 25.0% inductor [73] 75.0% [73] 218(1.2%) 0(0.0%) inductor .../ztatlock/herbie/src/programs.rkt:73:2 inductor [73] 75.0% integer->bigfloat [79] 25.0% ----------------------------------------------------------------------- eval-prog [69] 100.0% [74] 200(1.1%) 200(1.1%) parse-lambda ...llects/racket/private/kw.rkt:393:2 ----------------------------------------------------------------------- ??? [71] 100.0% [75] 8392(45.7%) 226(1.2%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [86] 53.3% bf* [80] 32.7% ...higher-order.rkt:373:33 [82] 11.3% ----------------------------------------------------------------------- ??? [71] 100.0% [76] 3424(18.6%) 2508(13.7%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [81] 26.8% ----------------------------------------------------------------------- ??? [71] 29.6% loop [68] 70.4% [77] 676(3.7%) 234(1.3%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [83] 65.4% ----------------------------------------------------------------------- hash-ref! [72] 100.0% [78] 462(2.5%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 sig+exp->bigfloat [84] 57.6% bfcanonicalize [85] 42.4% ----------------------------------------------------------------------- inductor [73] 100.0% [79] 218(1.2%) 0(0.0%) integer->bigfloat ...ivate/bigfloat/mpfr.rkt:399:0 ??? [81] 100.0% ----------------------------------------------------------------------- ??? [75] 100.0% [80] 2742(14.9%) 0(0.0%) bf* ...ath/private/bigfloat/bigfloat-mpfr.rkt:95:0 ??? [86] 100.0% ----------------------------------------------------------------------- integer->bigfloat [79] 19.2% real->bigfloat [76] 80.8% [81] 1134(6.2%) 1134(6.2%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ----------------------------------------------------------------------- ??? [75] 100.0% [82] 948(5.2%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [87] 78.7% ??? [90] 21.3% ----------------------------------------------------------------------- ->flonum [77] 100.0% [83] 442(2.4%) 442(2.4%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ----------------------------------------------------------------------- bigfloat-hash [78] 100.0% [84] 266(1.4%) 266(1.4%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 ----------------------------------------------------------------------- bigfloat-hash [78] 100.0% [85] 196(1.1%) 196(1.1%) bfcanonicalize .../private/bigfloat/mpfr.rkt:155:0 ----------------------------------------------------------------------- bf* [80] 38.0% ??? [75] 62.0% [86] 7218(39.3%) 882(4.8%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfmul [88] 34.1% bfsqrt [89] 27.9% ??? [91] 25.8% ----------------------------------------------------------------------- ...higher-order.rkt:373:33 [82] 100.0% [87] 746(4.1%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [90] 100.0% ----------------------------------------------------------------------- ??? [86] 100.0% [88] 2460(13.4%) 2460(13.4%) bfmul ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ----------------------------------------------------------------------- ??? [86] 100.0% [89] 2016(11.0%) 2016(11.0%) bfsqrt ...lib/math/private/bigfloat/mpfr.rkt:616:4 ----------------------------------------------------------------------- ...higher-order.rkt:373:33 [82] 14.8% ??? [71] 30.6% ??? [87] 54.6% [90] 1366(7.4%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [91] 100.0% ----------------------------------------------------------------------- ??? [90] 42.3% ??? [86] 57.7% [91] 3226(17.6%) 848(4.6%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [92] 73.7% ----------------------------------------------------------------------- ??? [91] 100.0% [92] 2378(12.9%) 1450(7.9%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [93] 39.0% ----------------------------------------------------------------------- ??? [92] 100.0% [93] 928(5.1%) 928(5.1%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 -----------------------------------------------------------------------