diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-10 23:05:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-10 23:05:44 +0900 |
| commit | ba5a17008cb153512e484f144e35e28cff8b7640 (patch) | |
| tree | a22ef1b98f8075034134060e9e432c30e5f5f931 | |
| parent | a84a42244583a450686add2af2e0c9cb8a8f05b2 (diff) | |
| download | php-waddiwasi-ba5a17008cb153512e484f144e35e28cff8b7640.tar.gz php-waddiwasi-ba5a17008cb153512e484f144e35e28cff8b7640.tar.zst php-waddiwasi-ba5a17008cb153512e484f144e35e28cff8b7640.zip | |
feat: decrease memory_limit of example program
| -rw-r--r-- | composer.json | 2 | ||||
| -rw-r--r-- | tools/bench.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/composer.json b/composer.json index f4defbd..e0da8fd 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ ], "ecs": "ecs check", "ecsfix": "ecs --memory-limit=1G check --fix", - "example:php-on-wasm": "@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", + "example:php-on-wasm": "@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", "example:rubyvm-on-php-on-wasm": "@php -d memory_limit=-1 -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/rubyvm-on-php-on-wasm/php-wasm.php", "lint": [ "@ecs", diff --git a/tools/bench.sh b/tools/bench.sh index feeb714..056504a 100644 --- a/tools/bench.sh +++ b/tools/bench.sh @@ -1 +1 @@ -hyperfine --warmup=1 --style=nocolor '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' | tee benchmarks/$(date '+%Y%m%d-%H%M').log +hyperfine --warmup=1 --style=nocolor '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' |
