Skip to content

Instantly share code, notes, and snippets.

View wfouche's full-sized avatar

Werner Fouché wfouche

View GitHub Profile
@wfouche
wfouche / gen_report.sh
Last active May 2, 2026 13:03
gen_report.sh
jbang run io.github.tulipltt:tulip-runtime:RELEASE --report benchmark_output.json
@wfouche
wfouche / benchmark_report.json
Created February 9, 2026 11:19
Tulip JSON Summary Results
{
"config": {"actions": {"description": "jsonplaceholder.typicode.com", "output_filename": "benchmark_output.json", "report_filename": "benchmark_report.html", "user_class": "APIUser", "user_params": {"url": "http://jsonplaceholder.typicode.com", "httpVersion": "HTTP_1_1", "connectTimeoutMillis": 5000, "readTimeoutMillis": 10000, "debug": false}, "user_actions": {"1": "GET:Get all posts", "2": "POST:Create post", "3": "GET:Get single post"}}, "contexts": {"Context-1": {"enabled": true, "num_users": 80, "num_tasks": 10}}, "benchmarks": {"REST1": {"time": {"warmup_duration1": 30, "warmup_duration2": 10, "benchmark_duration": 30, "benchmark_iterations": 3}, "aps_rate": 40.0, "scenario_actions": [{"id": 1, "weight": 3}, {"id": 2, "weight": 1}, {"id": 3, "weight": 2}]}}},
"benchmarks": {
"REST1": {
"context": {"num_users": 80, "name": "Context-1", "num_threads": 80}, "results": {
"1": {"max_rtt": "2026-02-09T13:16:28", "AQS": 1.0041666666666667, "avg_aps": 40.0, "CPU_T": "0:00:03.0", "C
@wfouche
wfouche / APIUser.kt
Last active March 12, 2026 15:19
APIUser.kt
//KOTLIN 2.2.21
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import io.github.tulipltt.tulip.user.HttpUser
class APIUser : HttpUser() {
// Action 1: GET /posts
override fun action1(): Boolean {
val response = httpGet("/posts")
@wfouche
wfouche / APIUser.groovy
Last active March 12, 2026 15:18
APIUser.groovy
//GROOVY 5.0.4
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import io.github.tulipltt.tulip.user.HttpUser
class APIUser extends HttpUser {
// Action 1: GET /posts
boolean action1() {