summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/misc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-30 17:08:09 +0200
committerTyge Løvset <[email protected]>2022-05-30 17:08:09 +0200
commit6a5ec101dc606a9bb13ef5a5ee64ab001decc666 (patch)
tree7b368fdcc1e7055bd1d327f29c4c108eb604c751 /benchmarks/misc
parent58bb58e7980d1eae175ed66dbe873893a05ab81e (diff)
downloadSTC-modified-6a5ec101dc606a9bb13ef5a5ee64ab001decc666.tar.gz
STC-modified-6a5ec101dc606a9bb13ef5a5ee64ab001decc666.zip
Updated benchmarks and renamed utf8utils.c to utf8code.c
Diffstat (limited to 'benchmarks/misc')
-rw-r--r--benchmarks/misc/cbits_benchmark.cpp2
-rw-r--r--benchmarks/misc/sso_bench.cpp3
-rw-r--r--benchmarks/misc/string_bench_STC.cpp2
-rw-r--r--benchmarks/misc/string_bench_STD.cpp1
4 files changed, 7 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)