Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
bench_user.cpp File Reference
#include "../src/user.h"
#include <benchmark/benchmark.h>

Go to the source code of this file.

Functions

static void BM_PrintUser (benchmark::State &state)
 
 BENCHMARK (BM_PrintUser)
 
 BENCHMARK_MAIN ()
 

Variables

User fake_octo_user
 

Function Documentation

◆ BENCHMARK()

BENCHMARK ( BM_PrintUser )

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ BM_PrintUser()

static void BM_PrintUser ( benchmark::State & state)
static

Definition at line 12 of file c/benchmarks/bench_user.cpp.

12 {
13 for (auto _ : state) {
15 }
16}
User fake_octo_user
#define _(String)
Definition gi18n-lib.h:32
void print_github_user(const User *user)
Print a User's information to the console.
Definition user.c:230

References _, fake_octo_user, and print_github_user().

Variable Documentation

◆ fake_octo_user

User fake_octo_user
Initial value:
= {.login = "octocat",
.name = "The Octocat",
.company = "GitHub",
.location = "San Francisco"}

Definition at line 6 of file c/benchmarks/bench_user.cpp.

6 {.login = "octocat",
7 .name = "The Octocat",
8 .company = "GitHub",
9 .location = "San Francisco"};

Referenced by BM_PrintUser().