File: bench.sh

package info (click to toggle)
php-json 1.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 684 kB
  • ctags: 521
  • sloc: ansic: 3,878; xml: 446; php: 120; sh: 22; makefile: 16
file content (9 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/usr/bin/bash

cd $(dirname $0)

ext=$(php -r 'echo ini_get("extension_dir");')
echo -e "Benchmark of a huge array encode/decode\n";
php -n -d extension=$PWD/refmod/json      bench.php
php -n -d extension=$PWD/modules/json.so  bench.php
php -n -d extension=$PWD/refmod/jsond     bench.php