{"id":5648,"date":"2016-06-21T09:51:05","date_gmt":"2016-06-21T13:51:05","guid":{"rendered":"http:\/\/www.webperformance.com\/load-testing-tools\/blog\/?p=5648"},"modified":"2016-07-08T11:33:51","modified_gmt":"2016-07-08T15:33:51","slug":"introducing-web-performance-legion","status":"publish","type":"post","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/2016\/06\/introducing-web-performance-legion\/","title":{"rendered":"Introducing Web Performance Legion"},"content":{"rendered":"<p>After months of work, I want to introduce you to something new: Web Performance Legion. Legion is a new open-source research product. It&#8217;s an attempt to create a powerful load testing tool that can handle difficult and or esoteric use cases while still being easy-to-understand at its core. It&#8217;s still in the early phases of development, but if you happen to love working with Node, or you need to test a complex RESTful API, Legion might be the tool for you.<\/p>\n<p>Legion lets you:<\/p>\n<p>* Quickly describe a testcase entirely in JavaScript.<br \/>\n* Easily instrument arbitrary JavaScript functions to measure their performance.<br \/>\n* Attach setup and shutdown hooks to your testcase.<br \/>\n* Run testcases from the command line.<br \/>\n* Get results in a machine-readable JSON format.<\/p>\n<p>Example:<\/p>\n<p><code><br \/>\n    .testcase(L.of()<br \/>\n    .chain(rest.post(host + '\/ticket\/new'))<br \/>\n    .chain(assertSuccess)<br \/>\n    .chain(response =&gt; rest.post(host + '\/ticket\/redeem?ticket='+ response.json.ticket))<br \/>\n    .chain(assertSuccess))<\/p>\n<p>    .main();<br \/>\n<\/code><\/p>\n<p>If this sounds like something you&#8217;re interested in, start with our <a href=\"https:\/\/github.com\/lane-webperformance\/legion\/wiki\/Getting-Started\">introductory guide<\/a>, <a href=\"https:\/\/github.com\/lane-webperformance\/legion-starter-pack\">the starter project<\/a>, or you can <a href=\"https:\/\/github.com\/lane-webperformance?tab=repositories\">fork the source code on github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to introduce you to something new: Web Performance Legion. Legion is a new open-source research product. It&#8217;s an attempt to create a powerful load testing tool that can handle difficult and or esoteric use cases while still being easy-to-understand at its core. It&#8217;s still in the early phases of development, but if you happen to love working with Node, or you need to test a complex RESTful API, Legion might be the tool for you.<\/p>\n","protected":false},"author":53,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8],"tags":[],"class_list":["post-5648","post","type-post","status-publish","format-standard","hentry","category-ajax","category-load-testing"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=5648"}],"version-history":[{"count":6,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5648\/revisions"}],"predecessor-version":[{"id":5656,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5648\/revisions\/5656"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=5648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/categories?post=5648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/tags?post=5648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}