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 9 448 22 20 23.64 1.16
bin-true no-host 644 530 2,194 811 773 3.41 1.26
configure.cpython no-host 14,689 14,413 27,531 14,606 14,767 1.87 0.99
configure.ocaml no-host 3,702 3,627 4,509 3,694 3,676 1.22 1.00
configure.tcc no-host 57 40 198 47 47 3.47 0.82
configure.util-linux no-host 13,681 14,223 30,039 13,797 13,727 2.20 1.01
configure.yash no-host 1,751 1,701 2,397 1,739 1,738 1.37 0.99
hello-world no-host 2 1 55 3 3 36.34 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,538 1,098 23,976 3,194 3,100 9.45 1.26
bin-true no-host 106,377 65,476 773,672 126,178 125,293 7.27 1.19
configure.cpython no-host 2,223,336 2,239,751 6,241,543 2,213,228 2,216,424 2.81 1.00
configure.ocaml no-host 410,452 391,246 650,604 413,441 412,648 1.59 1.01
configure.tcc no-host 6,554 5,476 24,137 6,973 6,934 3.68 1.06
configure.util-linux no-host 2,090,635 2,265,868 5,388,657 2,003,686 1,991,041 2.58 0.96
configure.yash no-host 256,957 245,067 388,773 257,611 257,343 1.51 1.00
hello-world no-host 156 82 3,958 342 337 25.37 2.19

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.6 9.0 8.7 5.06 2.03
bin-true no-host 2.9 1.4 18.2 8.1 7.7 6.32 2.82
configure.cpython no-host 27.4 27.3 27.5 27.5 27.1 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.4 19.3 19.1 1.01 1.00
configure.util-linux no-host 30.3 30.0 30.0 30.1 30.0 0.99 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.4 1.01 1.00
hello-world no-host 2.9 1.4 18.1 6.3 5.9 6.29 2.18

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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 811 1 2 2.6 8.1 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 14,606 1 58 14.9 27.5 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 13,797 3 58 21.2 30.1 2,702,514 45,898 65,712 108,691 1,290,641 1,303,182 32,239 41 131,424 1
configure.ocaml no-host 3,694 0 2 2.6 20.6 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.3 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,739 1 2 2.5 24.2 139,413 8,025 6,687 5,989 67,943 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,293 64,404 42,614 4,532 54,437 57,324 277 3 85,228 1
hello-world no-host 3 0 0 0.2 5.9 3,782 3,782 0 695 1,859 1,228 2 0 50,000 0
bin-true no-host 773 1 2 2.6 7.7 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 14,767 1 59 14.9 27.1 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 13,727 3 59 21.2 30.0 2,702,514 53,694 65,650 108,693 1,290,641 1,303,180 32,239 41 131,300 1
configure.ocaml no-host 3,676 1 2 2.6 20.6 150,081 11,051 5,146 7,510 70,970 71,601 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.1 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.5 24.4 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,292 64,342 42,552 4,533 54,437 57,322 277 3 85,104 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 7 12 4.5 bash
15 no-host abuild-print-help 9 9 0 3.4 dash
23 no-host abuild-print-help 448 417 34 22.6 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 20 11 9 8.7 osh-native-souffle
1 no-host bin-true 644 488 184 2.9 bash
9 no-host bin-true 530 419 121 1.4 dash
17 no-host bin-true 2,194 1,490 950 18.2 osh-cpython
25 no-host bin-true 811 587 233 8.1 osh-native
33 no-host bin-true 773 534 250 7.7 osh-native-souffle
2 no-host configure.cpython 14,689 8,753 6,336 27.4 bash
10 no-host configure.cpython 14,413 8,689 6,127 27.3 dash
18 no-host configure.cpython 27,531 17,192 12,123 27.5 osh-cpython
26 no-host configure.cpython 14,606 8,615 6,254 27.5 osh-native
34 no-host configure.cpython 14,767 8,814 6,085 27.1 osh-native-souffle
4 no-host configure.ocaml 3,702 1,509 1,230 20.6 bash
12 no-host configure.ocaml 3,627 1,572 1,074 20.6 dash
20 no-host configure.ocaml 4,509 2,072 1,637 20.6 osh-cpython
28 no-host configure.ocaml 3,694 1,533 1,198 20.6 osh-native
36 no-host configure.ocaml 3,676 1,577 1,136 20.6 osh-native-souffle
5 no-host configure.tcc 57 31 24 19.3 bash
13 no-host configure.tcc 40 26 14 19.3 dash
21 no-host configure.tcc 198 155 46 19.4 osh-cpython
29 no-host configure.tcc 47 28 19 19.3 osh-native
37 no-host configure.tcc 47 28 20 19.1 osh-native-souffle
3 no-host configure.util-linux 13,681 8,600 5,548 30.3 bash
11 no-host configure.util-linux 14,223 8,904 5,798 30.0 dash
19 no-host configure.util-linux 30,039 20,208 10,874 30.0 osh-cpython
27 no-host configure.util-linux 13,797 8,463 5,526 30.1 osh-native
35 no-host configure.util-linux 13,727 8,365 5,555 30.0 osh-native-souffle
6 no-host configure.yash 1,751 1,066 694 24.2 bash
14 no-host configure.yash 1,701 1,002 702 24.2 dash
22 no-host configure.yash 2,397 1,476 961 24.4 osh-cpython
30 no-host configure.yash 1,739 1,015 728 24.2 osh-native
38 no-host configure.yash 1,738 1,030 713 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 55 40 16 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,538 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,976 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,194 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,377 0 0 0 8 0 1,993 62 bash
9 no-host bin-true 65,476 0 0 0 8 0 1,991 33 dash
17 no-host bin-true 773,672 0 0 0 8 0 1,999 105 osh-cpython
25 no-host bin-true 126,178 0 0 0 16 0 1,991 51 osh-native
33 no-host bin-true 125,293 0 0 0 16 0 1,995 49 osh-native-souffle
2 no-host configure.cpython 2,223,336 0 0 0 32,928 0 14,563 1,190 bash
10 no-host configure.cpython 2,239,751 0 0 0 32,992 0 14,646 1,127 dash
18 no-host configure.cpython 6,241,543 0 0 0 27,512 0 13,199 1,144 osh-cpython
26 no-host configure.cpython 2,213,228 0 0 0 27,520 0 13,285 917 osh-native
34 no-host configure.cpython 2,216,424 0 0 0 27,520 0 13,263 1,010 osh-native-souffle
4 no-host configure.ocaml 410,452 0 0 0 5,120 0 1,942 155 bash
12 no-host configure.ocaml 391,246 0 0 0 5,112 0 1,919 138 dash
20 no-host configure.ocaml 650,604 0 0 0 5,112 0 1,858 195 osh-cpython
28 no-host configure.ocaml 413,441 0 0 0 5,120 0 1,919 165 osh-native
36 no-host configure.ocaml 412,648 0 0 0 5,120 0 1,924 153 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 52 8 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,137 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 11 osh-native
37 no-host configure.tcc 6,934 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,090,635 1 0 0 42,400 0 18,683 1,093 bash
11 no-host configure.util-linux 2,265,868 2 0 0 42,584 0 17,516 960 dash
19 no-host configure.util-linux 5,388,657 6 0 0 39,112 0 16,951 1,049 osh-cpython
27 no-host configure.util-linux 2,003,686 1 0 0 39,120 0 17,012 960 osh-native
35 no-host configure.util-linux 1,991,041 1 0 0 39,136 0 16,995 1,017 osh-native-souffle
6 no-host configure.yash 256,957 0 0 0 4,120 0 867 89 bash
14 no-host configure.yash 245,067 0 0 0 3,720 0 869 73 dash
22 no-host configure.yash 388,773 0 0 0 3,728 0 851 83 osh-cpython
30 no-host configure.yash 257,611 0 0 0 3,736 0 845 87 osh-native
38 no-host configure.yash 257,343 0 0 0 3,736 0 848 69 osh-native-souffle
0 no-host hello-world 156 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,958 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1a347425
dash dash-0ebcf347
osh-cpython osh-223eb496
osh-native osh-39d1fd48
osh-native-souffle osh-9c4e75b5
host label host id
no-host no-host-556df3ee