Skip to content

Commit 96d08a7

Browse files
authored
[PHP/laravel] Add PRipple coroutine engine for Laravel framework (#9239)
* [PHP/laravel] Add PRipple coroutine engine for Laravel framework * Style: Normalized code style & display_name adjustment
1 parent f7a663e commit 96d08a7

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

frameworks/PHP/laravel/benchmark_config.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,29 @@
138138
"display_name": "laravel-octane [frankenphp]",
139139
"notes": "",
140140
"versus": "php"
141+
},
142+
"pripple": {
143+
"json_url": "/json",
144+
"db_url": "/db",
145+
"query_url": "/queries/",
146+
"fortune_url": "/fortunes",
147+
"update_url": "/updates/",
148+
"plaintext_url": "/plaintext",
149+
"port": 8080,
150+
"approach": "Realistic",
151+
"classification": "Fullstack",
152+
"database": "MySQL",
153+
"framework": "laravel",
154+
"language": "PHP",
155+
"flavor": "PHP8.3",
156+
"orm": "Full",
157+
"platform": "PRipple",
158+
"webserver": "PServer",
159+
"os": "Linux",
160+
"database_os": "Linux",
161+
"display_name": "laravel-pripple",
162+
"notes": "",
163+
"versus": "php"
141164
}
142165
}]
143-
}
166+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM php:8.3-cli
2+
3+
RUN apt-get update -yqq >> /dev/null
4+
RUN apt-get install -y libevent-dev \
5+
libssl-dev \
6+
pkg-config \
7+
build-essential \
8+
unzip >> /dev/null
9+
10+
RUN docker-php-ext-install pdo_mysql \
11+
opcache \
12+
posix \
13+
pcntl \
14+
sockets >> /dev/null
15+
16+
RUN pecl install event >> /dev/null
17+
18+
RUN docker-php-ext-enable pdo_mysql opcache posix pcntl sockets
19+
RUN docker-php-ext-enable --ini-name zz-event.ini event
20+
RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
21+
RUN echo "opcache.jit=1205" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
22+
RUN echo "opcache.jit_buffer_size=128M" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
23+
24+
COPY --from=composer --link /usr/bin/composer /usr/local/bin/composer
25+
26+
# Initialize
27+
WORKDIR /laravel
28+
COPY --link . .
29+
30+
RUN mkdir -p bootstrap/cache \
31+
storage/logs \
32+
storage/framework/sessions \
33+
storage/framework/views \
34+
storage/framework/cache
35+
36+
# Configure
37+
RUN echo "PRP_HTTP_LISTEN=http://0.0.0.0:8080" >> .env
38+
RUN echo "PRP_HTTP_COUNT=64" >> .env
39+
40+
RUN composer install --quiet
41+
RUN php artisan optimize
42+
43+
RUN composer require cclilshy/p-ripple-drive --quiet
44+
RUN composer update --quiet
45+
46+
EXPOSE 8080
47+
48+
ENTRYPOINT ["php","artisan","p:server","start"]

0 commit comments

Comments
 (0)