Model |
CPU |
Memory |
MacBook Pro (15-inch, 2019) |
2.6 GHz Intel Core i7 |
16 GB 2400 MHz DDR4 |
software name |
software version |
CPython |
Python 3.7.3 |
java8 |
java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode) |
maven |
Apache Maven 3.6.1 |
PEMJA |
0.1.2 |
Jython |
2.7.2 |
JEP |
3.9.1 |
type of input arguments |
type of output arguments |
String |
String |
def upper(s: str):
return s.upper()
type |
100 bytes QPS |
100 bytes memory |
1k bytes QPS |
1k bytes memory |
jython |
2862 |
1.5G |
1412 |
1.5G |
jep (SubInterpreter) |
60w |
100M |
30w |
300M |
jep (SharedInterpreter) |
60w |
100M |
30w |
300M |
pemja (sub-interpreter) |
105w |
90M |
41w |
90M |
pemja (multi-thread) |
105w |
90M |
39w |
90M |
java |
320w |
270M |
50w |
270M |
type |
100 bytes QPS(single thread) |
100 bytes memory |
1k bytes QPS (single thread) |
1k bytes memory |
jython |
4054 |
1.5G |
4182 |
1.5G |
jep (SubInterpreter) |
20w |
100M |
20w |
300M |
jep (SharedInterpreter) |
20w |
100M |
20w |
300M |
pemja (sub-interpreter) |
23w |
90M |
23w |
90M |
pemja (multi-thread) |
23w |
90M |
23w |
90M |
java |
1000w |
850M |
148w |
850M |
def json(s: str):
import json
a = json.loads(s)
a['a'] = a['a'].lower()
return json.dumps(a)
jython don't support json library
type |
100 bytes QPS |
100 bytes memory |
1k bytes QPS |
1k bytes memory |
jython |
X |
X |
X |
X |
jep (SubInterpreter) |
14w |
100M |
7w |
300M |
jep (SharedInterpreter) |
14w |
100M |
7w |
300M |
pemja (sub-interpreter) |
16w |
90M |
8w |
90M |
pemja (multi-thread) |
16w |
90M |
8w |
90M |
java |
70w |
270M |
15w |
270M |
type |
100 bytes QPS(single thread) |
100 bytes memory |
1k bytes QPS (single thread) |
1k bytes memory |
jython |
X |
X |
X |
X |
jep (SubInterpreter) |
10w |
100M |
5w |
300M |
jep (SharedInterpreter) |
10w |
100M |
5w |
300M |
pemja (sub-interpreter) |
11w |
90M |
6w |
90M |
pemja (multi-thread) |
11w |
90M |
6w |
90M |
java |
280w |
850M |
36w |
850M |