From: Roger B. <ro...@ro...> - 2012-01-25 18:54:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24/01/12 06:11, StevenBoscarine wrote: > I wanted to know which 100 lines were executed the most in a test. A far better approach is to run a profiler to find out what is taking the most execution time. Lines of code are not equal to each other. As an example one of my test suites was taking about 10 minutes. Under the hood it was hammering a SQLite database a lot. Changing the test suite so that the database is on a ramdisk (tmpfs) brought it down to about 50 seconds. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8gT9EACgkQmOOfHg372QRtlgCbB6t4WgaIKoTCj52vnlcLwYS4 veEAnjMoc8nEONHkPkcm3h2E9L+xV7AB =anLe -----END PGP SIGNATURE----- |