From 94fea38dbe94eb0bec498ac248111438c1ebccb8 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Mon, 23 Sep 2019 00:46:20 +0200 Subject: [PATCH] Adding map performance test --- openfpm_data | 2 +- .../vector_dist_gg_map_performance.hpp | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/openfpm_data b/openfpm_data index 3ead9a385..1235bd2fe 160000 --- a/openfpm_data +++ b/openfpm_data @@ -1 +1 @@ -Subproject commit 3ead9a385858ebc6b62da49afa1a519af51c146e +Subproject commit 1235bd2fee3b8e37245bc7b8b4cf509242202a1a diff --git a/src/Vector/performance/vector_dist_gg_map_performance.hpp b/src/Vector/performance/vector_dist_gg_map_performance.hpp index 7f0a85af8..a75ba1b14 100644 --- a/src/Vector/performance/vector_dist_gg_map_performance.hpp +++ b/src/Vector/performance/vector_dist_gg_map_performance.hpp @@ -155,7 +155,25 @@ BOOST_AUTO_TEST_CASE(vector_dist_gg_map_performance_write_report) report_ggm.graphs.add("graphs.graph.y.data(0).source","performance.map_3D.npart(#).mean"); report_ggm.graphs.add("graphs.graph.x.data(0).source","performance.map_3D.npart(#).n"); report_ggm.graphs.add("graphs.graph.y.data(0).title","Map function"); - report_ggm.graphs.add("graphs.graph.options.log_y","true"); + report_ggm.graphs.add("graphs.graph.options.log_y","false"); + + if (create_vcluster().rank() == 0) + { + boost::property_tree::xml_writer_settings<std::string> settings(' ', 4); + boost::property_tree::write_xml("particles_map_performance.xml", report_ggm.graphs,std::locale(),settings); + + std::string file_xml_ref(test_dir); + file_xml_ref += std::string("/openfpm_pdata/particles_map_performance_ref.xml"); + + GoogleChart cg; + + StandardXMLPerformanceGraph("particles_map_performance.xml",file_xml_ref,cg); + + addUpdtateTime(cg,create_vcluster().size()); + + if (create_vcluster().getProcessUnitID() == 0) + {cg.write("particles_map_performance.html");} + } } BOOST_AUTO_TEST_SUITE_END() -- GitLab