Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
935 changes: 38 additions & 897 deletions .gitignore

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<module>warmup-aop</module>
<module>warmup-processor</module>
<module>warmup-examples</module>
<module>warmup-integration</module>
<module>warmup-benchmark</module>
<module>warmup-test</module>
</modules>
<dependencies>
<dependency>
Expand Down
227 changes: 227 additions & 0 deletions warmup-benchmark/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>warmup-framework-parent</artifactId>
<groupId>io.warmup.framework</groupId>
<version>1.0.0-alpha.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>warmup-benchmark</artifactId>
<name>Warmup Framework - Benchmark Module</name>
<description>Comprehensive benchmark suite for measuring Warmup Framework performance vs traditional dependency injection frameworks.
Includes complexity analysis, framework comparisons, and scalability tests.</description>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>benchmarks</finalName>
<transformers>
<transformer>
<mainClass>org.openjdk.jmh.Main</mainClass>
</transformer>
<transformer />
<transformer>
<resource>META-INF/BenchmarkList</resource>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>run-benchmarks</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<classpathScope>test</classpathScope>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>org.openjdk.jmh.Main</argument>
<argument>${{benchmark.args}}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<compilerArgs>
<arg>-Amapstruct.defaultComponentModel=jsr330</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>quick-benchmarks</id>
<properties>
<jmh.measurement.iterations>1</jmh.measurement.iterations>
<jmh.forks>1</jmh.forks>
<jmh.threads>1</jmh.threads>
<jmh.warmup.iterations>1</jmh.warmup.iterations>
</properties>
</profile>
<profile>
<id>full-benchmarks</id>
<properties>
<jmh.measurement.iterations>10</jmh.measurement.iterations>
<jmh.forks>2</jmh.forks>
<jmh.threads>1</jmh.threads>
<jmh.warmup.iterations>5</jmh.warmup.iterations>
</properties>
</profile>
<profile>
<id>framework-comparison</id>
<properties>
<jmh.measurement.iterations>5</jmh.measurement.iterations>
<jmh.forks>2</jmh.forks>
<jmh.threads>1</jmh.threads>
<jmh.warmup.iterations>3</jmh.warmup.iterations>
</properties>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.37</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.12.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>opentest4j</artifactId>
<groupId>org.opentest4j</groupId>
</exclusion>
<exclusion>
<artifactId>junit-platform-commons</artifactId>
<groupId>org.junit.platform</groupId>
</exclusion>
<exclusion>
<artifactId>apiguardian-api</artifactId>
<groupId>org.apiguardian</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.12.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>junit-platform-engine</artifactId>
<groupId>org.junit.platform</groupId>
</exclusion>
<exclusion>
<artifactId>apiguardian-api</artifactId>
<groupId>org.apiguardian</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.17.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>byte-buddy</artifactId>
<groupId>net.bytebuddy</groupId>
</exclusion>
<exclusion>
<artifactId>byte-buddy-agent</artifactId>
<groupId>net.bytebuddy</groupId>
</exclusion>
<exclusion>
<artifactId>objenesis</artifactId>
<groupId>org.objenesis</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger</artifactId>
<version>2.48</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.30</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.17.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<jmh.version>1.37</jmh.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
31 changes: 0 additions & 31 deletions warmup-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,37 +185,6 @@
</configuration>
</plugin>

<!-- JMH Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jmh-maven-plugin</artifactId>
<version>1.35</version>
<executions>
<execution>
<id>run-jmh-benchmarks</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<skipTests>false</skipTests>
<include>.*</include>
<exclude>.*Hot.*</exclude>
<jvmArgs>
<jvmArg>-Xms512m</jvmArg>
<jvmArg>-Xmx1024m</jvmArg>
</jvmArgs>
<operationsPerInvocation>1</operationsPerInvocation>
<timePerIteration>3s</timePerIteration>
<warmupIterations>1</warmupIterations>
<measurementIterations>1</measurementIterations>
<threads>1</threads>
<forkCount>1</forkCount>
</configuration>
</execution>
</executions>
</plugin>

<!-- Surefire for Unit Tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading
Loading