GraphQL 与 C++ 对比:30项指标

GraphQL 对比 C++

GraphQL

GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。

C++

C++ 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1985 年,由 Bjarne Stroustrup 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

30项指标

指标GraphQLC++
GitHub Stars4623065302
Stack Overflow Tags583831832809
TIOBE Rank637
RedMonk Rank5711
PYPL Rank649
Average Salary (USD)104516128124
Job Postings3143643598
Benchmarks Score0.631.05
Learning CurveMediumHard
Community SizeMediumVery Large
Documentation Quality710
Ecosystem Maturity610
Industry Adoption710
Type System Complexity67
Concurrency Support710
Performance - Execution Speed79
Performance - Memory Usage78
Performance - Startup Time77
Tooling Quality610
Package Manager Quality610
IDE Support510
Debugging Experience710
GitHub Stars Rank475
Stack Overflow Tags Rank5011
Average Salary Rank4713
Job Postings Rank435
Benchmarks Rank642
Learning Curve Score53
Community Size Score610
AHP Score6.298.5

AHP综合评分

  • GraphQL: 6.29 (#48)
  • C++: 8.5 (#1)
GraphQL         | ###### 6.29
C++             | ######## 8.5

何时选择GraphQL

Interface Definition, RPC, Schema. GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。

何时选择C++

Systems Programming, Embedded, Performance-Critical Applications. C++ 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1985 年,由 Bjarne Stroustrup 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

Hello World 示例

GraphQL:

{ hello }

C++:

#include <iostream>
int main(){ std::cout << "Hello, World!"; }

Other languages