-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomparison_report.txt
More file actions
42 lines (42 loc) · 4.55 KB
/
Copy pathcomparison_report.txt
File metadata and controls
42 lines (42 loc) · 4.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| Benchmark | Go (ms) | Python (ms) | Pongo2 (ms) | Python/Go | Pongo2/Go |
+=========================================+===========+===============+===============+=============+=============+
| complex_conditional | 0.001736 | 0.007668 | 0.001367 | 4.42x | 0.79x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| complex_template | 0.006216 | 0.012403 | 0.002909 | 2.00x | 0.47x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| conditional | 0.000748 | 0.00562 | 0.000835 | 7.52x | 1.12x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| deep_nesting | 0.001499 | 0.008265 | 0.001202 | 5.51x | 0.80x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| filter_usage | 0.000802 | 0.0061 | N/A | 7.61x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| is_defined_test | 0.000931 | 0.005718 | N/A | 6.14x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| items_filter | 0.008873 | 0.011514 | N/A | 1.30x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| list_literal_iteration | 0.006231 | 0.009145 | N/A | 1.47x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| map_get_method | 0.0006 | 0.006054 | 0.000553 | 10.09x | 0.92x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| multiple_variables | 0.001084 | 0.006506 | 0.001127 | 6.00x | 1.04x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| nested_access | 0.000521 | 0.006365 | 0.000765 | 12.21x | 1.47x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| nested_loops | 0.013947 | 0.020534 | 0.005370 | 1.47x | 0.38x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| omit_in_default_filter | 0.000469 | 0.006124 | N/A | 13.06x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| omit_in_default_filter_with_defined_var | 0.000537 | 0.005957 | N/A | 11.09x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| simple_variable | 0.000407 | 0.005507 | 0.000622 | 13.54x | 1.53x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| string_find_method | 0.000804 | 0.006324 | 0.000000 | 7.87x | 0.00x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| string_find_with_params | 0.000942 | 0.00633 | 0.000000 | 6.72x | 0.00x |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
| string_manipulation | 0.001057 | 0.005961 | N/A | 5.64x | N/A |
+-----------------------------------------+-----------+---------------+---------------+-------------+-------------+
Summary:
Average Python/Go ratio: 6.87x (higher means Python is slower)
Average Pongo2/Go ratio: 0.77x (higher means Pongo2 is slower)