Dart (Server) compare PHP 7 performance, who is more faster?

235 views
Skip to first unread message

Gunther Votteler

unread,
Mar 20, 2019, 6:49:43 PM3/20/19
to Dart Misc
Hi,

Does anyone have or know of any study or performance comparison of dart vs php7? that includes consumption of cpu, memory and executed operations? in itself, who is faster processing, dart or PHP7?

Anatoly Pulyaevskiy

unread,
Mar 20, 2019, 7:41:33 PM3/20/19
to mi...@dartlang.org
The best way to know this is to run a benchmark yourself using a workload that is relevant to your problem.

One important thing to remember is that Dart VM uses JIT so when benchmarking you need to give it a chance to warm-up to get to its peek performance.

There is even a package that helps with benchmarking Dart VM: https://pub.dartlang.org/packages/benchmark_harness

From my personal experience: Dart VM is fast. Don't know if it's the fastest but it's fast enough for many scenarios.
Plus it gives you async IO which makes writing IO heavy apps a lot easier and execution a lot more efficient.
Plus it allows you to utilize multiple CPU cores using Isolates. Some built-in classes like WebServer even provide
a convenient way to leverage those.

This makes your setup a lot simpler comparing to PHP where you'd need an OP cache extension, NGINX as a web-server, PHP-FPM, etc.

With Dart you just need the VM.

In any case, if you end up creating a benchmark it would be great to see your results!

On Wed, Mar 20, 2019 at 3:49 PM Gunther Votteler <gvot...@kubo.co> wrote:
Hi,

Does anyone have or know of any study or performance comparison of dart vs php7? that includes consumption of cpu, memory and executed operations? in itself, who is faster processing, dart or PHP7?

--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/ed171c7b-c99d-4b37-8ede-3085d0cf6634%40dartlang.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages