From 7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 20 May 2023 13:37:47 +0000 Subject: Fix all the remaining misspellings -- BZ 25337 --- benchtests/bench-pthread-locks.c | 4 ++-- benchtests/bench-util.c | 4 ++-- benchtests/scripts/plot_strings.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'benchtests') diff --git a/benchtests/bench-pthread-locks.c b/benchtests/bench-pthread-locks.c index c20bb4f6dd..8d5d6d62c6 100644 --- a/benchtests/bench-pthread-locks.c +++ b/benchtests/bench-pthread-locks.c @@ -351,7 +351,7 @@ test_producer_thread (void *v) for (j = iters; j >= 0; --j) { - /* Aquire lock on the queue. */ + /* Acquire lock on the queue. */ pthread_mutex_lock (&m); /* if something's already there, wait. */ while (queued > 0) @@ -388,7 +388,7 @@ test_consumer_producer (long iters, int filler) for (long j = iters; j >= 0; --j) { - /* Aquire lock on the queue. */ + /* Acquire lock on the queue. */ pthread_mutex_lock (&m); /* Wait for something to be on the queue. */ while (queued == 0) diff --git a/benchtests/bench-util.c b/benchtests/bench-util.c index d684b78054..4996f8c4ac 100644 --- a/benchtests/bench-util.c +++ b/benchtests/bench-util.c @@ -22,12 +22,12 @@ static volatile unsigned int dontoptimize = 0; void bench_start (void) { - /* This loop should cause CPU to switch to maximal freqency. + /* This loop should cause CPU to switch to maximal frequency. This makes subsequent measurement more accurate. We need a side effect to prevent the loop being deleted by compiler. This should be enough to cause CPU to speed up and it is simpler than running loop for constant time. This is used when user does not have root - access to set a constant freqency. */ + access to set a constant frequency. */ for (int k = 0; k < START_ITER; k++) dontoptimize += 23 * dontoptimize + 2; diff --git a/benchtests/scripts/plot_strings.py b/benchtests/scripts/plot_strings.py index 1fb934d112..56b98da8a8 100755 --- a/benchtests/scripts/plot_strings.py +++ b/benchtests/scripts/plot_strings.py @@ -276,7 +276,7 @@ def plotRecursive(json_iter, routine, ifuncs, bench_variant, title, outpath, domain = np.unique(np.array(domain)) averages = [] - # Compute geometric mean if there are multple timings for each + # Compute geometric mean if there are multiple timings for each # parameter value. for parameter in domain: averages.append(gmean(timings[parameter])) -- cgit 1.4.1