web-frameworks icon indicating copy to clipboard operation
web-frameworks copied to clipboard

Introduce Symlex

Open waghanza opened this issue 5 years ago • 4 comments

Hi @lastzero,

Would you mind to add (or consent that we add) symlex in here ?

This project compare performance based on 3 routes :

  • GET /, SHOULD return a successful status code and an empty string
  • GET /user/:id, SHOULD return a successful status code and the id
  • POST /user, SHOULD return a successful status code and an empty string

Regards,

waghanza avatar Jan 08 '20 08:01 waghanza

That'd be cool! I'm personally pretty busy developing https://github.com/photoprism/photoprism right now, so ideally you manage to do this on your own... of course I can answer questions and if you don't get it done, I can probably do it somehow :)

Especially the new release with roadrunner would be great to test... be aware that roadrunner itself also has a configuration. Benchmark results will depend on the number of workers for example (ideal value should be the number of logical processors). You also have the option to use PHP CLI or FPM, FPM might be better for benchmarks (but didn't really test it yet as it was always good enough on prod).

lastzero avatar Jan 08 '20 08:01 lastzero

Did you see our REST example app? https://github.com/symlex/rest-api

Simply rename example to user 👍

It's still based on nginx, probably very similar to what phpbenchmarks.com uses for benchmarking Symlex 4.2.

So the task for benchmarking Symlex 4.4.1 with your Specs would be to combine it's RoadRunner architecture with the app code of our REST example.

lastzero avatar Jan 09 '20 17:01 lastzero

Yes, I'll do this implementation soon, probably based on the above link :+1:

Moreover, the purpose is not the same as phpbenchmark as tests will run (long time schedule) on cloud

waghanza avatar Jan 09 '20 17:01 waghanza

Interesting. Let me know when you're done and want a review, and of course when you have first results!

lastzero avatar Jan 09 '20 17:01 lastzero