Mercurial > hg > svcore
comparison base/test/StressEventSeries.h @ 1628:6db21df9f376 single-point
Another timing note
author | Chris Cannam |
---|---|
date | Mon, 11 Mar 2019 14:59:11 +0000 |
parents | 1c21ddac220e |
children | b2048f350906 |
comparison
equal
deleted
inserted
replaced
1627:1c21ddac220e | 1628:6db21df9f376 |
---|---|
72 void longish_4() { longish_n(10000); } | 72 void longish_4() { longish_n(10000); } |
73 void longish_5() { longish_n(100000); } | 73 void longish_5() { longish_n(100000); } |
74 | 74 |
75 /* | 75 /* |
76 | 76 |
77 (T540p, Core i5-4330M @ 2.80GHz, 16G) | |
78 | |
77 cf5196881e3e: | 79 cf5196881e3e: |
78 | 80 |
79 Time for 1000 short events = 1.169ms | 81 Time for 1000 short events = 1.169ms |
80 Time for 10000 short events = 20.566ms | 82 Time for 10000 short events = 20.566ms |
81 Time for 100000 short events = 279.242ms | 83 Time for 100000 short events = 279.242ms |
118 Totals: 9 passed, 0 failed, 0 skipped, 0 blacklisted, 7804ms | 120 Totals: 9 passed, 0 failed, 0 skipped, 0 blacklisted, 7804ms |
119 | 121 |
120 7.97user 0.29system 0:08.31elapsed 99%CPU (0avgtext+0avgdata 706388maxresident)k | 122 7.97user 0.29system 0:08.31elapsed 99%CPU (0avgtext+0avgdata 706388maxresident)k |
121 0inputs+40outputs (0major+182225minor)pagefaults 0swaps | 123 0inputs+40outputs (0major+182225minor)pagefaults 0swaps |
122 | 124 |
125 1c21ddac220e (with simpler code): | |
126 | |
127 Time for 1000 short events = 1.12ms | |
128 Time for 10000 short events = 14.997ms | |
129 Time for 100000 short events = 238.818ms | |
130 Time for 1000000 short events = 3765.09ms | |
131 Time for 1000 longish events = 1.657ms | |
132 Time for 10000 longish events = 1130.59ms | |
133 Time for 100000 longish events = 1840.98ms | |
134 | |
135 Totals: 9 passed, 0 failed, 0 skipped, 0 blacklisted, 8081ms | |
136 | |
137 7.88user 0.23system 0:08.19elapsed 99%CPU (0avgtext+0avgdata 781688maxresident)k | |
138 0inputs+40outputs (0major+200425minor)pagefaults 0swaps | |
139 | |
123 */ | 140 */ |
124 }; | 141 }; |
125 | 142 |
126 #endif | 143 #endif |