#traffic #workload-generator

bin+lib trawler

A workload generator that emulates the traffic to lobste.rs

58 releases (9 breaking)

0.11.0-alpha.5 Jul 7, 2020
0.11.0-alpha.2 May 30, 2020
0.9.0 Mar 26, 2020
0.7.0 Dec 12, 2019
0.5.3 Mar 29, 2018

#41 in Profiling

Download history 247/week @ 2020-05-25 392/week @ 2020-06-01 30/week @ 2020-06-08 66/week @ 2020-06-15 166/week @ 2020-06-22 72/week @ 2020-06-29 95/week @ 2020-07-06 125/week @ 2020-07-13 52/week @ 2020-07-20 17/week @ 2020-07-27 67/week @ 2020-08-03 183/week @ 2020-08-10 70/week @ 2020-08-17 67/week @ 2020-08-24 74/week @ 2020-08-31 184/week @ 2020-09-07

598 downloads per month



Crates.io Documentation Build Status


This crate provides a workload generator that emulates the traffic to lobste.rs. It is a mostly open-loop benchmark similar to TailBench, but it also approximates the partly open-loop designed outlined in Open Versus Closed: A Cautionary Tale by having clients potentially issue more than one query per request.

The benchmarker main component is the "load generator". It generates requests according to actual lobste.rs traffic patterns as reported in here, records the request time, and sends the request description to an implementor of Service<TrawlerRequest>. When the resulting future resolves, the generator logs how long the request took to process, and how long the request took from when it was generated until it was satisfied (this is called the sojourn time).

Trawler is written so that it can either be run against an instance of the lobsters Rails app or directly against a backend by issuing queries. The former is done using the provided binary, whereas the latter is done by linking against this crate as a library an implementing the Service trait. The latter allows benchmarking a data storage backend without also incurring the overhead of the Rails frontend. Note that if you want to benchmark against the Rails application, you must apply the patches in lobsters.diff first.


~158K SLoC