Questions tagged [benchmarking]

4 questions
33
votes
4 answers

How do I measure performance of elisp code?

How do I measure the performance of my elisp code? What tools / external packages are available for me to measure time taken? In addition to total time, can I see a profile that shows time taken per-function? Can I profile memory usage too?
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
10
votes
1 answer

Are there any pre-existing benchmark suites for Emacs itself?

(This question is not about writing benchmarks/profiling elisp code, for that, see this question.) Do any benchmark suites exist for Emacs performance? I'm looking for something equivalent to the V8 interpreter team's standard benchmark or the pypy…
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
3
votes
0 answers

Profiling org-mode init file

My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was able to profile it with ProfileDotEmacs, but…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
1
vote
1 answer

Profiler/Benchmark Macro Like the `Time` in Common Lisp

To profile Elisp code, I tried benchmark.el and some profiler--prefixed built-in functions. But all their reports are either non-human-readable or inadequate. I think the ideal outcome is like what the time macro does in Common Lisp: CL-USER>…
shynur
  • 4,065
  • 1
  • 3
  • 23