*.exe
*.out
*.app
+*~
+subprojects/packagecache
+subprojects/benchmark-1.5.2
--- /dev/null
+#include <benchmark/benchmark.h>
+
+static void BM_StringCreation(benchmark::State& state) {
+ for (auto _ : state)
+ std::string empty_string;
+}
+// Register the function as a benchmark
+BENCHMARK(BM_StringCreation);
+
+// Define another benchmark
+static void BM_StringCopy(benchmark::State& state) {
+ std::string x = "hello";
+ for (auto _ : state)
+ std::string copy(x);
+}
+BENCHMARK(BM_StringCopy);
+
+BENCHMARK_MAIN();
--- /dev/null
+project('interpreter_trials', 'cpp',
+ default_options : ['cpp_std=c++17'])
+
+benchmark_proj = subproject('google-benchmark')
+benchmark_dep = benchmark_proj.get_variable('google_benchmark_dep')
+
+executable('interpreter_trials', 'interpreter_trials.cpp', dependencies : benchmark_dep)
--- /dev/null
+[wrap-file]
+directory = benchmark-1.5.2
+source_url = https://github.com/google/benchmark/archive/v1.5.2.zip
+source_filename = benchmark-1.5.2.zip
+source_hash = 21e6e096c9a9a88076b46bd38c33660f565fa050ca427125f64c4a8bf60f336b
+patch_url = https://wrapdb.mesonbuild.com/v1/projects/google-benchmark/1.5.2/1/get_zip
+patch_filename = google-benchmark-1.5.2-1-wrap.zip
+patch_hash = 49f41e4a7e68ac258b6509b9de9857441903be4fb473454c4cba8be885f0c6c3
+