From a820647b099a266e4a578dbef67e50107b162f80 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 14 Mar 2024 23:01:27 +0900 Subject: perf: optimize memory allocation by FFI --- prof.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prof.sh') diff --git a/prof.sh b/prof.sh index 9fd164a..ef9d280 100644 --- a/prof.sh +++ b/prof.sh @@ -1,5 +1,5 @@ timestamp="$(date '+%Y%m%d-%H%M')" -# php -d 'error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED' vendor/bin/reli inspector:trace -o traces/"$timestamp".log -- php -d memory_limit=256M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log +# php -d 'error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED' vendor/bin/reli inspector:trace -o traces/"$timestamp".log -- php -d memory_limit=512M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log # vendor/bin/reli converter:flamegraph < traces/"$timestamp".log > traces/"$timestamp".svg -php -d zend.assertions=-1 -d memory_limit=256M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log +php -d zend.assertions=-1 -d memory_limit=512M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log -- cgit v1.2.3-70-g09d2