22 lines
398 B
C++
22 lines
398 B
C++
#include <celero/Celero.h>
|
|
#include <alsk/alsk.h>
|
|
|
|
#include "common.h"
|
|
|
|
using namespace bench;
|
|
using namespace alsk::arg;
|
|
|
|
constexpr unsigned samples = 50, iterations = 100;
|
|
constexpr unsigned n = 100, vecSize = 100;
|
|
|
|
bool test(int& c) { return --c; }
|
|
|
|
void hwLoop(int& c) {
|
|
while(test(c)) taskV<vecSize>();
|
|
}
|
|
|
|
BASELINE(While, Handwritten, samples, iterations) {
|
|
int count = n;
|
|
hwLoop(count);
|
|
}
|