Lolly 1.4.27
Loading...
Searching...
No Matches
Functions | Variables
url_bench.cpp File Reference
#include "sys_utils.hpp"
#include "url.hpp"
#include <nanobench.h>
Include dependency graph for url_bench.cpp:

Go to the source code of this file.

Functions

int main ()
 

Variables

static ankerl::nanobench::Bench bench
 

Detailed Description

Benchmark for url

Author
Darcy Shen
Date
2024

Definition in file url_bench.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 15 of file url_bench.cpp.

15 {
17 bench.run ("url construct 8", [&] { url ("a/b/c/d/e/f/g/h"); });
18 bench.run ("url descends equal",
19 [&] { descends (url ("a/b/c"), url ("a/b/c")); });
20 bench.run ("url descends concat 2",
21 [&] { descends (url ("a/b/c/d/e/f"), url ("a/b")); });
22 bench.run ("url descends concat 8", [&] {
23 descends (url ("a/b/c/d/e/f/g/h/i/j"), url ("a/b/c/d/e/f/g/h"));
24 });
25}
Definition url.hpp:37
void init_tbox()
bool descends(url u, url base)
Definition url.cpp:573
static ankerl::nanobench::Bench bench
Definition url_bench.cpp:12

Variable Documentation

◆ bench

Definition at line 12 of file url_bench.cpp.