summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-09 19:47:35 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-09 19:47:35 -0500
commit2d898d1080458396107ab3c928301f1c09e87c72 (patch)
treea0e8f0ca65f3b8b6bdee05938c775c2fa1a8fdea
parent6f21808c510353f482766f541c79f5748b80dc3d (diff)
downloadragel-2d898d1080458396107ab3c928301f1c09e87c72.tar.gz
express perf loop calbration in terms of 1s
refs #22
-rw-r--r--test/cppscan1.rl4
-rw-r--r--test/mailbox1.rl4
-rw-r--r--test/rlscan.rl4
-rw-r--r--test/strings1.rl4
-rw-r--r--test/strings2.rl4
5 files changed, 10 insertions, 10 deletions
diff --git a/test/cppscan1.rl b/test/cppscan1.rl
index 79bc8fc5..17d5fe9a 100644
--- a/test/cppscan1.rl
+++ b/test/cppscan1.rl
@@ -8,8 +8,8 @@
#ifdef PERF_TEST
-/* initially calibrated 60s on yoho. */
-#define perf_iters ( 9505703ll * S / 60ll )
+/* Calibrated to 1s on yoho. */
+#define perf_iters ( 158428ll * S )
int _perf_dummy = 0;
#define perf_printf(...) ( _perf_dummy += 1 )
diff --git a/test/mailbox1.rl b/test/mailbox1.rl
index 2e8a3938..7144f0fe 100644
--- a/test/mailbox1.rl
+++ b/test/mailbox1.rl
@@ -13,8 +13,8 @@
#ifdef PERF_TEST
-/* initially calibrated 60s on yoho. */
-#define perf_iters ( 8064516ll * S / 60ll )
+/* Calibrated to 1s on yoho. */
+#define perf_iters ( 134408ll * S )
int _perf_dummy = 0;
#define perf_printf(...) ( _perf_dummy += 1 )
diff --git a/test/rlscan.rl b/test/rlscan.rl
index 8c38544d..ff124a37 100644
--- a/test/rlscan.rl
+++ b/test/rlscan.rl
@@ -13,8 +13,8 @@
#ifdef PERF_TEST
-/* initially calibrated 60s on yoho. */
-#define perf_iters ( 95502709ll * S / 60ll )
+/* Calibrated to 1s on yoho. */
+#define perf_iters ( 240984ll * S )
int _perf_dummy = 0;
#define perf_cout(...) ( _perf_dummy += 1 )
diff --git a/test/strings1.rl b/test/strings1.rl
index cbc5c693..9be440fb 100644
--- a/test/strings1.rl
+++ b/test/strings1.rl
@@ -7,8 +7,8 @@
#ifdef PERF_TEST
-/* initially calibrated 60s on yoho. */
-#define perf_iters ( 206896551ll * S / 60ll )
+/* Calibrated to 1s on yoho. */
+#define perf_iters ( 3448275ll * S )
int _perf_dummy = 0;
#define perf_printf(...) ( _perf_dummy += 1 )
diff --git a/test/strings2.rl b/test/strings2.rl
index 6a6421ce..714b3733 100644
--- a/test/strings2.rl
+++ b/test/strings2.rl
@@ -13,8 +13,8 @@
#ifdef PERF_TEST
-/* initially calibrated to 60s on yoho. */
-#define perf_iters ( 244897959ll * S / 60ll )
+/* Calibrated to 1s on yoho. */
+#define perf_iters ( 4081632ll * S )
int _perf_dummy = 0;
#define perf_printf(...) ( _perf_dummy += 1 )