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 455 22 21 23.55 1.14
bin-true no-host 684 544 2,267 812 823 3.31 1.19
configure.cpython no-host 15,136 15,344 29,189 15,564 15,450 1.93 1.03
configure.ocaml no-host 3,856 3,789 4,724 3,887 3,845 1.22 1.01
configure.tcc no-host 48 42 198 49 48 4.08 1.02
configure.util-linux no-host 14,085 15,142 31,805 14,636 14,473 2.26 1.04
configure.yash no-host 1,846 1,809 2,505 1,863 1,855 1.36 1.01
hello-world no-host 2 1 50 3 3 33.17 1.90

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,575 1,137 23,354 3,227 3,136 9.07 1.25
bin-true no-host 106,342 65,547 757,964 125,389 126,883 7.13 1.18
configure.cpython no-host 2,222,286 2,236,788 6,222,321 2,232,467 2,218,648 2.80 1.00
configure.ocaml no-host 410,712 390,968 646,570 414,562 412,355 1.57 1.01
configure.tcc no-host 6,541 5,478 23,513 7,018 6,916 3.59 1.07
configure.util-linux no-host 2,106,255 2,263,699 5,339,039 1,998,539 1,995,923 2.53 0.95
configure.yash no-host 256,683 245,099 388,100 258,652 257,844 1.51 1.01
hello-world no-host 154 80 3,731 354 344 24.23 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.5 21.9 8.9 8.7 4.91 2.00
bin-true no-host 2.9 1.6 17.7 7.9 7.7 6.14 2.73
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.3 19.3 19.1 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.3 30.0 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.9 1.3 17.7 6.2 5.9 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,773 3,773 0 694 1,851 1,228 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.9 154,738 13,218 2,875 9,744 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 15,564 1 62 15.0 27.4 1,772,720 49,852 28,585 86,397 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,636 3 62 21.3 30.1 2,703,488 42,056 65,868 109,675 1,320,578 1,273,235 27,391 41 131,736 1
configure.ocaml no-host 3,887 1 2 2.6 20.4 150,094 11,049 5,219 7,531 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,520 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.2 139,747 8,018 6,677 6,336 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,322 64,528 42,738 4,571 54,520 57,231 270 3 85,476 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 695 1,851 1,226 2 0 50,000 0
bin-true no-host 823 1 2 2.6 7.7 154,737 13,061 2,813 9,745 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 15,450 1 63 14.9 27.4 1,772,719 49,103 28,523 86,398 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,473 3 61 21.3 30.3 2,703,488 42,739 65,826 109,677 1,320,578 1,273,233 27,391 41 131,652 1
configure.ocaml no-host 3,845 1 2 2.6 20.6 150,094 10,987 5,157 7,533 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,579 30,579 0 1,522 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,855 1 2 2.6 24.2 139,747 7,956 6,615 6,338 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,321 64,466 42,676 4,572 54,520 57,229 270 3 85,352 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 6 13 4.5 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 455 402 56 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 11 10 8.7 osh-native-souffle
1 no-host bin-true 684 491 224 2.9 bash
9 no-host bin-true 544 414 138 1.6 dash
17 no-host bin-true 2,267 1,427 1,102 17.7 osh-cpython
25 no-host bin-true 812 587 241 7.9 osh-native
33 no-host bin-true 823 564 272 7.7 osh-native-souffle
2 no-host configure.cpython 15,136 9,127 6,407 27.4 bash
10 no-host configure.cpython 15,344 9,130 6,637 27.4 dash
18 no-host configure.cpython 29,189 17,361 13,721 27.5 osh-cpython
26 no-host configure.cpython 15,564 9,081 6,747 27.4 osh-native
34 no-host configure.cpython 15,450 9,188 6,432 27.4 osh-native-souffle
4 no-host configure.ocaml 3,856 1,658 1,210 20.6 bash
12 no-host configure.ocaml 3,789 1,672 1,136 20.6 dash
20 no-host configure.ocaml 4,724 2,249 1,687 20.6 osh-cpython
28 no-host configure.ocaml 3,887 1,594 1,332 20.4 osh-native
36 no-host configure.ocaml 3,845 1,562 1,317 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 26 19.3 bash
13 no-host configure.tcc 42 36 7 19.3 dash
21 no-host configure.tcc 198 132 69 19.1 osh-cpython
29 no-host configure.tcc 49 31 19 19.3 osh-native
37 no-host configure.tcc 48 32 17 19.4 osh-native-souffle
3 no-host configure.util-linux 14,085 9,043 5,495 30.1 bash
11 no-host configure.util-linux 15,142 9,203 6,421 30.3 dash
19 no-host configure.util-linux 31,805 21,368 11,551 30.0 osh-cpython
27 no-host configure.util-linux 14,636 8,803 6,014 30.1 osh-native
35 no-host configure.util-linux 14,473 8,637 6,020 30.3 osh-native-souffle
6 no-host configure.yash 1,846 1,045 806 24.2 bash
14 no-host configure.yash 1,809 994 818 24.4 dash
22 no-host configure.yash 2,505 1,570 978 24.4 osh-cpython
30 no-host configure.yash 1,863 1,079 789 24.2 osh-native
38 no-host configure.yash 1,855 1,061 796 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 21 29 17.7 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,575 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,354 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,227 0 0 0 16 0 40 2 osh-native
39 no-host abuild-print-help 3,136 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,342 0 0 0 8 0 1,997 48 bash
9 no-host bin-true 65,547 0 0 0 8 0 1,991 73 dash
17 no-host bin-true 757,964 0 0 0 8 0 1,995 226 osh-cpython
25 no-host bin-true 125,389 0 0 0 16 0 1,987 56 osh-native
33 no-host bin-true 126,883 0 0 0 16 0 1,991 81 osh-native-souffle
2 no-host configure.cpython 2,222,286 0 0 0 32,928 0 14,488 1,169 bash
10 no-host configure.cpython 2,236,788 0 0 0 32,992 0 14,630 1,002 dash
18 no-host configure.cpython 6,222,321 0 0 0 27,512 0 13,257 1,134 osh-cpython
26 no-host configure.cpython 2,232,467 1 0 0 27,520 0 13,262 1,016 osh-native
34 no-host configure.cpython 2,218,648 0 0 0 27,520 0 13,153 1,146 osh-native-souffle
4 no-host configure.ocaml 410,712 0 0 0 5,120 0 1,961 146 bash
12 no-host configure.ocaml 390,968 0 0 0 5,112 0 1,925 135 dash
20 no-host configure.ocaml 646,570 0 0 0 5,112 0 1,855 181 osh-cpython
28 no-host configure.ocaml 414,562 0 0 0 5,120 0 1,935 163 osh-native
36 no-host configure.ocaml 412,355 0 0 0 5,120 0 1,933 155 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 46 7 dash
21 no-host configure.tcc 23,513 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,916 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,106,255 0 0 0 42,400 0 18,503 1,010 bash
11 no-host configure.util-linux 2,263,699 0 0 0 42,584 0 17,552 1,169 dash
19 no-host configure.util-linux 5,339,039 3 0 0 39,112 0 16,953 1,380 osh-cpython
27 no-host configure.util-linux 1,998,539 0 0 0 39,120 0 17,008 951 osh-native
35 no-host configure.util-linux 1,995,923 0 0 0 39,128 0 16,969 992 osh-native-souffle
6 no-host configure.yash 256,683 0 0 0 4,120 0 870 99 bash
14 no-host configure.yash 245,099 0 0 0 3,720 0 867 119 dash
22 no-host configure.yash 388,100 0 0 0 3,728 0 854 93 osh-cpython
30 no-host configure.yash 258,652 0 0 0 3,736 0 849 83 osh-native
38 no-host configure.yash 257,844 0 0 0 3,736 0 848 80 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,731 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 354 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-9b950332
dash dash-0ebcf347
osh-cpython osh-84596343
osh-native osh-37098a3f
osh-native-souffle osh-8bbd2105
host label host id
no-host no-host-556df3ee