-
Notifications
You must be signed in to change notification settings - Fork 29
Add PHP 7.2.6 runtime #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This runtime uses an updated router.php which runs the action code in the same process and enables PHP's OPcache byte-code cache. We also read the /init config information using `require` rather than parsing a JSON file. This results in a significant performance improvement as can be seen in the typical gatlingRun-LatencySimulation results on my dev machine. The mean response times are: * Warm php:7.1 invocation : 70ms * Warm nodejs:8 invocation : 19ms * Warm php:7.2 invocation : 19ms
csantanapr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the php.ini long and not require.
Other than that LGTM
| @@ -0,0 +1,1948 @@ | |||
| ; Licensed to the Apache Software Foundation (ASF) under one or more | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file looks too big and boiler plate.
Can we have a short version with a few settings that we need to override
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
csantanapr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing tests
Rename Php71ActionContainerTests.scala to Php7ActionContainerTests.scala and make it abstract class
Then
Create Php71ActionContainerTests.scala class with junit annotation and with override of the image name pointing to 7.1
Create Php72ActionContainerTests.scala same here but pointing to 7.2 docker image
|
The new test file should look like this if there it's the same set of tests as 7.1 package runtime.actionContainers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class Php72ActionContainerTests extends Php7ActionContainerTests {
override lazy val nodejsContainerImageName = "action-php-v7.2"
} |
|
@csantanapr Tests added now! |
csantanapr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This runtime uses an updated router.php which runs the action code in
the same process and enables PHP's OPcache byte-code cache. We also
read the /init config information using
requirerather than parsing aJSON file.
This results in a significant performance improvement as can be seen
in the typical gatlingRun-LatencySimulation results on my dev machine.
The mean response times are:
The change to router.php can also be applied to the PHP 7.1 action and it will see similar performance improvements.