Profiling results ----------------- Total cpu time observed: 25636ms (out of 26084ms) Number of samples taken: 108 (once every 237ms) (Hiding functions with self<1.0% and local<2.0%: 1 of 102 hidden) ====================================================================== Caller Idx Total Self Name+src Local% ms(pct) ms(pct) Callee ====================================================================== ??? [32] 100.0% [1] 25414(99.1%) 0(0.0%) profile-thunk14 ...t/pkgs/profile-lib/main.rkt:9:0 run [7] 100.0% ---------------------------------------------------------------------- ??? [32] 100.0% [2] 12070(47.1%) 0(0.0%) run-improve58 ...ock/herbie/src/mainloop.rkt:242:0 for-loop [8] 96.3% loop [37] 2.1% get-final-combination [14] 1.7% ---------------------------------------------------------------------- loop [65] 2.0% ??? [32] 98.0% [3] 9768(38.1%) 274(1.1%) simplify ...lock/herbie/src/core/simplify.rkt:39:0 simplify-expr [9] 54.2% iterate-egraph!5 [16] 26.2% for-loop [10] 16.8% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [4] 402(1.6%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:42:15 ??? [12] 50.2% hash-ref! [73] 49.8% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [5] 402(1.6%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:285:26 for-loop [11] 100.0% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [6] 202(0.8%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:295:23 for-loop [13] 100.0% ---------------------------------------------------------------------- profile-thunk14 [1] 100.0% [7] 25414(99.1%) 0(0.0%) run ...share/racket/pkgs/profile-lib/main.rkt:31:2 ??? [32] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [8] 11622(45.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:253:8 run-iter! [15] 100.0% ---------------------------------------------------------------------- simplify [3] 100.0% [9] 5298(20.7%) 0(0.0%) simplify-expr ...herbie/src/core/simplify.rkt:68:0 iterate-egraph!5 [16] 95.8% loop [17] 4.2% ---------------------------------------------------------------------- simplify [3] 100.0% [10] 1638(6.4%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:61:12 iterate-egraph!5 [16] 100.0% ---------------------------------------------------------------------- ??? [5] 100.0% [11] 402(1.6%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:285:52 hash-ref! [73] 75.1% simplify [76] 24.9% ---------------------------------------------------------------------- ??? [4] 100.0% [12] 202(0.8%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:288:19 hash-ref! [73] 100.0% ---------------------------------------------------------------------- ??? [6] 100.0% [13] 202(0.8%) 0(0.0%) for-loop ...lock/herbie/src/core/taylor.rkt:298:27 hash-ref! [73] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 100.0% [14] 200(0.8%) 0(0.0%) get-final-combination ...ie/src/mainloop.rkt:269:0 extract-alt [18] 100.0% ---------------------------------------------------------------------- for-loop [8] 100.0% [15] 11622(45.3%) 0(0.0%) run-iter! ...tatlock/herbie/src/mainloop.rkt:223:0 simplify! [19] 82.3% gen-series! [21] 10.5% finalize-iter! [22] 5.2% localize-error [24] 1.9% ---------------------------------------------------------------------- for-loop [10] 17.7% simplify [3] 27.6% simplify-expr [9] 54.8% [16] 9274(36.2%) 0(0.0%) iterate-egraph!5 ...bie/src/core/simplify.rkt:95:0 one-iter [20] 95.0% map-enodes [23] 5.0% ---------------------------------------------------------------------- simplify-expr [9] 100.0% [17] 220(0.9%) 0(0.0%) loop ...tatlock/herbie/src/core/simplify.rkt:203:2 pass [25] 100.0% ---------------------------------------------------------------------- get-final-combination [14] 100.0% [18] 200(0.8%) 0(0.0%) extract-alt ...e/ztatlock/herbie/src/glue.rkt:57:0 loop [65] 100.0% ---------------------------------------------------------------------- run-iter! [15] 100.0% [19] 9568(37.3%) 0(0.0%) simplify! ...tatlock/herbie/src/mainloop.rkt:162:0 for-loop [26] 100.0% ---------------------------------------------------------------------- iterate-egraph!5 [16] 100.0% [20] 8810(34.4%) 196(0.8%) one-iter ...ock/herbie/src/core/simplify.rkt:106:0 for-loop [27] 73.3% loop [28] 24.5% ---------------------------------------------------------------------- run-iter! [15] 100.0% [21] 1224(4.8%) 0(0.0%) gen-series! ...tlock/herbie/src/mainloop.rkt:134:0 for-loop [29] 100.0% ---------------------------------------------------------------------- run-iter! [15] 100.0% [22] 606(2.4%) 0(0.0%) finalize-iter! ...ck/herbie/src/mainloop.rkt:177:0 ??? [30] 100.0% ---------------------------------------------------------------------- iterate-egraph!5 [16] 100.0% [23] 464(1.8%) 0(0.0%) map-enodes ...ock/herbie/src/core/egraph.rkt:139:0 loop [65] 100.0% ---------------------------------------------------------------------- run-iter! [15] 100.0% [24] 224(0.9%) 0(0.0%) localize-error ...erbie/src/core/localize.rkt:47:0 hash-ref! [73] 100.0% ---------------------------------------------------------------------- loop [17] 100.0% [25] 220(0.9%) 0(0.0%) pass ...tatlock/herbie/src/core/simplify.rkt:193:2 for-loop [31] 100.0% ---------------------------------------------------------------------- simplify! [19] 100.0% [26] 9568(37.3%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:166:6 ??? [32] 100.0% ---------------------------------------------------------------------- for-loop [27] 50.0% one-iter [20] 50.0% [27] 6458(25.2%) 2550(9.9%) for-loop ...ck/herbie/src/core/simplify.rkt:116:12 for-loop [27] 50.0% match-e [38] 30.3% ---------------------------------------------------------------------- one-iter [20] 100.0% [28] 2156(8.4%) 0(0.0%) loop ...cket/collects/racket/private/map.rkt:53:19 apply-match [33] 100.0% ---------------------------------------------------------------------- gen-series! [21] 100.0% [29] 1224(4.8%) 0(0.0%) for-loop ...ztatlock/herbie/src/mainloop.rkt:140:7 taylor-alt [34] 100.0% ---------------------------------------------------------------------- finalize-iter! [22] 100.0% [30] 606(2.4%) 0(0.0%) ??? ...contract/private/arrow-val-first.rkt:357:18 for-loop [35] 100.0% ---------------------------------------------------------------------- pass [25] 100.0% [31] 220(0.9%) 0(0.0%) for-loop ...ck/herbie/src/core/simplify.rkt:196:29 argmin [36] 100.0% ---------------------------------------------------------------------- for-loop [26] 12.5% run [7] 43.7% [32] 25414(99.1%) 0(0.0%) ??? ...lects/racket/private/more-scheme.rkt:261:28 profile-thunk14 [1] 43.7% loop [37] 26.3% run-improve58 [2] 17.5% simplify [3] 12.5% ---------------------------------------------------------------------- loop [28] 100.0% [33] 2156(8.4%) 202(0.8%) apply-match .../herbie/src/core/simplify.rkt:122:2 match-e [38] 57.4% loop! [41] 22.9% substitute-e [42] 10.3% ---------------------------------------------------------------------- for-loop [29] 100.0% [34] 1224(4.8%) 0(0.0%) taylor-alt ...e/ztatlock/herbie/src/glue.rkt:142:0 for-loop [39] 100.0% ---------------------------------------------------------------------- ??? [30] 100.0% [35] 606(2.4%) 0(0.0%) for-loop ...ock/herbie/src/core/alt-table.rkt:51:2 atab-add-altn [40] 100.0% ---------------------------------------------------------------------- for-loop [31] 100.0% [36] 220(0.9%) 0(0.0%) argmin ...re/racket/collects/racket/list.rkt:743:0 expression-cost [43] 100.0% ---------------------------------------------------------------------- run-improve58 [2] 1.8% ??? [32] 98.2% [37] 13592(53.0%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:122:2 loop [44] 38.4% make-exacts* [50] 38.1% loop [51] 23.4% ---------------------------------------------------------------------- for-loop [52] 9.7% apply-match [33] 22.1% for-loop [27] 68.2% [38] 5146(20.1%) 2660(10.4%) match-e ...tatlock/herbie/src/core/ematch.rkt:46:0 for-loop [45] 38.2% for-loop [52] 5.8% loop [65] 4.3% list-cartesian-product [55] 3.9% ---------------------------------------------------------------------- taylor-alt [34] 100.0% [39] 1224(4.8%) 0(0.0%) for-loop /home/ztatlock/herbie/src/glue.rkt:144:2 location-do [46] 100.0% ---------------------------------------------------------------------- for-loop [35] 100.0% [40] 606(2.4%) 0(0.0%) atab-add-altn ...rbie/src/core/alt-table.rkt:208:0 best-and-tied-at-points [47] 100.0% ---------------------------------------------------------------------- apply-match [33] 100.0% [41] 494(1.9%) 274(1.1%) loop! .../ztatlock/herbie/src/core/enode.rkt:163:2 custom-set-union [48] 44.5% ---------------------------------------------------------------------- apply-match [33] 100.0% [42] 222(0.9%) 222(0.9%) substitute-e ...ck/herbie/src/core/ematch.rkt:71:0 ---------------------------------------------------------------------- argmin [36] 100.0% [43] 220(0.9%) 0(0.0%) expression-cost ...k/herbie/src/programs.rkt:212:0 compile [49] 100.0% ---------------------------------------------------------------------- loop [37] 100.0% [44] 5224(20.4%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:93:2 loop [51] 52.5% make-exacts* [50] 47.5% ---------------------------------------------------------------------- match-e [38] 100.0% [45] 2264(8.8%) 1024(4.0%) for-loop ...tlock/herbie/src/core/ematch.rkt:59:11 for-loop [52] 31.8% list-cartesian-product [55] 9.7% filter [57] 8.8% curry* [58] 8.8% ---------------------------------------------------------------------- for-loop [39] 40.2% location-do [46] 59.8% [46] 1224(4.8%) 0(0.0%) location-do ...tlock/herbie/src/programs.rkt:129:0 location-do [46] 59.8% approximate9 [53] 40.2% ---------------------------------------------------------------------- atab-add-altn [40] 100.0% [47] 606(2.4%) 0(0.0%) best-and-tied-at-points ...ore/alt-table.rkt:122:0 errors [54] 100.0% ---------------------------------------------------------------------- loop! [41] 100.0% [48] 220(0.9%) 0(0.0%) custom-set-union ...et/private/set-types.rkt:168:0 for-loop [56] 100.0% ---------------------------------------------------------------------- expression-cost [43] 100.0% [49] 220(0.9%) 0(0.0%) compile .../ztatlock/herbie/src/programs.rkt:189:0 hash-ref! [73] 100.0% ---------------------------------------------------------------------- loop [44] 32.4% loop [37] 67.6% [50] 7662(29.9%) 0(0.0%) make-exacts* ...tatlock/herbie/src/points.rkt:80:0 loop [65] 57.8% map [59] 42.2% ---------------------------------------------------------------------- loop [44] 46.3% loop [37] 53.7% [51] 5930(23.1%) 0(0.0%) loop /home/ztatlock/herbie/src/points.rkt:83:4 map [59] 100.0% ---------------------------------------------------------------------- match-e [38] 42.3% for-loop [45] 57.7% [52] 1422(5.5%) 220(0.9%) for-loop ...tlock/herbie/src/core/ematch.rkt:65:37 match-e [38] 70.5% ??? [64] 14.1% ---------------------------------------------------------------------- location-do [46] 100.0% [53] 1224(4.8%) 0(0.0%) approximate9 ...ck/herbie/src/core/taylor.rkt:11:0 loop [60] 67.3% debug-print [88] 16.3% f6 [87] 16.3% ---------------------------------------------------------------------- best-and-tied-at-points [47] 100.0% [54] 606(2.4%) 202(0.8%) errors /home/ztatlock/herbie/src/points.rkt:144:0 eval-prog [61] 33.3% for-loop [62] 33.3% ---------------------------------------------------------------------- list-cartesian-product [55] 23.9% match-e [38] 23.9% for-loop [45] 52.1% [55] 422(1.6%) 422(1.6%) list-cartesian-product ...src/core/ematch.rkt:20:0 list-cartesian-product [55] 23.9% ---------------------------------------------------------------------- custom-set-union [48] 100.0% [56] 220(0.9%) 220(0.9%) for-loop ...cts/racket/private/set-types.rkt:152:2 ---------------------------------------------------------------------- for-loop [45] 100.0% [57] 200(0.8%) 200(0.8%) filter ...t/collects/racket/private/list.rkt:256:2 ---------------------------------------------------------------------- for-loop [45] 100.0% [58] 200(0.8%) 0(0.0%) curry* ...racket/collects/racket/function.rkt:44:2 procedure-arity [63] 100.0% ---------------------------------------------------------------------- f6 [87] 6.4% make-exacts* [50] 33.0% loop [51] 60.6% [59] 9788(38.2%) 0(0.0%) map ...acket/collects/racket/private/map.rkt:21:13 loop [65] 93.6% ??? [70] 3.0% taylor-sqrt [67] 2.0% f6 [87] 1.4% ---------------------------------------------------------------------- approximate9 [53] 100.0% [60] 824(3.2%) 0(0.0%) loop ...e/ztatlock/herbie/src/core/taylor.rkt:82:4 hash-ref! [73] 100.0% ---------------------------------------------------------------------- errors [54] 100.0% [61] 202(0.8%) 202(0.8%) eval-prog ...tatlock/herbie/src/programs.rkt:162:0 ---------------------------------------------------------------------- errors [54] 100.0% [62] 202(0.8%) 202(0.8%) for-loop ...e/ztatlock/herbie/src/points.rkt:147:4 ---------------------------------------------------------------------- curry* [58] 100.0% [63] 200(0.8%) 200(0.8%) procedure-arity ...ket/private/norm-arity.rkt:7:27 ---------------------------------------------------------------------- for-loop [52] 100.0% [64] 200(0.8%) 0(0.0%) ??? /home/ztatlock/herbie/src/core/ematch.rkt:50:5 for-loop [66] 100.0% ---------------------------------------------------------------------- extract-alt [18] 0.4% map-enodes [23] 0.8% make-exacts* [50] 1.0% match-e [38] 1.5% parse-loop12 [81] 1.5% map [59] 1.9% loop [65] 91.5% [65] 14902(58.1%) 442(1.7%) loop ...cket/collects/racket/private/map.rkt:26:19 loop [65] 91.5% ??? [68] 2.9% ??? [70] 1.5% simplify [76] 1.4% simplify [3] 0.4% for-loop [71] 0.1% ->flonum [69] 0.0% ---------------------------------------------------------------------- ??? [64] 100.0% [66] 200(0.8%) 200(0.8%) for-loop ...atlock/herbie/src/core/ematch.rkt:51:7 ---------------------------------------------------------------------- map [59] 100.0% [67] 200(0.8%) 0(0.0%) taylor-sqrt ...ck/herbie/src/core/taylor.rkt:346:0 simplify [76] 100.0% ---------------------------------------------------------------------- loop [65] 100.0% [68] 13142(51.3%) 1384(5.4%) ??? /home/ztatlock/herbie/src/programs.rkt:168:4 ??? [72] 56.8% real->bigfloat [85] 24.0% ??? [86] 8.7% ---------------------------------------------------------------------- loop [65] 100.0% [69] 450(1.8%) 228(0.9%) ->flonum ...ock/herbie/src/syntax/syntax.rkt:224:0 ??? [75] 49.3% ---------------------------------------------------------------------- loop [65] 42.1% map [59] 57.9% [70] 426(1.7%) 0(0.0%) ??? ...ket/collects/racket/private/list.rkt:323:18 hash-ref! [73] 52.6% f6 [87] 47.4% ---------------------------------------------------------------------- loop [65] 100.0% [71] 242(0.9%) 0(0.0%) for-loop ...ock/herbie/src/core/simplify.rkt:161:2 compose [74] 100.0% ---------------------------------------------------------------------- ??? [68] 100.0% [72] 7470(29.1%) 220(0.9%) ??? ...acket/collects/racket/private/kw.rkt:400:14 ??? [84] 91.0% ...higher-order.rkt:373:33 [78] 3.1% bf* [80] 3.0% ---------------------------------------------------------------------- ??? [83] 2.6% ??? [4] 2.6% localize-error [24] 2.9% for-loop [13] 3.2% ??? [12] 3.2% compile [49] 5.8% for-loop [11] 5.8% ??? [82] 11.6% ??? [70] 14.7% ??? [77] 19.1% loop [60] 28.5% [73] 1268(4.9%) 220(0.9%) hash-ref! ...racket/private/more-scheme.rkt:373:13 simplify [76] 20.5% ??? [77] 19.1% parse-loop12 [81] 11.8% ??? [82] 11.6% ??? [5] 8.4% f6 [87] 8.3% ??? [4] 5.8% ??? [6] 3.2% ??? [79] 2.9% ??? [83] 2.6% ---------------------------------------------------------------------- for-loop [71] 100.0% [74] 242(0.9%) 242(0.9%) compose ...collects/racket/private/list.rkt:385:12 ---------------------------------------------------------------------- ->flonum [69] 100.0% [75] 222(0.9%) 222(0.9%) ??? /home/ztatlock/herbie/src/config.rkt:29:0 ---------------------------------------------------------------------- for-loop [11] 19.5% taylor-sqrt [67] 19.5% loop [65] 19.7% hash-ref! [73] 41.2% [76] 1024(4.0%) 0(0.0%) simplify ...atlock/herbie/src/core/reduce.rkt:18:0 debug-print [88] 41.0% f6 [87] 39.3% debug7 [89] 19.7% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [77] 604(2.4%) 0(0.0%) ??? ...e/ztatlock/herbie/src/core/taylor.rkt:63:15 hash-ref! [73] 100.0% ---------------------------------------------------------------------- ??? [72] 100.0% [78] 228(0.9%) 0(0.0%) ...higher-order.rkt:373:33 (unknown source) ??? [86] 100.0% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [79] 224(0.9%) 0(0.0%) ??? ...ztatlock/herbie/src/core/localize.rkt:22:13 real->bigfloat [85] 100.0% ---------------------------------------------------------------------- ??? [72] 100.0% [80] 224(0.9%) 0(0.0%) bf* ...ath/private/bigfloat/bigfloat-mpfr.rkt:95:0 ??? [84] 100.0% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [81] 224(0.9%) 0(0.0%) parse-loop12 ...s/racket/match/compiler.rkt:410:15 loop [65] 100.0% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [82] 220(0.9%) 0(0.0%) ??? /home/ztatlock/herbie/src/programs.rkt:197:5 hash-ref! [73] 100.0% ---------------------------------------------------------------------- hash-ref! [73] 100.0% [83] 200(0.8%) 0(0.0%) ??? .../ztatlock/herbie/src/core/taylor.rkt:357:30 hash-ref! [73] 100.0% ---------------------------------------------------------------------- bf* [80] 3.2% ??? [72] 96.8% [84] 7022(27.4%) 1272(5.0%) ??? ...-racket/utils/simple-result-arrow.rkt:26:12 bfsqr [91] 37.5% ??? [90] 25.2% bfsub [92] 19.2% ---------------------------------------------------------------------- ??? [79] 6.6% ??? [68] 93.4% [85] 3372(13.2%) 1800(7.0%) real->bigfloat .../private/bigfloat/mpfr.rkt:451:0 ??? [97] 46.6% ---------------------------------------------------------------------- ...higher-order.rkt:373:33 [78] 16.7% ??? [68] 83.3% [86] 1368(5.3%) 0(0.0%) ??? ...ects/racket/contract/private/guts.rkt:638:8 ??? [90] 100.0% ---------------------------------------------------------------------- ??? [70] 1.9% map [59] 3.8% approximate9 [53] 8.1% composed [94] 12.1% simplify [76] 12.1% append-map [95] 16.3% f6 [87] 16.9% hash-ref! [73] 28.9% [87] 828(3.2%) 0(0.0%) f6 ...et/collects/racket/match/compiler.rkt:499:40 map [59] 40.7% append-map [95] 28.4% f6 [87] 16.9% composed [94] 12.1% ---------------------------------------------------------------------- approximate9 [53] 32.3% simplify [76] 67.7% [88] 620(2.4%) 0(0.0%) debug-print ...ztatlock/herbie/src/debug.rkt:107:0 for-loop [93] 100.0% ---------------------------------------------------------------------- simplify [76] 100.0% [89] 202(0.8%) 0(0.0%) debug7 /home/ztatlock/herbie/src/debug.rkt:102:0 ??? [96] 100.0% ---------------------------------------------------------------------- ??? [86] 43.6% ??? [84] 56.4% [90] 3138(12.2%) 1386(5.4%) ??? ...tract/private/arrow-higher-order.rkt:373:33 ??? [98] 55.8% ---------------------------------------------------------------------- ??? [84] 100.0% [91] 2630(10.3%) 2192(8.6%) bfsqr ...-lib/math/private/bigfloat/mpfr.rkt:616:4 ??? [97] 16.7% ---------------------------------------------------------------------- ??? [84] 100.0% [92] 1350(5.3%) 1126(4.4%) bfsub ...-lib/math/private/bigfloat/mpfr.rkt:819:4 ??? [97] 16.6% ---------------------------------------------------------------------- debug-print [88] 100.0% [93] 620(2.4%) 620(2.4%) for-loop /home/ztatlock/herbie/src/debug.rkt:113:2 ---------------------------------------------------------------------- f6 [87] 100.0% [94] 402(1.6%) 0(0.0%) composed ...ollects/racket/private/list.rkt:321:16 f6 [87] 100.0% ---------------------------------------------------------------------- f6 [87] 100.0% [95] 402(1.6%) 200(0.8%) append-map ...acket/collects/racket/list.rkt:565:2 f6 [87] 40.2% free-variables [99] 10.0% ---------------------------------------------------------------------- debug7 [89] 100.0% [96] 202(0.8%) 0(0.0%) ??? ...racket/collects/racket/private/kw.rkt:713:9 ??? [100] 100.0% ---------------------------------------------------------------------- bfsub [92] 10.0% bfsqr [91] 19.6% real->bigfloat [85] 70.4% [97] 2234(8.7%) 2234(8.7%) ??? .../share/racket/collects/ffi/unsafe.rkt:861:4 ---------------------------------------------------------------------- ??? [90] 100.0% [98] 1752(6.8%) 1534(6.0%) ??? ...llects/racket/contract/combinator.rkt:178:4 any-wrap/traverse [101] 12.4% ---------------------------------------------------------------------- append-map [95] 100.0% [99] 202(0.8%) 202(0.8%) free-variables ...ock/herbie/src/programs.rkt:89:0 ---------------------------------------------------------------------- ??? [96] 100.0% [100] 202(0.8%) 202(0.8%) ??? ...s/racket/contract/private/arr-i.rkt:1233:27 ---------------------------------------------------------------------- ??? [98] 100.0% [101] 218(0.9%) 218(0.9%) any-wrap/traverse ...cket/utils/any-wrap.rkt:106:2 ----------------------------------------------------------------------