Repository navigation
Expand file tree
/
Copy pathREADME.perf
More file actions
75 lines (60 loc) · 2.87 KB
/
Copy pathREADME.perf
File metadata and controls
75 lines (60 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
The make target perf_report will run the perf test (from test.c) and
create some stats organized by current HEAD and CPU type. These are
useful for comparing changes between commits.
NOTE: Running the perf_report requires the following tools to be available:
- git
- inxi
- lscpu
- perf
- perl
Effectively, this means that the perf reports are Linux-specific.
Note that to generate the full inxi report you need to run it as root
(inxi -m requires root to use dmidecode). However, this is only needed
to generate the expected inxi.log file (see below). During regular
development/testing and/or if you'd rather not run it as root, all the
tests and reports will work fine as a regular user.
The following files will be generated under ./perf_reports/%h_%f/$HOSTNAME_$CPUID/
inxi.log - System info from inxi
lscpu.log - CPU info from lscpu
test_1.log - Test run and perf stats output, 5 million entries
test_2.log - Test run and perf stats output, 10 million entries
test_3.log - Test run and perf stats output, 50 million entries
%h = git abbreviated commit tag for most recent commit (see git log)
%f = git commit title, sanitized (see git log)
In other words, to generate a final report for a given commit you'll
want to commit the finalized changes and then run perf_report.
Note also that the result saved is from a single run. Ideally it
should average many runs.
Short summary of recorded runs below (see perf_reports directory for
full details). The table shows elapsed time (seconds) for each of the
three tests.
na_GenuineIntel-6.58.9_32K Quad core Intel Core i7-3632QM
----------------------------------------------------------------------
test_1 test_2 test_3
v1.0 1.1 2.6 13.8
b9dc070 1.2 2.6 13.8
cb68f60 1.1 2.7 14.0
c558523 0.8 1.7 9.1
cel2_GenuineIntel-6.58.9_32K Dual core Intel Celeron G1610
----------------------------------------------------------------------
test_1 test_2 test_3
v1.0 1.4 3.0 16.2
b9dc070 1.4 3.0 16.1
cb68f60 1.4 3.0 16.0
c558523 0.9 1.8 9.6
v1.1 0.9 1.8 9.6
na_GenuineIntel-6.55.8_24K Quad core Intel Pentium CPU N3530
----------------------------------------------------------------------
test_1 test_2 test_3
v1.0 5.8 11.9 63.2
b9dc070 7.0 14.6 77.1
cb68f60 6.5 13.2 69.0
c558523 3.7 7.6 38.7
boq_GenuineIntel-6.54.9_24K Dual core Intel Atom S1260
----------------------------------------------------------------------
test_1 test_2 test_3
v1.0 9.3 19.3 126.4
b9dc070 9.4 19.3 127.3
cb68f60 9.6 19.4 126.7
c558523 7.6 15.9 86.7
v1.1 7.7 16.0 85.7