{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T08:04:14Z","timestamp":1790928254625,"version":"4.1.0"},"reference-count":59,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000266","name":"EPSRC","doi-asserted-by":"crossref","award":["EP\/T006544\/1, EP\/K011715\/1, EP\/K034413\/1, EP\/L00058X\/1, EP\/N027833\/1, EP\/N028201\/1, EP\/T006544\/1, EP\/T014709\/1, EP\/V000462\/1"],"award-info":[{"award-number":["EP\/T006544\/1, EP\/K011715\/1, EP\/K034413\/1, EP\/L00058X\/1, EP\/N027833\/1, EP\/N028201\/1, EP\/T006544\/1, EP\/T014709\/1, EP\/V000462\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>This paper presents CAMP, a new static performance analysis framework for message-passing concurrent and distributed systems, based on the theory of multiparty session types (MPST). Understanding the run-time performance of concurrent and distributed systems is of great importance for the identification of bottlenecks and optimisation opportunities. In the message-passing setting, these bottlenecks are generally communication overheads and synchronisation times. Despite its importance, reasoning about these intensional properties of software, such as performance, has received little attention, compared to verifying extensional properties, such as correctness. Behavioural protocol specifications based on sessions types capture not only extensional, but also intensional properties of concurrent and distributed systems. CAMP augments MPST with annotations of communication latency and local computation cost, defined as estimated execution times, that we use to extract cost equations from protocol descriptions. CAMP is also extendable to analyse asynchronous communication optimisation built on a recent advance of session type theories. We apply our tool to different existing benchmarks and use cases in the literature with a wide range of communication protocols, implemented in C, MPI-C, Scala, Go, and OCaml. Our benchmarks show that, in most of the cases, we predict an upper-bound on the real execution costs with &lt; 15% error.<\/jats:p>","DOI":"10.1145\/3428223","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T23:40:14Z","timestamp":1606261214000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":16,"title":["CAMP: cost-aware multiparty session protocols"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6939-4189","authenticated-orcid":false,"given":"David","family":"Castro-Perez","sequence":"first","affiliation":[{"name":"Imperial College London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3925-8557","authenticated-orcid":false,"given":"Nobuko","family":"Yoshida","sequence":"additional","affiliation":[{"name":"Imperial College London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/1562764.1562783"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110287"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.23638\/LMCS-13(4:25)2017"},{"key":"e_1_2_2_4_1","first-page":"283","volume-title":"Meeting Deadlines Together. In 26th International Conference on Concurrency Theory (LIPIcs","volume":"42","author":"Bocchi Laura","year":"2015"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17184-1_21"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44584-6_29"},{"key":"e_1_2_2_7_1","volume-title":"30th International Conference on Concurrency Theory (LIPIcs","volume":"140","author":"Bravetti Mario","year":"2019"},{"key":"e_1_2_2_8_1","doi-asserted-by":"crossref","unstructured":"Mario Bravetti Marco Carbone and Gianluigi Zavattaro. 2017. Undecidability of asynchronous session subtyping. Inf. Comput. 256 ( 2017 ) 300-320.  Mario Bravetti Marco Carbone and Gianluigi Zavattaro. 2017. Undecidability of asynchronous session subtyping. Inf. Comput. 256 ( 2017 ) 300-320.","DOI":"10.1016\/j.ic.2017.07.010"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2018.02.010"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15375-4_16"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129514000218"},{"key":"e_1_2_2_12_1","volume-title":"Distributed Programming using Role-Parametric Session Types in Go (POPL'19)","author":"Castro David"},{"key":"e_1_2_2_13_1","volume-title":"CAMP: Cost-Aware Multiparty Session Protocols. arXiv","author":"Castro-Perez David","year":"2020"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3377555.3377889"},{"key":"e_1_2_2_15_1","unstructured":"Tzu-Chun Chen Mariangiola Dezani-Ciancaglini Alceste Scalas and Nobuko Yoshida. 2017. On the Preciseness of Subtyping in Session Types. LMCS 13 ( 2017 ) 1-62. Issue 2.  Tzu-Chun Chen Mariangiola Dezani-Ciancaglini Alceste Scalas and Nobuko Yoshida. 2017. On the Preciseness of Subtyping in Session Types. LMCS 13 ( 2017 ) 1-62. Issue 2."},{"key":"e_1_2_2_16_1","volume-title":"On the Preciseness of Subtyping in Session Types","author":"Chen Tzu-Chun"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-18941-3_4"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236786"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209108.3209146"},{"key":"e_1_2_2_20_1","first-page":"272","volume-title":"Nested Protocols in Session Types. In CONCUR 2012-Concurrency Theory, Maciej Koutny and Irek Ulidowski (Eds.). Springer Berlin Heidelberg","author":"Demangeon Romain","year":"2012"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.FSTTCS.2015.560"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39212-2_18"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-8(4:6)2012"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-30734-3_12"},{"key":"e_1_2_2_25_1","unstructured":"Julia Gabet and Nobuko Yoshida. 2020. Static Race Detection and Mutex Safety and Liveness for Go Programs (LIPIcs). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik. To appear in ECOOP' 20.  Julia Gabet and Nobuko Yoshida. 2020. Static Race Detection and Mutex Safety and Liveness for Go Programs (LIPIcs). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik. To appear in ECOOP' 20."},{"key":"e_1_2_2_26_1","doi-asserted-by":"crossref","unstructured":"Simon Gay and Antonio Ravara (Eds.). 2017. Behavioural Types: from Theory to Tools. River Publishers.  Simon Gay and Antonio Ravara (Eds.). 2017. Behavioural Types: from Theory to Tools. River Publishers.","DOI":"10.13052\/rp-9788793519817"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3434297"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837646"},{"key":"e_1_2_2_29_1","volume-title":"Java Concurrency in Practice","author":"Goetz Brian"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371092"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/2362389.2362393"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46669-8_6"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328472"},{"key":"e_1_2_2_34_1","unstructured":"Raymond Hu. 2017. Distributed Programming Using Java APIs Generated from Session Types. Behavioural Types: from Theory to Tools ( 2017 ) 287-308.  Raymond Hu. 2017. Distributed Programming Using Java APIs Generated from Session Types. Behavioural Types: from Theory to Tools ( 2017 ) 287-308."},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54494-5_7"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.240882"},{"key":"e_1_2_2_37_1","unstructured":"Keigo Imai Rumyana Neykova Nobuko Yoshida and Shoji Yuen. 2020. Multiparty Session Programming with Global Protocol Combinators. https:\/\/github.com\/keigoi\/ocaml-mpst (LIPIcs). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik. To appear in ECOOP' 20.  Keigo Imai Rumyana Neykova Nobuko Yoshida and Shoji Yuen. 2020. Multiparty Session Programming with Global Protocol Combinators. https:\/\/github.com\/keigoi\/ocaml-mpst (LIPIcs). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik. To appear in ECOOP' 20."},{"key":"e_1_2_2_38_1","first-page":"67","volume-title":"Proc. of the 4th Int. Workshop on Programming Based on Actors Agents & Decentralized Control","author":"Shams"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254075"},{"key":"e_1_2_2_40_1","doi-asserted-by":"crossref","unstructured":"K. Krommydas et al. 2016. OpenDwarfs: Characterization of Dwarf-Based Benchmarks on Fixed and Reconfigurable Architectures. J Sign Process Syst 85 ( 2016 ) 373--392.  K. Krommydas et al. 2016. OpenDwarfs: Characterization of Dwarf-Based Benchmarks on Fixed and Reconfigurable Architectures. J Sign Process Syst 85 ( 2016 ) 373--392.","DOI":"10.1007\/s11265-015-1051-z"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/11817963_24"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180157"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54458-7_26"},{"key":"e_1_2_2_44_1","volume-title":"Concurrent programming in Java-design principles and patterns","author":"Lea Doug"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02273-9_16"},{"key":"e_1_2_2_46_1","doi-asserted-by":"crossref","unstructured":"Dimitris Mostrous and Nobuko Yoshida. 2015. Session Typing and Asynchronous Subtying for Higher-Order \u03c0-Calculus. Info.& Comp. 241 ( 2015 ) 227-263.  Dimitris Mostrous and Nobuko Yoshida. 2015. Session Typing and Asynchronous Subtying for Higher-Order \u03c0-Calculus. Info.& Comp. 241 ( 2015 ) 227-263.","DOI":"10.1016\/j.ic.2015.02.002"},{"key":"e_1_2_2_47_1","volume-title":"ESOP (LNCS","author":"Mostrous Dimitris"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00165-017-0420-8"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46663-6_11"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/2892208.2892232"},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-30561-0_15"},{"key":"e_1_2_2_52_1","volume-title":"Types and programming languages","author":"Pierce Benjamin C"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44854-3_15"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-04818-0"},{"key":"e_1_2_2_55_1","unstructured":"The scribble authors. 2008. Scribble homepage. https:\/\/www.scribble.com.  The scribble authors. 2008. Scribble homepage. https:\/\/www.scribble.com."},{"key":"e_1_2_2_56_1","unstructured":"Gadi Taubenfeld. 2006. Synchronization algorithms and concurrent programming. Pearson Education.  Gadi Taubenfeld. 2006. Synchronization algorithms and concurrent programming. Pearson Education."},{"key":"e_1_2_2_57_1","unstructured":"USENIX. 2020. Double-Bufering Algorithm (web). https:\/\/www.usenix.org\/legacy\/publications\/library\/proceedings\/ usenix02\/full_papers\/huang\/huang_html\/node8.html.  USENIX. 2020. Double-Bufering Algorithm (web). https:\/\/www.usenix.org\/legacy\/publications\/library\/proceedings\/ usenix02\/full_papers\/huang\/huang_html\/node8.html."},{"key":"e_1_2_2_59_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-04167-9_12"},{"key":"e_1_2_2_60_1","unstructured":"Fangyi Zhou Francisco Ferreira Raymond Hu Rumyana Neykova and Nobuko Yoshida. 2020. Statically Verified Refinements for Multiparty Protocols. ( 2020 ). Conditionally Accepted by OOPSLA '20 Preprint on https:\/\/www.doc.ic.ac.uk\/~fz315\/ oopsla20-preprint.pdf.  Fangyi Zhou Francisco Ferreira Raymond Hu Rumyana Neykova and Nobuko Yoshida. 2020. Statically Verified Refinements for Multiparty Protocols. ( 2020 ). Conditionally Accepted by OOPSLA '20 Preprint on https:\/\/www.doc.ic.ac.uk\/~fz315\/ oopsla20-preprint.pdf."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428223","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428223","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:57Z","timestamp":1750197777000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428223"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":59,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428223"],"URL":"https:\/\/doi.org\/10.1145\/3428223","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}