From 3a4193d35e53e06a4d57ff771aa57639b4446a84 Mon Sep 17 00:00:00 2001 From: emeryberger Date: Sun, 21 Jan 2024 00:04:28 +0000 Subject: [PATCH] Reduced runtime and increased loop trip count. --- benchmarks/toy/toy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/toy/toy.cpp b/benchmarks/toy/toy.cpp index f825a4a..ec350b8 100644 --- a/benchmarks/toy/toy.cpp +++ b/benchmarks/toy/toy.cpp @@ -14,15 +14,15 @@ void a() { - for(x=0; x<2000000000; x++) {} + for(x=0; x<2000000; x++) {} } void b() { - for(y=0; y<1900000000; y++) {} + for(y=0; y<1900000; y++) {} } int main() { - for (int i = 0; i < 100; i++) { + for (int i = 0; i < 1000; i++) { std::thread a_thread(a); std::thread b_thread(b);