summaryrefslogtreecommitdiff
path: root/boost-1.78-graph-Skip-performance-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'boost-1.78-graph-Skip-performance-test.patch')
-rw-r--r--boost-1.78-graph-Skip-performance-test.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/boost-1.78-graph-Skip-performance-test.patch b/boost-1.78-graph-Skip-performance-test.patch
new file mode 100644
index 0000000..e66402b
--- /dev/null
+++ b/boost-1.78-graph-Skip-performance-test.patch
@@ -0,0 +1,40 @@
+From d65e2888de8097f28453b92fdd1770805c0f4063 Mon Sep 17 00:00:00 2001
+From: Liu Zixian <liuzixian4@huawei.com>
+Date: Mon, 12 Dec 2022 12:36:42 +0800
+Subject: [PATCH] Skip performance test
+
+Performance test in CI does not make sense.
+
+On x86-64, this test caused a float point exception,
+for the test data is too weak to generate an execution time
+larger than the timer precision.
+
+[ 298s] ====== BEGIN OUTPUT ======
+[ 298s] Generating graph...10000 vertices, 100000 edges.
+[ 298s] Running Dijkstra's with binary heap... 0.003279s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
+[ 298s] seconds.
+[ 298s] Running Dijkstra's with d-ary heap (d=4)...
+[ 298s] EXIT STATUS: 136
+[ 298s] ====== END OUTPUT ======
+
+Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
+---
+ libs/graph/test/Jamfile.v2 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libs/graph/test/Jamfile.v2 b/libs/graph/test/Jamfile.v2
+index a0c15ca7b..a6273b659 100644
+--- a/libs/graph/test/Jamfile.v2
++++ b/libs/graph/test/Jamfile.v2
+@@ -47,7 +47,7 @@ alias graph_test_regular :
+ [ run undirected_dfs.cpp ]
+ [ compile dfs_cc.cpp ]
+ [ compile dijkstra_cc.cpp ]
+- [ run dijkstra_heap_performance.cpp /boost/timer//boost_timer : 10000 ]
++ # [ run dijkstra_heap_performance.cpp /boost/timer//boost_timer : 10000 ]
+ [ run dijkstra_no_color_map_compare.cpp : 10000 ]
+ [ run disjoint_set_test.cpp ]
+ [ run dominator_tree_test.cpp ]
+--
+2.33.0
+