Introducing Web Performance Legion - Web Performance
Menu

Introducing Web Performance Legion

After months of work, I want to introduce you to something new: Web Performance Legion. Legion is a new open-source research product. It’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’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.

Legion lets you:

* Quickly describe a testcase entirely in JavaScript.
* Easily instrument arbitrary JavaScript functions to measure their performance.
* Attach setup and shutdown hooks to your testcase.
* Run testcases from the command line.
* Get results in a machine-readable JSON format.

Example:


.testcase(L.of()
.chain(rest.post(host + '/ticket/new'))
.chain(assertSuccess)
.chain(response => rest.post(host + '/ticket/redeem?ticket='+ response.json.ticket))
.chain(assertSuccess))

.main();

If this sounds like something you’re interested in, start with our introductory guide, the starter project, or you can fork the source code on github.

Add Your Comment

You must be logged in to post a comment.

Resources

Copyright © 2024 Web Performance, Inc.

A Durham web design company

×

(1) 919-845-7601 9AM-5PM EST

Just complete this form and we will get back to you as soon as possible with a quote. Please note: Technical support questions should be posted to our online support system.

About You
How Many Concurrent Users