diff options
| author | Tyge Løvset <[email protected]> | 2022-05-30 17:08:09 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-30 17:08:09 +0200 |
| commit | 6a5ec101dc606a9bb13ef5a5ee64ab001decc666 (patch) | |
| tree | 7b368fdcc1e7055bd1d327f29c4c108eb604c751 /benchmarks | |
| parent | 58bb58e7980d1eae175ed66dbe873893a05ab81e (diff) | |
| download | STC-modified-6a5ec101dc606a9bb13ef5a5ee64ab001decc666.tar.gz STC-modified-6a5ec101dc606a9bb13ef5a5ee64ab001decc666.zip | |
Updated benchmarks and renamed utf8utils.c to utf8code.c
Diffstat (limited to 'benchmarks')
| -rw-r--r-- | benchmarks/misc/cbits_benchmark.cpp | 2 | ||||
| -rw-r--r-- | benchmarks/misc/sso_bench.cpp | 3 | ||||
| -rw-r--r-- | benchmarks/misc/string_bench_STC.cpp | 2 | ||||
| -rw-r--r-- | benchmarks/misc/string_bench_STD.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/picobench/picobench_cmap.cpp | 2 | ||||
| -rw-r--r-- | benchmarks/picobench/picobench_csmap.cpp | 2 | ||||
| -rw-r--r-- | benchmarks/plotbench/cdeq_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/plotbench/clist_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/plotbench/cmap_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/plotbench/cpque_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/plotbench/csmap_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/plotbench/cvec_benchmark.cpp | 1 | ||||
| -rw-r--r-- | benchmarks/shootout_hashmaps.cpp | 1 |
13 files changed, 18 insertions, 1 deletions
diff --git a/benchmarks/misc/cbits_benchmark.cpp b/benchmarks/misc/cbits_benchmark.cpp index 50e19a7c..dd709db1 100644 --- a/benchmarks/misc/cbits_benchmark.cpp +++ b/benchmarks/misc/cbits_benchmark.cpp @@ -4,7 +4,7 @@ #include <ctime> // timer enum{ N=1<<22 }; // 4.2 mill. - +#define i_static #include <stc/crandom.h> #define i_type cbits #define i_len N diff --git a/benchmarks/misc/sso_bench.cpp b/benchmarks/misc/sso_bench.cpp index f503ffb0..bcc43ba0 100644 --- a/benchmarks/misc/sso_bench.cpp +++ b/benchmarks/misc/sso_bench.cpp @@ -3,7 +3,10 @@ #include <vector> #include <unordered_set> #include <chrono> +#define i_static #include <stc/crandom.h> +#define i_static +#include <stc/cstr.h> #define i_type stccon #define i_val_str diff --git a/benchmarks/misc/string_bench_STC.cpp b/benchmarks/misc/string_bench_STC.cpp index d5b3a306..2e05dae3 100644 --- a/benchmarks/misc/string_bench_STC.cpp +++ b/benchmarks/misc/string_bench_STC.cpp @@ -4,7 +4,9 @@ #include <iostream> #include <iomanip> #include <chrono> +#define i_static #include <stc/cstr.h> // string +#define i_static #include <stc/csview.h> // string_view #define i_key_str diff --git a/benchmarks/misc/string_bench_STD.cpp b/benchmarks/misc/string_bench_STD.cpp index 595ab632..5f033ca1 100644 --- a/benchmarks/misc/string_bench_STD.cpp +++ b/benchmarks/misc/string_bench_STD.cpp @@ -10,6 +10,7 @@ #include <vector> #include <map> #include <unordered_map> +#define i_static #include <stc/cstr.h> std::vector<std::string> read_file(const char* name) diff --git a/benchmarks/picobench/picobench_cmap.cpp b/benchmarks/picobench/picobench_cmap.cpp index d72ea12f..30170061 100644 --- a/benchmarks/picobench/picobench_cmap.cpp +++ b/benchmarks/picobench/picobench_cmap.cpp @@ -1,4 +1,6 @@ +#define i_static
#include <stc/crandom.h>
+#define i_static
#include <stc/cstr.h>
#include <cmath>
#include <string>
diff --git a/benchmarks/picobench/picobench_csmap.cpp b/benchmarks/picobench/picobench_csmap.cpp index f5235ce1..3f203cc8 100644 --- a/benchmarks/picobench/picobench_csmap.cpp +++ b/benchmarks/picobench/picobench_csmap.cpp @@ -1,5 +1,7 @@ #include <iostream>
+#define i_static
#include <stc/crandom.h>
+#define i_static
#include <stc/cstr.h>
#include <cmath>
#include <string>
diff --git a/benchmarks/plotbench/cdeq_benchmark.cpp b/benchmarks/plotbench/cdeq_benchmark.cpp index b6eebb26..057a50b8 100644 --- a/benchmarks/plotbench/cdeq_benchmark.cpp +++ b/benchmarks/plotbench/cdeq_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#ifdef __cplusplus
diff --git a/benchmarks/plotbench/clist_benchmark.cpp b/benchmarks/plotbench/clist_benchmark.cpp index c82c9506..dfa043f0 100644 --- a/benchmarks/plotbench/clist_benchmark.cpp +++ b/benchmarks/plotbench/clist_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#ifdef __cplusplus
diff --git a/benchmarks/plotbench/cmap_benchmark.cpp b/benchmarks/plotbench/cmap_benchmark.cpp index a22aee86..1021ab1c 100644 --- a/benchmarks/plotbench/cmap_benchmark.cpp +++ b/benchmarks/plotbench/cmap_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#ifdef __cplusplus
diff --git a/benchmarks/plotbench/cpque_benchmark.cpp b/benchmarks/plotbench/cpque_benchmark.cpp index 4a9e830a..b38bed1a 100644 --- a/benchmarks/plotbench/cpque_benchmark.cpp +++ b/benchmarks/plotbench/cpque_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#define i_val float
diff --git a/benchmarks/plotbench/csmap_benchmark.cpp b/benchmarks/plotbench/csmap_benchmark.cpp index baf4c879..778d6894 100644 --- a/benchmarks/plotbench/csmap_benchmark.cpp +++ b/benchmarks/plotbench/csmap_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#ifdef __cplusplus
diff --git a/benchmarks/plotbench/cvec_benchmark.cpp b/benchmarks/plotbench/cvec_benchmark.cpp index 357cfcf0..c23b689a 100644 --- a/benchmarks/plotbench/cvec_benchmark.cpp +++ b/benchmarks/plotbench/cvec_benchmark.cpp @@ -1,5 +1,6 @@ #include <stdio.h>
#include <time.h>
+#define i_static
#include <stc/crandom.h>
#ifdef __cplusplus
diff --git a/benchmarks/shootout_hashmaps.cpp b/benchmarks/shootout_hashmaps.cpp index 62ba5979..7c23fdb8 100644 --- a/benchmarks/shootout_hashmaps.cpp +++ b/benchmarks/shootout_hashmaps.cpp @@ -1,5 +1,6 @@ #include <stdio.h> #include <time.h> +#define i_static #include <stc/crandom.h> #include <stc/cstr.h> #include "external/khash.h" |
