diff options
| author | levlam <levlam@telegram.org> | 2021-10-19 18:11:16 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-10-19 18:11:16 +0300 |
| commit | db7aa28bdf69b36ed9e63025de96bc56fa59c283 (patch) | |
| tree | 332b269cd81177e3bba9c0334a3f440b6b4bdbc6 /benchmark | |
| parent | 44a186c7c15543b2b6541f7f8bed4aebaf630ed6 (diff) | |
A lot more minor improvements.
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_misc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/bench_misc.cpp b/benchmark/bench_misc.cpp index f5f57f4d6..148f24de7 100644 --- a/benchmark/bench_misc.cpp +++ b/benchmark/bench_misc.cpp @@ -105,7 +105,8 @@ BENCH(NewObj, "new struct, then delete") { #if !TD_THREAD_UNSUPPORTED BENCH(ThreadNew, "new struct, then delete in 2 threads") { - NewObjBench a, b; + NewObjBench a; + NewObjBench b; td::thread ta([&] { a.run(n / 2); }); td::thread tb([&] { b.run(n - n / 2); }); ta.join(); |
