Forráskód Böngészése

[Java] Update ActiveJ to v5.0 (#6881)

eduard-vasinskyi 3 éve
szülő
commit
a599dd0d97

+ 1 - 1
frameworks/Java/activej/README.md

@@ -14,7 +14,7 @@ This is the ActiveJ portion of a [benchmarking test suite](../) comparing a vari
 ## Versions
 
 * [Java OpenJDK 1.8](http://openjdk.java.net/)
-* [ActiveJ 4.0-SNAPSHOT](http://activej.io/)
+* [ActiveJ 5.0](http://activej.io/)
 * [DSL-JSON 1.9.7](https://github.com/ngs-doo/dsl-json)
 
 ## Test URLs

+ 2 - 2
frameworks/Java/activej/pom.xml

@@ -46,12 +46,12 @@
 		<dependency>
 			<groupId>io.activej</groupId>
 			<artifactId>activej-launchers-http</artifactId>
-			<version>4.1</version>
+			<version>5.0</version>
 		</dependency>
 		<dependency>
 			<groupId>com.dslplatform</groupId>
 			<artifactId>dsl-json-java8</artifactId>
-			<version>1.9.7</version>
+			<version>1.9.8</version>
 		</dependency>
 	</dependencies>
 

+ 1 - 1
frameworks/Java/activej/src/main/java/io/activej/http/benchmark/Main.java

@@ -115,7 +115,7 @@ public final class Main extends MultithreadedHttpServerLauncher {
 			Config config() {
 				return Config.create()
 						.with("http.listenAddresses", Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(PORT)))
-						.with("workers", "" + Integer.toString(2 * Runtime.getRuntime().availableProcessors()))
+						.with("workers", "" + 2 * Runtime.getRuntime().availableProcessors())
 						.overrideWith(ofClassPathProperties(PROPERTIES_FILE, true))
 						.overrideWith(ofSystemProperties("config"));
 			}