OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 20 10 484 22 21 24.50 1.13
bin-true no-host 681 550 2,403 826 817 3.53 1.21
configure.cpython no-host 15,724 15,706 30,950 16,004 15,997 1.97 1.02
configure.ocaml no-host 3,897 3,893 4,847 3,968 4,005 1.24 1.02
configure.tcc no-host 49 43 214 50 51 4.33 1.02
configure.util-linux no-host 14,642 15,519 33,105 14,881 15,032 2.26 1.02
configure.yash no-host 1,904 1,863 2,587 1,922 1,914 1.36 1.01
hello-world no-host 2 1 62 3 3 39.05 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,525 1,145 23,704 3,154 3,116 9.39 1.25
bin-true no-host 104,324 67,478 769,338 126,321 125,279 7.37 1.21
configure.cpython no-host 2,220,567 2,247,311 6,213,516 2,213,778 2,203,534 2.80 1.00
configure.ocaml no-host 410,686 391,424 646,161 413,680 412,154 1.57 1.01
configure.tcc no-host 6,545 5,487 24,092 6,971 6,919 3.68 1.07
configure.util-linux no-host 2,103,513 2,260,834 5,369,705 1,986,973 1,985,801 2.55 0.94
configure.yash no-host 256,061 244,565 388,257 258,291 257,073 1.52 1.01
hello-world no-host 154 83 3,942 340 337 25.60 2.21

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.7 9.0 8.7 5.25 2.09
bin-true no-host 2.9 1.6 18.4 8.1 7.7 6.37 2.82
configure.cpython no-host 27.5 27.4 27.5 27.1 27.4 1.00 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.4 19.1 19.5 19.3 19.3 1.01 0.99
configure.util-linux no-host 30.3 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.2 6.2 5.9 6.32 2.14

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 16,004 1 66 14.9 27.1 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,881 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,968 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,922 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,997 1 64 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 15,032 3 64 21.2 30.3 2,702,622 53,693 65,629 108,723 1,290,676 1,303,223 32,242 41 131,258 1
configure.ocaml no-host 4,005 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,914 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 20 12 8 4.3 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 484 424 63 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 681 512 200 2.9 bash
9 no-host bin-true 550 426 136 1.6 dash
17 no-host bin-true 2,403 1,559 1,118 18.4 osh-cpython
25 no-host bin-true 826 587 252 8.1 osh-native
33 no-host bin-true 817 582 251 7.7 osh-native-souffle
2 no-host configure.cpython 15,724 9,515 6,616 27.5 bash
10 no-host configure.cpython 15,706 9,299 6,839 27.4 dash
18 no-host configure.cpython 30,950 18,814 14,163 27.5 osh-cpython
26 no-host configure.cpython 16,004 9,218 7,068 27.1 osh-native
34 no-host configure.cpython 15,997 9,322 6,810 27.4 osh-native-souffle
4 no-host configure.ocaml 3,897 1,665 1,273 20.6 bash
12 no-host configure.ocaml 3,893 1,672 1,242 20.6 dash
20 no-host configure.ocaml 4,847 2,368 1,700 20.6 osh-cpython
28 no-host configure.ocaml 3,968 1,722 1,285 20.4 osh-native
36 no-host configure.ocaml 4,005 1,658 1,384 20.6 osh-native-souffle
5 no-host configure.tcc 49 22 28 19.4 bash
13 no-host configure.tcc 43 30 13 19.1 dash
21 no-host configure.tcc 214 165 53 19.5 osh-cpython
29 no-host configure.tcc 50 21 29 19.3 osh-native
37 no-host configure.tcc 51 32 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,642 9,109 6,018 30.3 bash
11 no-host configure.util-linux 15,519 9,499 6,517 30.3 dash
19 no-host configure.util-linux 33,105 21,893 12,358 30.1 osh-cpython
27 no-host configure.util-linux 14,881 8,948 6,128 30.1 osh-native
35 no-host configure.util-linux 15,032 9,014 6,211 30.3 osh-native-souffle
6 no-host configure.yash 1,904 1,142 771 24.5 bash
14 no-host configure.yash 1,863 1,018 848 24.4 dash
22 no-host configure.yash 2,587 1,604 1,028 24.4 osh-cpython
30 no-host configure.yash 1,922 1,077 847 24.4 osh-native
38 no-host configure.yash 1,914 1,106 809 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 62 45 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,525 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,145 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,704 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,154 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,116 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 104,324 0 0 0 8 0 1,992 47 bash
9 no-host bin-true 67,478 0 0 0 8 0 1,985 44 dash
17 no-host bin-true 769,338 0 0 0 8 0 1,998 261 osh-cpython
25 no-host bin-true 126,321 0 0 0 16 0 1,987 80 osh-native
33 no-host bin-true 125,279 0 0 0 16 0 1,988 97 osh-native-souffle
2 no-host configure.cpython 2,220,567 0 0 0 32,928 0 14,539 1,088 bash
10 no-host configure.cpython 2,247,311 0 0 0 32,992 0 14,637 989 dash
18 no-host configure.cpython 6,213,516 1 0 0 27,512 0 13,262 1,322 osh-cpython
26 no-host configure.cpython 2,213,778 0 0 0 27,520 0 13,178 989 osh-native
34 no-host configure.cpython 2,203,534 1 0 0 27,520 0 13,163 1,027 osh-native-souffle
4 no-host configure.ocaml 410,686 0 0 0 5,120 0 1,945 155 bash
12 no-host configure.ocaml 391,424 0 0 0 5,112 0 1,934 158 dash
20 no-host configure.ocaml 646,161 0 0 0 5,112 0 1,856 176 osh-cpython
28 no-host configure.ocaml 413,680 0 0 0 5,120 0 1,923 162 osh-native
36 no-host configure.ocaml 412,154 0 0 0 5,120 0 1,928 165 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,092 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,919 0 0 0 104 0 47 11 osh-native-souffle
3 no-host configure.util-linux 2,103,513 0 0 0 42,400 0 18,560 1,131 bash
11 no-host configure.util-linux 2,260,834 0 0 0 42,584 0 17,357 1,066 dash
19 no-host configure.util-linux 5,369,705 12 0 0 39,152 0 16,955 1,252 osh-cpython
27 no-host configure.util-linux 1,986,973 1 0 0 39,128 0 16,990 970 osh-native
35 no-host configure.util-linux 1,985,801 1 0 0 39,152 0 16,934 1,002 osh-native-souffle
6 no-host configure.yash 256,061 0 0 0 4,120 0 865 99 bash
14 no-host configure.yash 244,565 0 0 0 3,720 0 869 88 dash
22 no-host configure.yash 388,257 0 0 0 3,728 0 854 90 osh-cpython
30 no-host configure.yash 258,291 0 0 0 3,736 0 844 82 osh-native
38 no-host configure.yash 257,073 0 0 0 3,736 0 851 84 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,942 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6c734186
dash dash-0ebcf347
osh-cpython osh-b8e38d31
osh-native osh-0f35735c
osh-native-souffle osh-f4ed6220
host label host id
no-host no-host-556df3ee