"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "benchmark/libponyrt/common/common.cc" between
ponyc-0.33.1.tar.gz and ponyc-0.33.2.tar.gz

About: Pony is an object-oriented, actor-model, capabilities-secure, high performance programming language.

common.cc  (ponyc-0.33.1):common.cc  (ponyc-0.33.2)
#include <benchmark/benchmark.h> #include <benchmark/benchmark.h>
static void $$$$$$_PauseResumeOverheadOnce(benchmark::State& st) { static void $$$$$$_PauseResumeOverheadOnce(benchmark::State& st) {
while (st.KeepRunning()) { while (st.KeepRunning()) {
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
} }
st.SetItemsProcessed(st.iterations()); st.SetItemsProcessed((int64_t)st.iterations());
} }
BENCHMARK($$$$$$_PauseResumeOverheadOnce); BENCHMARK($$$$$$_PauseResumeOverheadOnce);
static void $$$$$$_PauseResumeOverheadTwice(benchmark::State& st) { static void $$$$$$_PauseResumeOverheadTwice(benchmark::State& st) {
while (st.KeepRunning()) { while (st.KeepRunning()) {
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
} }
st.SetItemsProcessed(st.iterations()); st.SetItemsProcessed((int64_t)st.iterations());
} }
BENCHMARK($$$$$$_PauseResumeOverheadTwice); BENCHMARK($$$$$$_PauseResumeOverheadTwice);
static void $$$$$$_PauseResumeOverheadThrice(benchmark::State& st) { static void $$$$$$_PauseResumeOverheadThrice(benchmark::State& st) {
while (st.KeepRunning()) { while (st.KeepRunning()) {
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
st.PauseTiming(); st.PauseTiming();
st.ResumeTiming(); st.ResumeTiming();
} }
st.SetItemsProcessed(st.iterations()); st.SetItemsProcessed((int64_t)st.iterations());
} }
BENCHMARK($$$$$$_PauseResumeOverheadThrice); BENCHMARK($$$$$$_PauseResumeOverheadThrice);
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)