php-framework-benchmark
php-framework-benchmark copied to clipboard
Benchmark bad variable name
I just do this benchmark on my droplet Digital Ocean, I have git clone, and do
sh setup.sh laravel-5.1/ ci-3.0/ yii-2.0/
Success, but when I do
sh benchmark.sh laravel-5.1/ ci-3.0/ yii-2.0/
produce following error
benchmark.sh: 12: export: ci-3.0/: bad variable name
But if benchmark one by one its run well
sh benchmark.sh laravel-5.1/
I don't know why only benchmark.sh
produce the error.
It seems they are using the same code.
How about this?
sh benchmark.sh laravel-5.1 ci-3.0 yii-2.0
It's same. produce the erorr too.
now, I comment and uncomment file list.sh, so I can benchmark specific framework only.
@hscstudio can you please check, if my pull request (#52) fixes it?
still produce same error
What shell do you use?
I use putty to acces my droplet in DO
@hscstudio No, no. It is not your shell. It is your terminal application or ssh client application.
Please run the command below in DO environment:
$ echo $SHELL
You can see the shell which you use.
First at all, thank you for providing us with this benchmarking tool, this is really usefull.
I just wanted to mention that I run into the same problem and managed to solved it by using the right shell command (so "bash benchmark.sh ..." instead of "sh benchmark.sh ..." in my case).
http://www.linuxquestions.org/questions/linux-newbie-8/a-simple-bash-command-causing-bad-variable-name-790082/
@Fly06-Fr Thank you for your information!
@hscstudio Please try this:
$ bash benchmark.sh laravel-5.1/ ci-3.0/ yii-2.0/
Hi Kenjis,
Memory statistics are always null in the table summary.
Any clue about this?
Thanks.
You can't get them, if you don't use Apache.
I'm using Apache.
So what's wrong?
Do you see memory statistics when you see hello world pages with your brower?
My fault sorry.
I didn't have the correct DocumentRoot in my Apache conf. It's ok now.
I have a last question: How should I proceed to add another framework to your benchmarking tool?
See source code of existing frameworks, please. For example, https://github.com/kenjis/php-framework-benchmark/commits/master/ci-4.0-dev