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 19 10 470 23 21 24.57 1.18
bin-true no-host 672 537 2,275 812 811 3.38 1.21
configure.cpython no-host 15,040 15,121 28,630 15,639 15,769 1.90 1.04
configure.ocaml no-host 3,823 3,722 4,729 3,912 3,908 1.24 1.02
configure.tcc no-host 48 41 205 50 49 4.28 1.05
configure.util-linux no-host 14,289 14,823 31,276 14,848 14,778 2.19 1.04
configure.yash no-host 1,815 1,760 2,497 1,870 1,870 1.38 1.03
hello-world no-host 2 1 56 3 3 36.17 1.87

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,510 1,136 23,787 3,220 3,101 9.48 1.28
bin-true no-host 105,317 66,391 770,593 123,298 124,320 7.32 1.17
configure.cpython no-host 2,220,468 2,243,211 6,247,997 2,219,395 2,205,403 2.81 1.00
configure.ocaml no-host 410,631 391,624 645,871 413,255 412,290 1.57 1.01
configure.tcc no-host 6,564 5,507 24,132 6,945 6,929 3.68 1.06
configure.util-linux no-host 2,095,441 2,263,660 5,393,719 1,991,453 1,994,233 2.57 0.95
configure.yash no-host 255,993 245,160 388,953 258,132 257,538 1.52 1.01
hello-world no-host 151 84 3,940 341 335 26.09 2.26

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.2 8.5 5.25 2.12
bin-true no-host 3.0 1.6 18.4 7.9 7.6 6.09 2.61
configure.cpython no-host 27.5 27.4 27.3 27.3 27.4 0.99 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.3 20.4 1.01 0.99
configure.tcc no-host 19.3 19.4 19.3 19.1 19.3 1.00 0.99
configure.util-linux no-host 30.4 30.3 30.0 30.1 30.1 0.99 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.8 1.6 18.2 6.3 5.8 6.62 2.29

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.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,639 1 65 14.9 27.3 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,848 3 65 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,912 1 2 2.6 20.3 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.1 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,870 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 23 1 2 2.8 9.2 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,769 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 14,778 3 64 21.2 30.1 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,908 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 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,870 1 2 2.5 24.2 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.5 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 19 14 5 4.3 bash
15 no-host abuild-print-help 10 4 5 3.5 dash
23 no-host abuild-print-help 470 431 43 22.7 osh-cpython
31 no-host abuild-print-help 23 14 9 9.2 osh-native
39 no-host abuild-print-help 21 16 6 8.5 osh-native-souffle
1 no-host bin-true 672 499 205 3.0 bash
9 no-host bin-true 537 425 123 1.6 dash
17 no-host bin-true 2,275 1,484 1,046 18.4 osh-cpython
25 no-host bin-true 812 575 253 7.9 osh-native
33 no-host bin-true 811 602 225 7.6 osh-native-souffle
2 no-host configure.cpython 15,040 9,051 6,400 27.5 bash
10 no-host configure.cpython 15,121 8,943 6,607 27.4 dash
18 no-host configure.cpython 28,630 17,479 13,001 27.3 osh-cpython
26 no-host configure.cpython 15,639 9,212 6,701 27.3 osh-native
34 no-host configure.cpython 15,769 9,239 6,636 27.4 osh-native-souffle
4 no-host configure.ocaml 3,823 1,662 1,190 20.4 bash
12 no-host configure.ocaml 3,722 1,568 1,175 20.6 dash
20 no-host configure.ocaml 4,729 2,262 1,681 20.6 osh-cpython
28 no-host configure.ocaml 3,912 1,681 1,269 20.3 osh-native
36 no-host configure.ocaml 3,908 1,702 1,245 20.4 osh-native-souffle
5 no-host configure.tcc 48 34 15 19.3 bash
13 no-host configure.tcc 41 30 12 19.4 dash
21 no-host configure.tcc 205 156 52 19.3 osh-cpython
29 no-host configure.tcc 50 17 34 19.1 osh-native
37 no-host configure.tcc 49 31 18 19.3 osh-native-souffle
3 no-host configure.util-linux 14,289 9,086 5,673 30.4 bash
11 no-host configure.util-linux 14,823 9,044 6,264 30.3 dash
19 no-host configure.util-linux 31,276 20,752 11,595 30.0 osh-cpython
27 no-host configure.util-linux 14,848 8,946 6,099 30.1 osh-native
35 no-host configure.util-linux 14,778 9,069 5,895 30.1 osh-native-souffle
6 no-host configure.yash 1,815 1,017 805 24.4 bash
14 no-host configure.yash 1,760 1,055 704 24.4 dash
22 no-host configure.yash 2,497 1,543 996 24.4 osh-cpython
30 no-host configure.yash 1,870 1,153 719 24.4 osh-native
38 no-host configure.yash 1,870 1,053 821 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 20 35 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,510 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,136 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,787 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,101 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,317 0 0 0 8 0 1,991 47 bash
9 no-host bin-true 66,391 0 0 0 8 0 1,986 78 dash
17 no-host bin-true 770,593 0 0 0 8 0 2,000 100 osh-cpython
25 no-host bin-true 123,298 0 0 0 16 0 1,991 76 osh-native
33 no-host bin-true 124,320 0 0 0 16 0 1,991 42 osh-native-souffle
2 no-host configure.cpython 2,220,468 0 0 0 32,928 0 14,517 1,112 bash
10 no-host configure.cpython 2,243,211 0 0 0 32,992 0 14,638 1,018 dash
18 no-host configure.cpython 6,247,997 0 0 0 27,512 0 13,205 1,087 osh-cpython
26 no-host configure.cpython 2,219,395 0 0 0 27,520 0 13,274 919 osh-native
34 no-host configure.cpython 2,205,403 0 0 0 27,520 0 13,159 984 osh-native-souffle
4 no-host configure.ocaml 410,631 0 0 0 5,120 0 1,971 158 bash
12 no-host configure.ocaml 391,624 0 0 0 5,112 0 1,936 160 dash
20 no-host configure.ocaml 645,871 0 0 0 5,112 0 1,852 157 osh-cpython
28 no-host configure.ocaml 413,255 0 0 0 5,120 0 1,927 180 osh-native
36 no-host configure.ocaml 412,290 0 0 0 5,120 0 1,922 154 osh-native-souffle
5 no-host configure.tcc 6,564 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,507 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,132 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 46 4 osh-native
37 no-host configure.tcc 6,929 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,095,441 1 0 0 42,408 0 18,605 889 bash
11 no-host configure.util-linux 2,263,660 0 0 0 42,592 0 17,403 1,002 dash
19 no-host configure.util-linux 5,393,719 16 0 0 39,120 0 16,934 1,202 osh-cpython
27 no-host configure.util-linux 1,991,453 0 0 0 39,128 0 16,997 968 osh-native
35 no-host configure.util-linux 1,994,233 0 0 0 39,136 0 17,010 952 osh-native-souffle
6 no-host configure.yash 255,993 0 0 0 4,120 0 873 82 bash
14 no-host configure.yash 245,160 0 0 0 3,720 0 868 77 dash
22 no-host configure.yash 388,953 0 0 0 3,728 0 849 95 osh-cpython
30 no-host configure.yash 258,132 0 0 0 3,736 0 848 82 osh-native
38 no-host configure.yash 257,538 0 0 0 3,736 0 852 79 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,940 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1f5173b8
dash dash-0ebcf347
osh-cpython osh-187c95b5
osh-native osh-633775fc
osh-native-souffle osh-93c8e8ac
host label host id
no-host no-host-556df3ee