Skip to content

Instantly share code, notes, and snippets.

@thomascamminady
Created August 28, 2022 12:24
Show Gist options
  • Save thomascamminady/3e675eb254c73430839cc60856cc38a8 to your computer and use it in GitHub Desktop.
Save thomascamminady/3e675eb254c73430839cc60856cc38a8 to your computer and use it in GitHub Desktop.
Energy Efficiency across Programming Languages. Source: https://greenlab.di.uminho.pt/wp-content/uploads/2017/09/paperSLE.pdf
language label time energy mb mb_normalized_by_c
0 C (c) 1.0 1.0 1.17 1.0
1 Rust (c) 1.04 1.03 1.54 1.316
2 C++ (c) 1.56 1.34 1.34 1.145
3 Ada (c) 1.85 1.7 1.47 1.256
4 Java (v) 1.89 1.98 6.01 5.137
5 Chapel (c) 2.14 2.18 4.0 3.419
6 Go (c) 2.83 3.23 1.05 0.897
7 Pascal (c) 3.02 2.14 1.0 0.855
8 Ocaml (c) 3.09 2.4 2.82 2.41
9 C# (v) 3.14 3.14 2.85 2.436
10 Lisp (v) 3.4 2.27 1.92 1.641
11 Haskell (c) 3.55 3.1 2.45 2.094
12 Swift (c) 4.2 2.79 2.71 2.316
13 Fortran (c) 4.2 2.52 1.24 1.06
14 F# (v) 6.3 4.13 4.25 3.632
15 JavaScript (i) 6.52 4.45 4.59 3.923
16 Dart (i) 6.67 3.83 8.64 7.385
17 Racket (v) 11.27 7.91 3.52 3.009
18 Hack (i) 26.99 24.02 3.34 2.855
19 PHP (i) 27.64 29.3 2.57 2.197
20 Erlang (v) 36.71 42.23 7.2 6.154
21 Jruby (i) 43.44 46.54 19.84 16.957
22 TypeScript (i) 46.2 21.5 4.69 4.009
23 Ruby (i) 59.34 69.91 3.97 3.393
24 Perl (i) 65.79 79.58 6.62 5.658
25 Python (i) 71.9 75.88 2.8 2.393
26 Lua (i) 82.91 45.98 6.72 5.744
@thomascamminady
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment