Skip to content

Instantly share code, notes, and snippets.

View stalep's full-sized avatar

Ståle Pedersen stalep

  • IBM
  • Arendal, Norway
View GitHub Profile
@stalep
stalep / 01-char-output-pilot.patch
Created November 5, 2026 22:33
jjq #207 actual-default A/B: rejected 2122ec4 and narrowed 321ce80, all 64 cells
diff --git a/jjq-benchmark/src/main/java/io/hyperfoil/tools/jjq/benchmark/CharOutputBenchmark.java b/jjq-benchmark/src/main/java/io/hyperfoil/tools/jjq/benchmark/CharOutputBenchmark.java
new file mode 100644
index 0000000..179c822
--- /dev/null
+++ b/jjq-benchmark/src/main/java/io/hyperfoil/tools/jjq/benchmark/CharOutputBenchmark.java
@@ -0,0 +1,124 @@
+package io.hyperfoil.tools.jjq.benchmark;
+
+import io.hyperfoil.tools.jjq.mapper.JqMapper;
+import io.hyperfoil.tools.jjq.value.CharOutput;
@stalep
stalep / AllocationCounterCheck-original.java.txt
Created November 5, 2026 18:25
jjq #207: default compatibility gate and serialization lifecycle evidence
import com.sun.management.ThreadMXBean;
import java.lang.management.ManagementFactory;
/** Validate terminated-worker accounting, not latency. */
public final class AllocationCounterCheck {
private static volatile Object retained;
public static void main(String[] args) throws Exception {
ThreadMXBean bean = (ThreadMXBean) ManagementFactory.getThreadMXBean();
bean.setThreadAllocatedMemoryEnabled(true);
@stalep
stalep / NumericAllocationProbe.java
Created November 5, 2026 12:41
jjq #207: numeric scratch, current-main serializer comparison and allocation evidence
import com.sun.management.ThreadMXBean;
import io.hyperfoil.tools.jjq.value.CharOutput;
import io.hyperfoil.tools.jjq.value.JqNumber;
import java.lang.management.ManagementFactory;
/** Allocation counters only. This is not a latency benchmark. */
public final class NumericAllocationProbe {
private static final ThreadMXBean ALLOCATIONS =
(ThreadMXBean) ManagementFactory.getThreadMXBean();
h5m add folder quarkus-spring-boot-comparison
h5m add jq to quarkus-spring-boot-comparison runtimeName "[.results | to_entries[] | .key]"
h5m add jq to quarkus-spring-boot-comparison rssStartup "[.results[].rss.avStartupRss]" 
h5m add jq to quarkus-spring-boot-comparison maxRss "[.results[].load.avMaxRss]"
h5m add jq to quarkus-spring-boot-comparison avBuildTime "[.results[].build.avBuildTime]"
h5m add jq to quarkus-spring-boot-comparison avTimeToFirstRequest "[.results[].startup.avStartTime]"
h5m add jq to quarkus-spring-boot-comparison avThroughput "[.results[].load.avThroughput]"
h5m add jq to quarkus-spring-boot-comparison rssFirstRequest "[.results[].rss.avFirstRequestRss]"
h5m add jq to quarkus-spring-boot-comparison maxThroughputDensity "[.results[].load.maxThroughputDensity]"
h5m add jq to quarkus-spring-boot-comparison buildId ".env.BUILD_ID"
h5m add jq to quarkus-spring-boot-comparison buildUrl ".env.BUILD_URL"
h5m add jq to quarkus-spring-boot-comparison quarkusVersion ".config.QUARKUS_VERSION"
h5m
{
"job": {
"jobConfig": {
"qps": 20,
"name": "node-density",
"burst": 20,
"cleanup": true,
"jobType": "create",
"namespace": "node-density",
"churnDelay": 300000000000,
import org.aesh.command.AeshCommandRuntimeBuilder;
import org.aesh.command.Command;
import org.aesh.command.CommandException;
import org.aesh.command.CommandNotFoundException;
import org.aesh.command.CommandRuntime;
import org.aesh.command.impl.registry.AeshCommandRegistryBuilder;
import org.aesh.command.invocation.CommandInvocation;
import org.aesh.command.parser.CommandLineParserException;
import org.aesh.command.registry.CommandRegistryException;
import org.aesh.command.validator.CommandValidatorException;
package examples;
import org.aesh.AeshConsoleRunner;
import org.aesh.AeshRuntimeRunner;
import org.aesh.command.Command;
import org.aesh.command.CommandDefinition;
import org.aesh.command.CommandException;
import org.aesh.command.CommandNotFoundException;
import org.aesh.command.CommandResult;
import org.aesh.command.Executor;
/*
* File generated by the template based ISKV code generator
*
* Generated at: 12.03.19 11:56
* Modelelement: partner.business.DynamicContainerKeyModel
* Template : framework/generator/designlang/stereotypes/businessmodel/hibernate/hibernateclass.vm
*
* @formatter:off
*/
// Package
import org.aesh.command.AeshCommandRuntimeBuilder;
import org.aesh.command.Command;
import org.aesh.command.CommandDefinition;
import org.aesh.command.CommandException;
import org.aesh.command.CommandNotFoundException;
import org.aesh.command.CommandResult;
import org.aesh.command.CommandRuntime;
import org.aesh.command.Executor;
import org.aesh.command.impl.registry.AeshCommandRegistryBuilder;
import org.aesh.command.invocation.CommandInvocation;
import org.aesh.command.AeshCommandRuntimeBuilder;
import org.aesh.command.Command;
import org.aesh.command.CommandDefinition;
import org.aesh.command.CommandException;
import org.aesh.command.CommandNotFoundException;
import org.aesh.command.CommandResult;
import org.aesh.command.CommandRuntime;
import org.aesh.command.impl.registry.AeshCommandRegistryBuilder;
import org.aesh.command.invocation.CommandInvocation;
import org.aesh.command.option.Option;