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 465 22 21 23.03 1.11
bin-true no-host 689 557 2,439 823 835 3.54 1.20
configure.cpython no-host 15,974 15,802 31,135 15,953 16,128 1.95 1.00
configure.ocaml no-host 4,020 3,953 4,750 3,982 3,924 1.18 0.99
configure.tcc no-host 50 44 200 57 48 3.96 1.13
configure.util-linux no-host 14,975 15,974 33,224 15,029 15,108 2.22 1.00
configure.yash no-host 1,958 1,889 2,553 1,951 1,842 1.30 1.00
hello-world no-host 2 1 54 3 3 32.49 1.70

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,565 1,102 23,227 3,187 3,082 9.06 1.24
bin-true no-host 104,302 66,401 756,308 126,125 126,797 7.25 1.21
configure.cpython no-host 2,217,405 2,239,003 6,215,384 2,227,317 2,209,649 2.80 1.00
configure.ocaml no-host 410,431 390,636 645,418 414,254 413,358 1.57 1.01
configure.tcc no-host 6,573 5,491 23,558 6,985 6,935 3.58 1.06
configure.util-linux no-host 2,101,804 2,261,270 5,327,979 2,004,046 1,995,173 2.53 0.95
configure.yash no-host 254,968 245,041 385,867 258,452 257,803 1.51 1.01
hello-world no-host 151 79 3,729 348 347 24.70 2.30

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 21.8 8.9 8.5 4.90 2.00
bin-true no-host 2.9 1.4 17.6 7.9 7.6 6.09 2.73
configure.cpython no-host 27.4 27.4 27.4 27.4 27.3 1.00 1.00
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.3 30.3 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 24.4 1.01 1.00
hello-world no-host 2.9 1.4 17.7 6.2 5.8 6.14 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,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.9 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,953 1 66 15.0 27.4 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 15,029 3 65 21.3 30.3 2,703,490 29,745 65,870 109,675 1,320,579 1,273,236 27,391 41 131,740 1
configure.ocaml no-host 3,982 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 57 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,951 1 2 2.6 24.4 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.8 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 835 1 2 2.6 7.6 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 16,128 1 67 14.9 27.3 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 15,108 3 67 21.3 30.0 2,703,490 42,741 65,808 109,677 1,320,579 1,273,234 27,391 41 131,616 1
configure.ocaml no-host 3,924 1 2 2.6 20.6 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 24.4 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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.5 bash
15 no-host abuild-print-help 10 10 0 3.4 dash
23 no-host abuild-print-help 465 393 76 21.8 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
39 no-host abuild-print-help 21 10 12 8.5 osh-native-souffle
1 no-host bin-true 689 528 190 2.9 bash
9 no-host bin-true 557 419 148 1.4 dash
17 no-host bin-true 2,439 1,562 1,164 17.6 osh-cpython
25 no-host bin-true 823 579 258 7.9 osh-native
33 no-host bin-true 835 582 269 7.6 osh-native-souffle
2 no-host configure.cpython 15,974 9,569 6,807 27.4 bash
10 no-host configure.cpython 15,802 9,416 6,814 27.4 dash
18 no-host configure.cpython 31,135 18,762 14,458 27.4 osh-cpython
26 no-host configure.cpython 15,953 9,266 6,962 27.4 osh-native
34 no-host configure.cpython 16,128 9,431 6,861 27.3 osh-native-souffle
4 no-host configure.ocaml 4,020 1,694 1,364 20.6 bash
12 no-host configure.ocaml 3,953 1,701 1,271 20.6 dash
20 no-host configure.ocaml 4,750 2,350 1,617 20.6 osh-cpython
28 no-host configure.ocaml 3,982 1,706 1,314 20.6 osh-native
36 no-host configure.ocaml 3,924 1,697 1,265 20.6 osh-native-souffle
5 no-host configure.tcc 50 35 17 19.3 bash
13 no-host configure.tcc 44 23 21 19.3 dash
21 no-host configure.tcc 200 151 53 19.3 osh-cpython
29 no-host configure.tcc 57 41 17 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,975 9,314 6,148 30.3 bash
11 no-host configure.util-linux 15,974 9,728 6,748 30.3 dash
19 no-host configure.util-linux 33,224 21,669 12,717 30.3 osh-cpython
27 no-host configure.util-linux 15,029 9,109 6,119 30.3 osh-native
35 no-host configure.util-linux 15,108 8,902 6,393 30.0 osh-native-souffle
6 no-host configure.yash 1,958 1,162 806 24.4 bash
14 no-host configure.yash 1,889 1,108 785 24.4 dash
22 no-host configure.yash 2,553 1,441 1,158 24.5 osh-cpython
30 no-host configure.yash 1,951 1,127 828 24.4 osh-native
38 no-host configure.yash 1,842 1,025 821 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 54 29 24 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,565 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,227 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,187 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,082 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 104,302 0 0 0 8 0 1,986 48 bash
9 no-host bin-true 66,401 0 0 0 8 0 1,985 39 dash
17 no-host bin-true 756,308 0 0 0 8 0 1,994 118 osh-cpython
25 no-host bin-true 126,125 0 0 0 16 0 1,980 71 osh-native
33 no-host bin-true 126,797 0 0 0 16 0 1,988 70 osh-native-souffle
2 no-host configure.cpython 2,217,405 0 0 0 32,928 0 14,505 1,062 bash
10 no-host configure.cpython 2,239,003 1 0 0 32,992 0 14,621 1,119 dash
18 no-host configure.cpython 6,215,384 0 0 0 27,512 0 13,270 1,290 osh-cpython
26 no-host configure.cpython 2,227,317 0 0 0 27,520 0 13,234 994 osh-native
34 no-host configure.cpython 2,209,649 0 0 0 27,520 0 13,285 938 osh-native-souffle
4 no-host configure.ocaml 410,431 0 0 0 5,120 0 1,946 148 bash
12 no-host configure.ocaml 390,636 0 0 0 5,112 0 1,874 145 dash
20 no-host configure.ocaml 645,418 1 0 0 5,112 0 1,859 182 osh-cpython
28 no-host configure.ocaml 414,254 0 0 0 5,120 0 1,933 166 osh-native
36 no-host configure.ocaml 413,358 0 0 0 5,120 0 1,933 124 osh-native-souffle
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,558 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 46 1 osh-native
37 no-host configure.tcc 6,935 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,101,804 1 0 0 42,400 0 18,631 1,263 bash
11 no-host configure.util-linux 2,261,270 0 0 0 42,592 0 17,470 1,182 dash
19 no-host configure.util-linux 5,327,979 10 0 0 39,112 0 16,960 1,334 osh-cpython
27 no-host configure.util-linux 2,004,046 0 0 0 39,128 0 16,960 1,064 osh-native
35 no-host configure.util-linux 1,995,173 1 0 0 39,136 0 16,958 1,020 osh-native-souffle
6 no-host configure.yash 254,968 0 0 0 4,120 0 871 78 bash
14 no-host configure.yash 245,041 0 0 0 3,720 0 867 71 dash
22 no-host configure.yash 385,867 0 0 0 3,728 0 857 87 osh-cpython
30 no-host configure.yash 258,452 0 0 0 3,736 0 850 83 osh-native
38 no-host configure.yash 257,803 0 0 0 3,736 0 846 64 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,729 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b61501d3
dash dash-0ebcf347
osh-cpython osh-a0940ff3
osh-native osh-850698d9
osh-native-souffle osh-8d7c9284
host label host id
no-host no-host-556df3ee