]> git.sur5r.net Git - i3/i3.github.io/blob - _posts/2011-07-25-parallel-test-suite.markdown
fix docs/user-contributed/swapping-workspaces.html
[i3/i3.github.io] / _posts / 2011-07-25-parallel-test-suite.markdown
1 ---
2 date: 2011/07/25 15:53:00
3 title: "parallel test suite"
4 ---
5
6 As you may know, i3 v4.0 has a big test suite (currently 642 tests in 72
7 files). As the test suite grew over time, the time needed to run all tests has
8 increased. While we want to spend some time on removing the delays in the tests
9 by properly checking if the X11 events have been processed, there also is an
10 easier solution for now: Running the tests in parallel.
11
12 I just <a
13 href="http://code.stapelberg.de/git/i3/commit/?id=4dde5bb863d6670f6aa70ef2b714e98ea2474dcd">pushed
14 the commit to make our run script, complete-run.pl</a>, do exactly that.
15
16 Have a look at the time which was necessary to run a test before this commit:
17
18     All tests successful.
19     Files=72, Tests=642, 139 wallclock secs (135.87 usr  0.47 sys + 34.86 cusr  3.12 csys = 174.32 CPU)
20     Result: PASS
21
22 …and after this commit:
23
24     All tests successful.
25     Files=72, Tests=642, 48 wallclock secs ( 0.28 usr  0.40 sys + 37.04 cusr  3.37 csys = 41.09 CPU)
26     Result: PASS
27
28 48 seconds vs. 139 seconds is a pretty impressive speed-up :).