#include "lolly/data/string_u16.hpp"
#include <nanobench.h>
Go to the source code of this file.
◆ main()
Definition at line 20 of file string_u16_bench.cpp.
20 {
22#ifdef OS_WASM
23 bench.minEpochIterations (2000);
24#else
25 bench.minEpochIterations (200000);
26#endif
28 bench.run (
"equality of string", [&] {
31 });
32 bench.run (
"equality of larger string", [&] {
34 b (
u"equality of larger string");
36 });
37 bench.run (
"compare string", [&] {
40 });
41 bench.run (
"compare larger string", [&] {
43 b (
u"compare LARGEr string");
45 });
46 bench.run (
"slice string", [&] {
48 a (2, 3);
49 });
50 bench.run (
"slice string with larger range", [&] {
52 a (1, 6);
53 });
54 bench.run (
"concat string", [&] {
57 });
58 bench.run (
"append string", [&] {
61 });
62}
The list class represents a linked list.
static ankerl::nanobench::Bench bench
◆ bench