[latex3-commits] [latex3/latex3] main: Slowdown a l3benchmark slow branch code, slightly (817e16d11)
github at latex-project.org
github at latex-project.org
Wed Oct 4 23:20:00 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/817e16d1103092cf723d7b6e8d72374864bd56ec
>---------------------------------------------------------------
commit 817e16d1103092cf723d7b6e8d72374864bd56ec
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Thu Oct 5 04:11:08 2023 +0800
Slowdown a l3benchmark slow branch code, slightly
to hopefully avoid getting "0 seconds (0 ops)"
>---------------------------------------------------------------
817e16d1103092cf723d7b6e8d72374864bd56ec
l3experimental/CHANGELOG.md | 4 ++++
l3experimental/l3benchmark/testfiles/m3benchmark002.lvt | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/l3experimental/CHANGELOG.md b/l3experimental/CHANGELOG.md
index e440354bf..15f6b352d 100644
--- a/l3experimental/CHANGELOG.md
+++ b/l3experimental/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Changed
+- Slowdown a l3benchmark slow branch code slightly to gain test suite
+ robustness (issue \#1274)
+
## [2023-05-11]
### Changed
diff --git a/l3experimental/l3benchmark/testfiles/m3benchmark002.lvt b/l3experimental/l3benchmark/testfiles/m3benchmark002.lvt
index efad44ea8..52450846f 100644
--- a/l3experimental/l3benchmark/testfiles/m3benchmark002.lvt
+++ b/l3experimental/l3benchmark/testfiles/m3benchmark002.lvt
@@ -28,7 +28,7 @@
{
\benchmark_silent:n { \prg_do_nothing: }
\fp_set_eq:NN \l_test_fast_fp \g_benchmark_ops_fp
- \benchmark_silent:n { \int_zero:N \l_tmpa_int }
+ \benchmark_silent:n { \int_set:Nn \l_tmpa_int { 1 } }
\fp_set_eq:NN \l_test_slow_fp \g_benchmark_ops_fp
\fp_compare:nNnTF \l_test_fast_fp < \l_test_slow_fp
{ \TRUE }
More information about the latex3-commits
mailing list.