set -e git show-ref HEAD git stash make &> /dev/null emacs -q --batch --eval "(progn (add-to-list 'load-path \"~/.emacs.d/apps/org-mode/lisp\") (find-file \"~/test-agenda.org\") (org-agenda-file-to-front) (profiler-start 'cpu+mem) (let ((f (float-time))) (org-agenda-list) (profiler-report) (message \"================\n%s\n\n\" (- (float-time) f))) (princ (buffer-string)))" git stash pop make &> /dev/null emacs -q --batch --eval "(progn (add-to-list 'load-path \"~/.emacs.d/apps/org-mode/lisp\") (find-file \"~/test-agenda.org\") (org-agenda-file-to-front) (profiler-start 'cpu+mem) (let ((f (float-time))) (org-agenda-list) (profiler-report) (message \"================\n%s\n\n\" (- (float-time) f))) (princ (buffer-string)))" a2febd210182d9e1a37b0d7fd9ee007a10abc4bc refs/remotes/origin/HEAD Saved working directory and index state WIP on master: a2febd2 Merge branch 'maint' HEAD is now at a2febd2 Merge branch 'maint' OVERVIEW Setting `org-agenda-files' temporarily since "emacs -q" would overwrite customizations File added to front of agenda file list CPU and memory profiler started ================ 12.207549810409546 + normal-top-level 46,533,611 74% + command-line-1 6,385,759 10% + command-line 5,800,077 9% + eval 2,639,778 4% + progn 690,611 1% + let 70,947 0% + apply 20,536 0% + org-agenda-get-sexps 12,332 0% + load-with-code-conversion 8,188 0% + profiler-calltree-walk 8,188 0% + org-agenda-prepare 6,482 0% + byte-code 4,272 0% + diary-font-lock-keywords 4,144 0% + org-agenda-list 1,114 0% + file-truename 1,100 0% + load 1,040 0% # On branch master # Changes not staged for commit: # (use "git add ..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # # modified: lisp/org.el # no changes added to commit (use "git add" and/or "git commit -a") Dropped refs/stash@{0} (a8007c5e99e8481d82ec8303c75069e150a81874) OVERVIEW Setting `org-agenda-files' temporarily since "emacs -q" would overwrite customizations File added to front of agenda file list CPU and memory profiler started ================ 12.091503858566284 + normal-top-level 45,399,311 73% + command-line-1 6,522,990 10% + command-line 5,875,736 9% + eval 3,803,175 6% + progn 316,014 0% + let 84,388 0% + apply 16,376 0% + org-agenda-get-sexps 8,188 0% + load-with-code-conversion 8,188 0% + profiler-calltree-walk 8,188 0% + profiler-report-setup-buffer 8,188 0% + org-agenda-list 4,296 0% + diary-font-lock-keywords 4,144 0% + org-agenda-get-day-entries 4,144 0% + require 3,120 0% + org-agenda-prepare 2,338 0% + file-truename 2,156 0% + tramp-completion-file-name-handler 1,040 0% + byte-code 104 0% I generated test-agenda.org using this snippet: