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 475 22 21 24.16 1.13
bin-true no-host 675 559 2,308 814 814 3.42 1.21
configure.cpython no-host 15,463 15,723 29,432 15,635 15,631 1.90 1.01
configure.ocaml no-host 3,861 3,795 4,750 3,897 3,935 1.23 1.01
configure.tcc no-host 47 42 208 51 50 4.39 1.07
configure.util-linux no-host 14,450 15,302 32,078 14,684 14,559 2.22 1.02
configure.yash no-host 1,855 1,820 2,522 1,871 1,902 1.36 1.01
hello-world no-host 2 1 57 3 3 34.79 1.81

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,566 1,092 23,679 3,166 3,088 9.23 1.23
bin-true no-host 107,336 66,437 775,713 124,294 126,209 7.23 1.16
configure.cpython no-host 2,226,361 2,241,254 6,214,142 2,222,013 2,199,413 2.79 1.00
configure.ocaml no-host 410,369 391,077 647,338 412,836 412,206 1.58 1.01
configure.tcc no-host 6,553 5,491 24,093 6,955 6,917 3.68 1.06
configure.util-linux no-host 2,102,064 2,262,059 5,390,555 2,001,168 1,989,958 2.56 0.95
configure.yash no-host 256,621 245,010 389,659 258,456 257,716 1.52 1.01
hello-world no-host 152 82 3,952 339 339 26.00 2.23

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.5 3.4 22.7 8.9 8.5 5.09 2.00
bin-true no-host 3.0 1.6 18.4 8.1 7.7 6.09 2.70
configure.cpython no-host 27.3 27.3 27.4 27.5 27.3 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.5 30.0 30.3 30.3 30.0 0.99 0.99
configure.yash no-host 24.2 24.4 24.2 24.4 24.4 1.00 1.01
hello-world no-host 2.8 1.6 18.2 6.2 5.9 6.62 2.24

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 814 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 15,635 2 65 14.9 27.5 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,684 3 64 21.2 30.3 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,897 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 51 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,871 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 8.9 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 814 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,631 1 64 14.9 27.3 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,559 3 63 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,935 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 50 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,902 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.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 20 13 7 4.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 475 432 46 22.7 osh-cpython
31 no-host abuild-print-help 22 12 10 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.5 osh-native-souffle
1 no-host bin-true 675 524 183 3.0 bash
9 no-host bin-true 559 420 148 1.6 dash
17 no-host bin-true 2,308 1,531 1,043 18.4 osh-cpython
25 no-host bin-true 814 582 248 8.1 osh-native
33 no-host bin-true 814 577 254 7.7 osh-native-souffle
2 no-host configure.cpython 15,463 9,385 6,481 27.3 bash
10 no-host configure.cpython 15,723 9,188 6,977 27.3 dash
18 no-host configure.cpython 29,432 17,949 13,426 27.4 osh-cpython
26 no-host configure.cpython 15,635 9,091 6,803 27.5 osh-native
34 no-host configure.cpython 15,631 9,218 6,555 27.3 osh-native-souffle
4 no-host configure.ocaml 3,861 1,699 1,202 20.6 bash
12 no-host configure.ocaml 3,795 1,631 1,184 20.6 dash
20 no-host configure.ocaml 4,750 2,227 1,743 20.6 osh-cpython
28 no-host configure.ocaml 3,897 1,624 1,311 20.6 osh-native
36 no-host configure.ocaml 3,935 1,653 1,320 20.6 osh-native-souffle
5 no-host configure.tcc 47 29 19 19.3 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 208 149 62 19.3 osh-cpython
29 no-host configure.tcc 51 29 23 19.3 osh-native
37 no-host configure.tcc 50 28 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,450 9,142 5,795 30.5 bash
11 no-host configure.util-linux 15,302 9,328 6,480 30.0 dash
19 no-host configure.util-linux 32,078 21,294 11,924 30.3 osh-cpython
27 no-host configure.util-linux 14,684 8,940 5,945 30.3 osh-native
35 no-host configure.util-linux 14,559 8,624 6,139 30.0 osh-native-souffle
6 no-host configure.yash 1,855 1,066 799 24.2 bash
14 no-host configure.yash 1,820 1,069 755 24.4 dash
22 no-host configure.yash 2,522 1,557 1,007 24.2 osh-cpython
30 no-host configure.yash 1,871 1,136 739 24.4 osh-native
38 no-host configure.yash 1,902 1,106 800 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 49 8 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,566 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,092 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,679 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,166 0 0 0 16 0 38 2 osh-native
39 no-host abuild-print-help 3,088 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,336 0 0 0 8 0 1,981 47 bash
9 no-host bin-true 66,437 0 0 0 8 0 1,976 73 dash
17 no-host bin-true 775,713 0 0 0 8 0 1,992 232 osh-cpython
25 no-host bin-true 124,294 0 0 0 16 0 1,989 87 osh-native
33 no-host bin-true 126,209 0 0 0 16 0 1,990 102 osh-native-souffle
2 no-host configure.cpython 2,226,361 0 0 0 32,928 0 14,520 1,059 bash
10 no-host configure.cpython 2,241,254 0 0 0 32,992 0 14,649 1,104 dash
18 no-host configure.cpython 6,214,142 2 0 0 27,512 0 13,271 1,219 osh-cpython
26 no-host configure.cpython 2,222,013 1 0 0 27,520 0 13,242 1,107 osh-native
34 no-host configure.cpython 2,199,413 0 0 0 27,520 0 13,189 970 osh-native-souffle
4 no-host configure.ocaml 410,369 0 0 0 5,120 0 1,939 142 bash
12 no-host configure.ocaml 391,077 0 0 0 5,112 0 1,881 150 dash
20 no-host configure.ocaml 647,338 0 0 0 5,112 0 1,851 175 osh-cpython
28 no-host configure.ocaml 412,836 0 0 0 5,120 0 1,933 179 osh-native
36 no-host configure.ocaml 412,206 0 0 0 5,120 0 1,929 152 osh-native-souffle
5 no-host configure.tcc 6,553 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,093 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,102,064 1 0 0 42,400 0 18,577 1,061 bash
11 no-host configure.util-linux 2,262,059 1 0 0 42,592 0 17,407 1,095 dash
19 no-host configure.util-linux 5,390,555 10 0 0 39,136 0 16,936 1,200 osh-cpython
27 no-host configure.util-linux 2,001,168 0 0 0 39,128 0 16,950 945 osh-native
35 no-host configure.util-linux 1,989,958 0 0 0 39,136 0 16,952 923 osh-native-souffle
6 no-host configure.yash 256,621 0 0 0 4,120 0 870 90 bash
14 no-host configure.yash 245,010 0 0 0 3,720 0 869 88 dash
22 no-host configure.yash 389,659 0 0 0 3,728 0 851 86 osh-cpython
30 no-host configure.yash 258,456 0 0 0 3,736 0 850 72 osh-native
38 no-host configure.yash 257,716 0 0 0 3,736 0 848 96 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,952 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 339 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b07d094b
dash dash-0ebcf347
osh-cpython osh-6e0beb20
osh-native osh-9ed6b5d0
osh-native-souffle osh-1e7b3580
host label host id
no-host no-host-556df3ee