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 18 9 473 22 20 25.66 1.18
bin-true no-host 645 520 2,312 776 769 3.58 1.20
configure.cpython no-host 14,663 14,760 28,832 14,883 15,063 1.97 1.01
configure.ocaml no-host 3,761 3,702 4,652 3,753 3,763 1.24 1.00
configure.tcc no-host 47 44 204 48 47 4.38 1.02
configure.util-linux no-host 13,646 14,500 31,497 13,912 13,928 2.31 1.02
configure.yash no-host 1,792 1,756 2,449 1,805 1,792 1.37 1.01
hello-world no-host 1 1 58 3 3 43.19 2.04

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,514 1,125 24,470 3,181 3,075 9.73 1.27
bin-true no-host 104,349 66,457 798,408 125,192 126,235 7.65 1.20
configure.cpython no-host 1,997,748 2,020,562 6,128,992 2,010,757 1,999,256 3.07 1.01
configure.ocaml no-host 373,676 353,785 618,225 377,030 376,020 1.65 1.01
configure.tcc no-host 6,088 5,023 23,941 6,505 6,424 3.93 1.07
configure.util-linux no-host 1,915,674 2,069,902 5,328,324 1,822,300 1,811,017 2.78 0.95
configure.yash no-host 233,951 222,204 368,692 235,179 235,448 1.58 1.01
hello-world no-host 146 75 3,982 345 341 27.27 2.36

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.4 22.9 9.2 8.7 5.29 2.12
bin-true no-host 2.9 1.6 18.7 8.1 7.7 6.48 2.82
configure.cpython no-host 29.2 29.1 29.1 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.4 22.6 22.6 0.99 1.00
configure.tcc no-host 19.8 19.8 19.7 19.5 19.7 0.99 0.99
configure.util-linux no-host 30.3 30.2 30.3 30.1 30.3 1.00 0.99
configure.yash no-host 26.5 26.3 26.4 26.4 26.4 1.00 1.00
hello-world no-host 2.8 1.3 18.4 6.3 5.9 6.69 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.3 6.3 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 776 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 14,883 1 70 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 13,912 3 65 21.6 30.1 2,709,227 56,216 66,561 114,377 1,295,038 1,299,812 32,241 42 133,122 1
configure.ocaml no-host 3,753 1 2 2.6 22.6 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,805 1 2 2.6 26.4 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 769 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 15,063 1 70 15.2 29.1 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 13,928 3 67 21.6 30.3 2,709,227 56,191 66,554 114,379 1,295,038 1,299,810 32,241 42 133,108 1
configure.ocaml no-host 3,763 1 2 2.6 22.6 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.6 26.4 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 18 11 8 4.3 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 473 414 63 22.9 osh-cpython
31 no-host abuild-print-help 22 12 10 9.2 osh-native
39 no-host abuild-print-help 20 8 13 8.7 osh-native-souffle
1 no-host bin-true 645 295 381 2.9 bash
9 no-host bin-true 520 273 258 1.6 dash
17 no-host bin-true 2,312 822 1,758 18.7 osh-cpython
25 no-host bin-true 776 318 473 8.1 osh-native
33 no-host bin-true 769 306 480 7.7 osh-native-souffle
2 no-host configure.cpython 14,663 6,721 8,360 29.2 bash
10 no-host configure.cpython 14,760 6,749 8,450 29.1 dash
18 no-host configure.cpython 28,832 14,564 16,172 29.1 osh-cpython
26 no-host configure.cpython 14,883 6,690 8,483 29.2 osh-native
34 no-host configure.cpython 15,063 6,671 8,438 29.1 osh-native-souffle
4 no-host configure.ocaml 3,761 1,307 1,496 22.6 bash
12 no-host configure.ocaml 3,702 1,269 1,454 22.5 dash
20 no-host configure.ocaml 4,652 1,846 2,026 22.4 osh-cpython
28 no-host configure.ocaml 3,753 1,339 1,455 22.6 osh-native
36 no-host configure.ocaml 3,763 1,260 1,541 22.6 osh-native-souffle
5 no-host configure.tcc 47 21 26 19.8 bash
13 no-host configure.tcc 44 22 21 19.8 dash
21 no-host configure.tcc 204 140 68 19.7 osh-cpython
29 no-host configure.tcc 48 19 29 19.5 osh-native
37 no-host configure.tcc 47 22 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,646 5,923 8,218 30.3 bash
11 no-host configure.util-linux 14,500 5,980 9,039 30.2 dash
19 no-host configure.util-linux 31,497 18,054 14,566 30.3 osh-cpython
27 no-host configure.util-linux 13,912 5,714 8,433 30.1 osh-native
35 no-host configure.util-linux 13,928 5,638 8,517 30.3 osh-native-souffle
6 no-host configure.yash 1,792 898 905 26.5 bash
14 no-host configure.yash 1,756 913 847 26.3 dash
22 no-host configure.yash 2,449 1,373 1,121 26.4 osh-cpython
30 no-host configure.yash 1,805 939 871 26.4 osh-native
38 no-host configure.yash 1,792 891 907 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 58 38 21 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 1 2 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,514 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,125 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,470 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,075 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 104,349 0 0 0 8 0 1,983 156 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,985 79 dash
17 no-host bin-true 798,408 0 0 0 8 0 1,985 253 osh-cpython
25 no-host bin-true 125,192 0 0 0 16 0 1,988 238 osh-native
33 no-host bin-true 126,235 0 0 0 16 0 1,981 80 osh-native-souffle
2 no-host configure.cpython 1,997,748 1 0 0 32,928 0 14,240 1,328 bash
10 no-host configure.cpython 2,020,562 0 0 0 32,992 0 14,360 1,122 dash
18 no-host configure.cpython 6,128,992 0 0 0 27,512 0 13,076 1,189 osh-cpython
26 no-host configure.cpython 2,010,757 0 0 0 27,520 0 13,104 1,066 osh-native
34 no-host configure.cpython 1,999,256 0 0 0 27,520 0 13,080 1,118 osh-native-souffle
4 no-host configure.ocaml 373,676 0 0 0 5,120 0 1,944 202 bash
12 no-host configure.ocaml 353,785 0 0 0 5,112 0 1,929 183 dash
20 no-host configure.ocaml 618,225 0 0 0 5,112 0 1,851 196 osh-cpython
28 no-host configure.ocaml 377,030 0 0 0 5,120 0 1,916 204 osh-native
36 no-host configure.ocaml 376,020 0 0 0 5,120 0 1,919 191 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 48 5 bash
13 no-host configure.tcc 5,023 0 0 0 96 0 47 8 dash
21 no-host configure.tcc 23,941 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,505 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,424 0 0 0 104 0 46 5 osh-native-souffle
3 no-host configure.util-linux 1,915,674 0 0 0 42,400 0 18,477 1,240 bash
11 no-host configure.util-linux 2,069,902 2 0 0 42,584 0 17,368 1,377 dash
19 no-host configure.util-linux 5,328,324 12 0 0 39,120 0 17,024 1,340 osh-cpython
27 no-host configure.util-linux 1,822,300 1 0 0 39,120 0 17,025 1,092 osh-native
35 no-host configure.util-linux 1,811,017 2 0 0 39,128 0 17,034 1,069 osh-native-souffle
6 no-host configure.yash 233,951 0 0 0 4,120 0 871 101 bash
14 no-host configure.yash 222,204 0 0 0 3,720 0 865 77 dash
22 no-host configure.yash 368,692 0 0 0 3,728 0 855 86 osh-cpython
30 no-host configure.yash 235,179 0 0 0 3,736 0 848 80 osh-native
38 no-host configure.yash 235,448 0 0 0 3,736 0 850 89 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,982 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ffcc3187
dash dash-0ebcf347
osh-cpython osh-6e92ae55
osh-native osh-e36ebbfc
osh-native-souffle osh-e0fe8eed
host label host id
no-host no-host-20fc69f9