[PATCH] D39506: Add a script to run various benchmarks and send the result to lnt

Rafael Ávila de Espíndola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 13:20:42 PDT 2017


rafael created this revision.

Lnt is both a server and a set of script for benchmarking llvm.

I don't think it makes sense to use the scripts for lld since our benchmarks are quite different.

The server on the other hand is very general and seems to work well for tracking any quantities.

This patch adds a script to lld that can be used to run various benchmarks and send the result to lnt.

The benchmarks are assumed to each be a response file in a subdirectory.  Each subdirectory can contain multiple response files. That can be used to have a plain response.txt and a response-icf.txt for example. The name of each benchmark is the combination of the directory name and the "flavor": firefox-gc, chromium-icf, etc.

For the first version the script uses perf and collects all the metrics that a plain "perf stat" prints.

This script can then be used by a developer to test a patch or by a bot to keep track of lld's performance.


https://reviews.llvm.org/D39506

Files:
  utils/benchmark.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39506.121171.patch
Type: text/x-patch
Size: 3770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171101/4daba896/attachment.bin>


More information about the llvm-commits mailing list