diff options
| author | Asko Nõmm <asko@nmm.ee> | 2026-04-10 15:55:56 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2026-04-10 15:55:56 +0300 |
| commit | eb6f23ab6138cc132154145720c503d2509ede1f (patch) | |
| tree | 4751b3c6c128073af662b8e7de1210d58744c775 /bench/ruuter/bench.cljc | |
| parent | c98df5a044bbca27a3f5d4a7ad124c4656ce8693 (diff) | |
Update Jank benchmark baseline and timer interop
Refresh Jank benchmark numbers with the latest run and fix the Jank clock helper interop in the benchmark harness so future benchmark runs complete successfully.
Diffstat (limited to 'bench/ruuter/bench.cljc')
| -rw-r--r-- | bench/ruuter/bench.cljc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/ruuter/bench.cljc b/bench/ruuter/bench.cljc index 71a02eb..de6be46 100644 --- a/bench/ruuter/bench.cljc +++ b/bench/ruuter/bench.cljc @@ -7,7 +7,7 @@ #?(:jank (cpp/raw "#include <chrono> -int64_t now_ns() +int64_t ruuter_bench_clock_now_ns_cpp() { return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() @@ -19,7 +19,7 @@ int64_t now_ns() "Returns the current time in nanoseconds." [] #?(:cljs (* (.now js/performance) 1e6) - :jank (cpp/now_ns) + :jank (cpp/ruuter_bench_clock_now_ns_cpp) :default (System/nanoTime))) (defn- ->long |
