Profiling results ----------------- Total cpu time observed: 22314ms (out of 22828ms) Number of samples taken: 96 (once every 232ms) (Hiding functions with self<1.0% and local<2.0%: 1 of 99 hidden) ===================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ===================================================================== ??? [39] 100.0% [1] 21660(97.1%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [9] 100.0% --------------------------------------------------------------------- ??? [39] 100.0% [2] 7382(33.1%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [10] 57.1% finalize-table! [12] 33.4% loop [44] 6.8% get-final-combination [19] 2.7% --------------------------------------------------------------------- loop [75] 5.3% ??? [39] 94.7% [3] 3800(17.0%) 0(0.0%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [11] 56.2% iterate-egraph!5 [20] 28.0% for-loop [14] 10.5% loop [15] 5.3% --------------------------------------------------------------------- loop [75] 100.0% [4] 1202(5.4%) 0(0.0%) completely-simplify-alt ...erbie/src/glue.rkt:87:0 simplify-expr [11] 100.0% --------------------------------------------------------------------- location-do [80] 100.0% [5] 836(3.7%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [13] 76.1% f6 [69] 23.9% --------------------------------------------------------------------- hash-ref! [63] 100.0% [6] 202(0.9%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:338:33 for-loop [17] 100.0% --------------------------------------------------------------------- hash-ref! [63] 100.0% [7] 202(0.9%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:295:23 for-loop [16] 100.0% --------------------------------------------------------------------- f6 [69] 100.0% [8] 200(0.9%) 0(0.0%) taylor-sqrt ...ck/herbie/src/core/taylor.rkt:346:0 first-nonzero-exp [18] 100.0% --------------------------------------------------------------------- profile-thunk14 [1] 100.0% [9] 21660(97.1%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [39] 100.0% --------------------------------------------------------------------- run-improve58 [2] 100.0% [10] 4218(18.9%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [21] 100.0% --------------------------------------------------------------------- completely-simplify-alt [4] 36.0% simplify [3] 64.0% [11] 3336(15.0%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [20] 100.0% --------------------------------------------------------------------- run-improve58 [2] 100.0% [12] 2464(11.0%) 0(0.0%) finalize-table! ...k/herbie/src/mainloop.rkt:264:0 post-process [22] 100.0% --------------------------------------------------------------------- approximate9 [5] 100.0% [13] 636(2.9%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [63] 100.0% --------------------------------------------------------------------- simplify [3] 100.0% [14] 400(1.8%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [20] 100.0% --------------------------------------------------------------------- simplify [3] 100.0% [15] 202(0.9%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [23] 100.0% --------------------------------------------------------------------- ??? [7] 100.0% [16] 202(0.9%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:298:27 hash-ref! [63] 100.0% --------------------------------------------------------------------- ??? [6] 100.0% [17] 202(0.9%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:341:46 hash-ref! [63] 100.0% --------------------------------------------------------------------- taylor-sqrt [8] 100.0% [18] 200(0.9%) 0(0.0%) first-nonzero-exp ...bie/src/core/taylor.rkt:260:0 hash-ref! [63] 100.0% --------------------------------------------------------------------- run-improve58 [2] 100.0% [19] 200(0.9%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 extract-alt [24] 100.0% --------------------------------------------------------------------- for-loop [14] 8.3% simplify [3] 22.2% simplify-expr [11] 69.5% [20] 4800(21.5%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [25] 95.8% map-enodes [30] 4.2% --------------------------------------------------------------------- for-loop [10] 100.0% [21] 4218(18.9%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [26] 85.3% finalize-iter! [29] 5.2% gen-series! [32] 4.7% localize-error [28] 4.7% --------------------------------------------------------------------- finalize-table! [12] 100.0% [22] 2464(11.0%) 0(0.0%) post-process .../ztatlock/herbie/src/glue.rkt:95:0 loop [75] 48.8% for-loop [27] 25.8% localize-error [28] 17.2% ??? [36] 8.2% --------------------------------------------------------------------- loop [15] 100.0% [23] 202(0.9%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [31] 100.0% --------------------------------------------------------------------- get-final-combination [19] 100.0% [24] 200(0.9%) 0(0.0%) extract-alt ...e/ztatlock/herbie/src/glue.rkt:57:0 loop [75] 100.0% --------------------------------------------------------------------- iterate-egraph!5 [20] 100.0% [25] 4598(20.6%) 222(1.0%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [33] 81.6% loop [35] 13.5% --------------------------------------------------------------------- run-iter! [21] 100.0% [26] 3600(16.1%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [34] 100.0% --------------------------------------------------------------------- post-process [22] 100.0% [27] 636(2.9%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:119:17 append-map [72] 100.0% --------------------------------------------------------------------- run-iter! [21] 31.8% post-process [22] 68.2% [28] 622(2.8%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [63] 100.0% --------------------------------------------------------------------- run-iter! [21] 100.0% [29] 220(1.0%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [36] 100.0% --------------------------------------------------------------------- iterate-egraph!5 [20] 100.0% [30] 202(0.9%) 0(0.0%) map-enodes ...ock/herbie/src/core/egraph.rkt:139:0 loop [75] 100.0% --------------------------------------------------------------------- pass [23] 100.0% [31] 202(0.9%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 argmin [37] 100.0% --------------------------------------------------------------------- run-iter! [21] 100.0% [32] 200(0.9%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [38] 100.0% --------------------------------------------------------------------- for-loop [33] 50.0% one-iter [25] 50.0% [33] 3754(16.8%) 1486(6.7%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [33] 50.0% match-e [40] 30.2% --------------------------------------------------------------------- simplify! [26] 100.0% [34] 3600(16.1%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [39] 100.0% --------------------------------------------------------------------- one-iter [25] 100.0% [35] 622(2.8%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [41] 100.0% --------------------------------------------------------------------- post-process [22] 47.9% finalize-iter! [29] 52.1% [36] 422(1.9%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [42] 100.0% --------------------------------------------------------------------- for-loop [31] 100.0% [37] 202(0.9%) 0(0.0%) argmin ...re/racket/collects/racket/list.rkt:743:0 expression-cost [43] 100.0% --------------------------------------------------------------------- gen-series! [32] 100.0% [38] 200(0.9%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [74] 100.0% --------------------------------------------------------------------- for-loop [34] 5.6% run [9] 46.5% [39] 22094(99.0%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 46.5% loop [44] 33.3% run-improve58 [2] 14.7% simplify [3] 5.6% --------------------------------------------------------------------- for-loop [52] 13.7% for-loop [33] 86.3% [40] 2268(10.2%) 1668(7.5%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [46] 13.2% for-loop [52] 9.3% custom-in-set [50] 8.8% list-cartesian-product [54] 4.4% --------------------------------------------------------------------- loop [35] 100.0% [41] 622(2.8%) 0(0.0%) apply-match .../herbie/src/core/simplify.rkt:122:2 reduce-to-single! [47] 35.7% for-loop [48] 32.5% loop! [55] 31.8% --------------------------------------------------------------------- ??? [36] 100.0% [42] 422(1.9%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [45] 100.0% --------------------------------------------------------------------- argmin [37] 100.0% [43] 202(0.9%) 0(0.0%) expression-cost ...k/herbie/src/programs.rkt:212:0 compile [49] 100.0% --------------------------------------------------------------------- run-improve58 [2] 3.3% ??? [39] 96.7% [44] 15212(68.2%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [51] 44.3% make-exacts* [56] 38.0% loop [57] 17.7% --------------------------------------------------------------------- for-loop [42] 100.0% [45] 422(1.9%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [53] 100.0% --------------------------------------------------------------------- match-e [40] 100.0% [46] 400(1.8%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 list-cartesian-product [54] 50.0% for-loop [52] 50.0% --------------------------------------------------------------------- apply-match [41] 100.0% [47] 222(1.0%) 222(1.0%) reduce-to-single! ...bie/src/core/egraph.rkt:324:0 --------------------------------------------------------------------- apply-match [41] 100.0% [48] 202(0.9%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:136:10 loop! [55] 100.0% --------------------------------------------------------------------- expression-cost [43] 100.0% [49] 202(0.9%) 0(0.0%) compile .../ztatlock/herbie/src/programs.rkt:189:0 hash-ref! [63] 100.0% --------------------------------------------------------------------- match-e [40] 100.0% [50] 200(0.9%) 200(0.9%) custom-in-set ...acket/private/set-types.rkt:578:0 --------------------------------------------------------------------- loop [44] 100.0% [51] 6744(30.2%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 make-exacts* [56] 46.6% loop [57] 44.4% eval-prog [60] 9.0% --------------------------------------------------------------------- for-loop [46] 32.2% match-e [40] 67.8% [52] 622(2.8%) 0(0.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [40] 100.0% --------------------------------------------------------------------- atab-add-altn [45] 100.0% [53] 422(1.9%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [58] 100.0% --------------------------------------------------------------------- list-cartesian-product [54] 25.0% match-e [40] 25.0% for-loop [46] 50.0% [54] 400(1.8%) 400(1.8%) list-cartesian-product ...src/core/ematch.rkt:20:0 list-cartesian-product [54] 25.0% --------------------------------------------------------------------- apply-match [41] 49.5% for-loop [48] 50.5% [55] 400(1.8%) 0(0.0%) loop! .../ztatlock/herbie/src/core/enode.rkt:163:2 loop [75] 50.5% custom-set-union [59] 49.5% --------------------------------------------------------------------- loop [51] 35.2% loop [44] 64.8% [56] 8920(40.0%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 map [71] 53.4% loop [75] 41.5% eval-prog [60] 5.0% --------------------------------------------------------------------- loop [44] 47.3% loop [51] 52.7% [57] 5684(25.5%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [71] 100.0% --------------------------------------------------------------------- best-and-tied-at-points [53] 100.0% [58] 422(1.9%) 0(0.0%) errors /home/ztatlock/herbie/src/points.rkt:144:0 eval-prog [60] 52.1% for-loop [61] 47.9% --------------------------------------------------------------------- loop! [55] 100.0% [59] 198(0.9%) 0(0.0%) custom-set-union ...et/private/set-types.rkt:168:0 for-loop [62] 100.0% --------------------------------------------------------------------- errors [58] 17.2% make-exacts* [56] 35.2% loop [51] 47.6% [60] 1278(5.7%) 0(0.0%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 hash-ref! [63] 100.0% --------------------------------------------------------------------- errors [58] 100.0% [61] 202(0.9%) 202(0.9%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 --------------------------------------------------------------------- custom-set-union [59] 100.0% [62] 198(0.9%) 0(0.0%) for-loop ...cts/racket/private/set-types.rkt:174:3 for-loop [64] 100.0% --------------------------------------------------------------------- for-loop [17] 1.7% for-loop [16] 1.7% ??? [65] 3.4% compile [49] 3.4% first-nonzero-exp [18] 6.8% eval-prog [60] 8.1% localize-error [28] 8.9% ??? [68] 9.1% loop [13] 9.1% ??? [81] 12.3% loop [75] 35.4% [63] 2938(13.2%) 420(1.9%) hash-ref! ...racket/private/more-scheme.rkt:373:13 ??? [65] 39.9% simplify [67] 15.9% f6 [69] 10.6% parse-loop12 [73] 10.6% ??? [68] 9.1% bigfloat-hash [66] 6.1% ??? [7] 1.7% ??? [6] 1.7% --------------------------------------------------------------------- for-loop [62] 100.0% [64] 198(0.9%) 198(0.9%) for-loop ...cts/racket/private/set-types.rkt:178:5 --------------------------------------------------------------------- hash-ref! [63] 100.0% [65] 1480(6.6%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 loop [75] 86.4% hash-ref! [63] 13.6% --------------------------------------------------------------------- hash-ref! [63] 100.0% [66] 840(3.8%) 0(0.0%) bigfloat-hash ...h/private/bigfloat/mpfr.rkt:165:0 sig+exp->bigfloat [70] 100.0% --------------------------------------------------------------------- hash-ref! [63] 100.0% [67] 836(3.7%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 parse-loop12 [73] 74.2% f6 [69] 25.8% --------------------------------------------------------------------- hash-ref! [63] 100.0% [68] 636(2.9%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 hash-ref! [63] 100.0% --------------------------------------------------------------------- simplify [67] 1.2% map [71] 6.2% f6 [69] 8.1% approximate9 [5] 8.1% append-map [72] 8.7% parse-loop12 [73] 16.3% hash-ref! [63] 50.2% [69] 1240(5.6%) 0(0.0%) f6 ...et/collects/racket/match/compiler.rkt:499:40 map [71] 72.7% append-map [72] 10.0% f6 [69] 8.1% taylor-sqrt [8] 8.1% --------------------------------------------------------------------- bigfloat-hash [66] 100.0% [70] 840(3.8%) 840(3.8%) sig+exp->bigfloat ...ivate/bigfloat/mpfr.rkt:385:0 --------------------------------------------------------------------- f6 [69] 9.1% make-exacts* [56] 41.5% loop [57] 49.5% [71] 11490(51.5%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [75] 94.6% f6 [69] 1.9% parse-loop12 [73] 1.8% ??? [81] 1.7% --------------------------------------------------------------------- f6 [69] 30.2% for-loop [27] 69.8% [72] 636(2.9%) 216(1.0%) append-map ...acket/collects/racket/list.rkt:565:2 taylor-alt [74] 69.8% f6 [69] 26.4% --------------------------------------------------------------------- map [71] 5.4% parse-loop12 [73] 17.1% simplify [67] 27.4% hash-ref! [63] 50.1% [73] 1242(5.6%) 620(2.8%) parse-loop12 ...s/racket/match/compiler.rkt:410:15 loop [75] 42.1% parse-loop12 [73] 17.1% loop [77] 8.0% f6 [69] 5.4% --------------------------------------------------------------------- for-loop [38] 23.9% append-map [72] 76.1% [74] 836(3.7%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [76] 100.0% --------------------------------------------------------------------- make-exacts* [56] 0.1% map-enodes [30] 0.2% extract-alt [24] 1.1% loop! [55] 1.1% parse-loop12 [73] 1.5% post-process [22] 1.9% map [71] 2.0% ??? [65] 7.2% loop [75] 84.9% [75] 17860(80.0%) 678(3.0%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [75] 84.9% hash-ref! [63] 7.0% completely-simplify-alt [4] 1.9% ??? [78] 1.5% ??? [81] 1.5% simplify [3] 1.1% ??? [90] 0.4% for-loop [82] 0.2% ->flonum [79] 0.0% --------------------------------------------------------------------- taylor-alt [74] 100.0% [76] 836(3.7%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [80] 100.0% --------------------------------------------------------------------- parse-loop12 [73] 2.3% loop [77] 97.7% [77] 198(0.9%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:37:19 loop [77] 97.7% ->flonum [79] 2.3% --------------------------------------------------------------------- loop [75] 100.0% [78] 12730(57.0%) 744(3.3%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [83] 74.1% real->bigfloat [84] 18.3% ??? [94] 1.7% --------------------------------------------------------------------- loop [77] 14.5% loop [75] 85.5% [79] 1366(6.1%) 238(1.1%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [96] 47.9% ??? [85] 17.4% ??? [86] 17.3% --------------------------------------------------------------------- for-loop [76] 23.7% location-do [80] 76.3% [80] 836(3.7%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 location-do [80] 76.3% approximate9 [5] 23.7% --------------------------------------------------------------------- map [71] 21.2% loop [75] 78.8% [81] 622(2.8%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [63] 100.0% --------------------------------------------------------------------- loop [75] 100.0% [82] 202(0.9%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:161:2 setfindf [87] 100.0% --------------------------------------------------------------------- ??? [78] 100.0% [83] 9430(42.3%) 480(2.2%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [90] 80.6% bf* [88] 9.3% ...higher-order.rkt:373:33 [89] 5.0% --------------------------------------------------------------------- ??? [78] 100.0% [84] 2334(10.5%) 2334(10.5%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 --------------------------------------------------------------------- ->flonum [79] 100.0% [85] 238(1.1%) 238(1.1%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 --------------------------------------------------------------------- ->flonum [79] 100.0% [86] 236(1.1%) 0(0.0%) ??? ...-racket/utils/simple-result-arrow.rkt:47:15 ??? [95] 100.0% --------------------------------------------------------------------- for-loop [82] 100.0% [87] 202(0.9%) 202(0.9%) setfindf ...e/ztatlock/herbie/src/common.rkt:173:0 --------------------------------------------------------------------- ??? [83] 100.0% [88] 878(3.9%) 0(0.0%) bf* ...ath/private/bigfloat/bigfloat-mpfr.rkt:95:0 ??? [90] 100.0% --------------------------------------------------------------------- ??? [83] 100.0% [89] 476(2.1%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [91] 100.0% --------------------------------------------------------------------- loop [75] 4.8% bf* [88] 9.9% ??? [83] 85.4% [90] 8898(39.9%) 2720(12.2%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfatan [92] 30.8% bfdiv [93] 25.9% ??? [96] 12.7% --------------------------------------------------------------------- ...higher-order.rkt:373:33 [89]100.0% [91] 476(2.1%) 0(0.0%) ??? ...cts/racket/contract/private/list.rkt:187:10 ??? [94] 100.0% --------------------------------------------------------------------- ??? [90] 100.0% [92] 2744(12.3%) 1168(5.2%) bfatan ...lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [95] 57.4% --------------------------------------------------------------------- ??? [90] 100.0% [93] 2304(10.3%) 1120(5.0%) bfdiv ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [95] 51.4% --------------------------------------------------------------------- ??? [78] 31.8% ??? [91] 68.2% [94] 698(3.1%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [96] 100.0% --------------------------------------------------------------------- ??? [86] 7.9% bfdiv [93] 39.5% bfatan [92] 52.6% [95] 2996(13.4%) 2996(13.4%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 --------------------------------------------------------------------- ->flonum [79] 26.3% ??? [94] 28.1% ??? [90] 45.5% [96] 2482(11.1%) 1586(7.1%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [97] 36.1% --------------------------------------------------------------------- ??? [96] 100.0% [97] 896(4.0%) 678(3.0%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [98] 24.3% --------------------------------------------------------------------- ??? [97] 100.0% [98] 218(1.0%) 218(1.0%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 ---------------------------------------------------------------------