-
-
Save lojic/f1ea6371155db861e2cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ racket -l errortrace -t parser.rkt | |
Profiling results | |
----------------- | |
Total cpu time observed: 3304ms (out of 3328ms) | |
Number of samples taken: 58 (once every 57ms) | |
==================================================================== | |
Caller | |
Idx Total Self Name+src Local% | |
ms(pct) ms(pct) Callee | |
==================================================================== | |
(profile-thunk ...) [1] 50.0% | |
[1] 3304(100.0%) 53(1.6%) (profile-thunk ...) ...c/pg_bench/parser.rkt:132:0 | |
(profile-thunk ...) [1] 50.0% | |
(call-with-input-file ...) [2] 49.2% | |
-------------------------------------------------------------------- | |
(profile-thunk ...) [1] 100.0% | |
[2] 3251(98.4%) 0(0.0%) (call-with-input-file ...) ...ench/parser.rkt:16:2 | |
(call-with-output-file ...) [3]100.0% | |
-------------------------------------------------------------------- | |
(call-with-input-file ...) [2] 100.0% | |
[3] 3251(98.4%) 0(0.0%) (call-with-output-file ...) ...nch/parser.rkt:18:6 | |
(call-with-output-file ...) [4]100.0% | |
-------------------------------------------------------------------- | |
(call-with-output-file ...) [3]100.0% | |
[4] 3251(98.4%) 0(0.0%) (call-with-output-file ...) ...ch/parser.rkt:20:10 | |
(for ...) [5] 100.0% | |
-------------------------------------------------------------------- | |
(for ...) [5] 44.7% | |
(call-with-output-file ...) [4] 55.3% | |
[5] 3251(98.4%) 347(10.5%) (for ...) ...anDez/aoc/pg_bench/parser.rkt:47:2 | |
(for ...) [5] 44.7% | |
(match ...) [6] 44.7% | |
-------------------------------------------------------------------- | |
(for ...) [5] 100.0% | |
[6] 2904(87.9%) 0(0.0%) (match ...) ...Dez/aoc/pg_bench/parser.rkt:50:4 | |
(define ...) [7] 52.7% | |
(fprintf ...) [8] 39.7% | |
(parse-case ...) [9] 7.6% | |
-------------------------------------------------------------------- | |
(match ...) [6] 100.0% | |
[7] 1530(46.3%) 0(0.0%) (define ...) ...ez/aoc/pg_bench/parser.rkt:78:0 | |
(let ...) [10] 70.0% | |
(match ...) [11] 26.3% | |
(define ...) [15] 3.7% | |
-------------------------------------------------------------------- | |
(match ...) [6] 100.0% | |
[8] 1153(34.9%) 740(22.4%) (fprintf ...) ...z/aoc/pg_bench/parser.rkt:82:2 | |
(opt-field ...) [12] 20.6% | |
(string-trim ...) [13] 10.3% | |
(opt-field ...) [14] 4.9% | |
-------------------------------------------------------------------- | |
(match ...) [6] 100.0% | |
[9] 220(6.7%) 220(6.7%) (parse-case ...) .../aoc/pg_bench/parser.rkt:53:12 | |
-------------------------------------------------------------------- | |
(define ...) [7] 100.0% | |
[10] 1072(32.4%) 0(0.0%) (let ...) ...Dez/aoc/pg_bench/phonetic.rkt:48:6 | |
(string-ljust ...) [16] 79.3% | |
(~r ...) [19] 20.7% | |
-------------------------------------------------------------------- | |
(define ...) [7] 100.0% | |
[11] 402(12.2%) 0(0.0%) (match ...) ...ez/aoc/pg_bench/parser.rkt:122:2 | |
(string-split ...) [18] 55.8% | |
(string-trim ...) [20] 29.2% | |
(string-replace ...) [21] 15.0% | |
-------------------------------------------------------------------- | |
(fprintf ...) [8] 100.0% | |
[12] 238(7.2%) 0(0.0%) (opt-field ...) ...l/aoc/pg_bench/parser.rkt:99:11 | |
(parse-integer ...) [17] 100.0% | |
-------------------------------------------------------------------- | |
(fprintf ...) [8] 100.0% | |
[13] 118(3.6%) 118(3.6%) (string-trim ...) ...aoc/pg_bench/parser.rkt:116:2 | |
-------------------------------------------------------------------- | |
(fprintf ...) [8] 100.0% | |
[14] 57(1.7%) 0(0.0%) (opt-field ...) .../aoc/pg_bench/parser.rkt:100:11 | |
(parse-integer ...) [22] 100.0% | |
-------------------------------------------------------------------- | |
(define ...) [7] 100.0% | |
[15] 56(1.7%) 0(0.0%) (define ...) ...nel/aoc/pg_bench/phonetic.rkt:40:0 | |
(define ...) [23] 100.0% | |
-------------------------------------------------------------------- | |
(let ...) [10] 100.0% | |
[16] 850(25.7%) 116(3.5%) (string-ljust ...) .../pg_bench/phonetic.rkt:50:18 | |
(remove-zeros ...) [24] 73.2% | |
(define ...) [25] 13.1% | |
-------------------------------------------------------------------- | |
(opt-field ...) [12] 100.0% | |
[17] 238(7.2%) 238(7.2%) (parse-integer ...) ...c/pg_bench/parser.rkt:99:22 | |
-------------------------------------------------------------------- | |
(match ...) [11] 100.0% | |
[18] 224(6.8%) 224(6.8%) (string-split ...) ...oc/pg_bench/parser.rkt:122:9 | |
-------------------------------------------------------------------- | |
(let ...) [10] 100.0% | |
[19] 222(6.7%) 222(6.7%) (~r ...) ...Dez/aoc/pg_bench/phonetic.rkt:48:19 | |
-------------------------------------------------------------------- | |
(match ...) [11] 100.0% | |
[20] 118(3.6%) 118(3.6%) (string-trim ...) ...oc/pg_bench/parser.rkt:122:23 | |
-------------------------------------------------------------------- | |
(match ...) [11] 100.0% | |
[21] 60(1.8%) 60(1.8%) (string-replace ...) ...pg_bench/parser.rkt:122:36 | |
-------------------------------------------------------------------- | |
(opt-field ...) [14] 100.0% | |
[22] 57(1.7%) 57(1.7%) (parse-integer ...) .../pg_bench/parser.rkt:100:22 | |
-------------------------------------------------------------------- | |
(define ...) [15] 100.0% | |
[23] 56(1.7%) 0(0.0%) (define ...) ...nel/aoc/pg_bench/phonetic.rkt:18:0 | |
(for ...) [26] 100.0% | |
-------------------------------------------------------------------- | |
(string-ljust ...) [16] 100.0% | |
[24] 622(18.8%) 0(0.0%) (remove-zeros ...) .../pg_bench/phonetic.rkt:51:19 | |
(string-squeeze ...) [27] 90.9% | |
(define ...) [29] 9.1% | |
-------------------------------------------------------------------- | |
(string-ljust ...) [16] 100.0% | |
[25] 112(3.4%) 0(0.0%) (define ...) ...nel/aoc/pg_bench/phonetic.rkt:29:0 | |
(for ...) [28] 100.0% | |
-------------------------------------------------------------------- | |
(define ...) [23] 100.0% | |
[26] 56(1.7%) 56(1.7%) (for ...) ...Dez/aoc/pg_bench/phonetic.rkt:22:2 | |
-------------------------------------------------------------------- | |
(remove-zeros ...) [24] 100.0% | |
[27] 566(17.1%) 0(0.0%) (string-squeeze ...) ...g_bench/phonetic.rkt:51:33 | |
(string-tr ...) [30] 90.1% | |
(define ...) [32] 9.9% | |
-------------------------------------------------------------------- | |
(define ...) [25] 100.0% | |
[28] 112(3.4%) 112(3.4%) (for ...) ...Dez/aoc/pg_bench/phonetic.rkt:33:2 | |
-------------------------------------------------------------------- | |
(remove-zeros ...) [24] 100.0% | |
[29] 56(1.7%) 0(0.0%) (define ...) ...oc/pg_bench/string-helper.rkt:18:0 | |
(for ...) [31] 100.0% | |
-------------------------------------------------------------------- | |
(string-squeeze ...) [27] 100.0% | |
[30] 510(15.4%) 0(0.0%) (string-tr ...) ...aoc/pg_bench/phonetic.rkt:51:49 | |
(string-replace ...) [33] 100.0% | |
-------------------------------------------------------------------- | |
(define ...) [29] 100.0% | |
[31] 56(1.7%) 56(1.7%) (for ...) ...l/aoc/pg_bench/string-helper.rkt:22:2 | |
-------------------------------------------------------------------- | |
(string-squeeze ...) [27] 100.0% | |
[32] 56(1.7%) 0(0.0%) (define ...) ...oc/pg_bench/string-helper.rkt:66:0 | |
(for ...) [34] 100.0% | |
-------------------------------------------------------------------- | |
(string-tr ...) [30] 100.0% | |
[33] 510(15.4%) 510(15.4%) (string-replace ...) ...g_bench/phonetic.rkt:51:60 | |
-------------------------------------------------------------------- | |
(define ...) [32] 100.0% | |
[34] 56(1.7%) 56(1.7%) (for ...) ...l/aoc/pg_bench/string-helper.rkt:68:2 | |
-------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment