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 467 22 21 24.36 1.16
bin-true no-host 686 552 2,292 830 809 3.34 1.21
configure.cpython no-host 15,121 15,217 29,626 15,319 15,455 1.96 1.01
configure.ocaml no-host 3,830 3,758 4,693 3,849 3,818 1.23 1.00
configure.tcc no-host 48 42 204 48 49 4.27 1.01
configure.util-linux no-host 14,094 14,989 32,186 14,767 14,344 2.28 1.05
configure.yash no-host 1,828 1,786 2,560 1,828 1,849 1.40 1.00
hello-world no-host 2 1 58 3 3 34.78 1.74

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,536 1,097 23,671 3,201 3,134 9.33 1.26
bin-true no-host 106,395 66,433 767,680 128,299 125,211 7.22 1.21
configure.cpython no-host 2,223,002 2,246,739 6,235,341 2,221,040 2,214,860 2.80 1.00
configure.ocaml no-host 411,120 390,954 647,850 412,896 412,342 1.58 1.00
configure.tcc no-host 6,562 5,471 24,118 6,983 6,920 3.68 1.06
configure.util-linux no-host 2,098,510 2,263,776 5,398,607 2,004,197 1,987,423 2.57 0.96
configure.yash no-host 256,519 245,032 388,407 258,088 257,591 1.51 1.01
hello-world no-host 152 82 3,940 342 337 25.92 2.25

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.4 9.2 8.5 5.18 2.12
bin-true no-host 3.0 1.4 18.2 8.1 7.7 6.05 2.70
configure.cpython no-host 27.3 27.7 27.5 27.4 27.4 1.01 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.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.2 24.5 1.00 1.00
hello-world no-host 2.9 1.4 18.2 6.2 5.9 6.32 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,783 3,783 0 694 1,859 1,230 2 0 50,000 0
bin-true no-host 830 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 15,319 1 63 14.9 27.4 1,771,748 49,126 28,513 85,415 878,116 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,767 3 62 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,849 1 2 2.6 20.4 150,081 11,113 5,208 7,508 70,970 71,603 1,695 3 50,000 0
configure.tcc no-host 48 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,828 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.2 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 809 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 15,455 1 60 14.9 27.4 1,771,747 49,064 28,451 85,416 878,116 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,344 2 59 21.2 30.1 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,818 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 49 0 0 1.3 19.3 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,849 1 2 2.5 24.5 139,413 7,963 6,625 5,991 67,943 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 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 14 6 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 467 401 69 22.4 osh-cpython
31 no-host abuild-print-help 22 15 8 9.2 osh-native
39 no-host abuild-print-help 21 13 9 8.5 osh-native-souffle
1 no-host bin-true 686 503 215 3.0 bash
9 no-host bin-true 552 430 131 1.4 dash
17 no-host bin-true 2,292 1,517 1,038 18.2 osh-cpython
25 no-host bin-true 830 584 261 8.1 osh-native
33 no-host bin-true 809 590 237 7.7 osh-native-souffle
2 no-host configure.cpython 15,121 9,095 6,425 27.3 bash
10 no-host configure.cpython 15,217 9,274 6,368 27.7 dash
18 no-host configure.cpython 29,626 18,156 13,393 27.5 osh-cpython
26 no-host configure.cpython 15,319 9,079 6,508 27.4 osh-native
34 no-host configure.cpython 15,455 8,813 6,752 27.4 osh-native-souffle
4 no-host configure.ocaml 3,830 1,644 1,217 20.6 bash
12 no-host configure.ocaml 3,758 1,622 1,153 20.6 dash
20 no-host configure.ocaml 4,693 2,346 1,560 20.6 osh-cpython
28 no-host configure.ocaml 3,849 1,578 1,309 20.4 osh-native
36 no-host configure.ocaml 3,818 1,624 1,228 20.6 osh-native-souffle
5 no-host configure.tcc 48 23 26 19.3 bash
13 no-host configure.tcc 42 34 8 19.3 dash
21 no-host configure.tcc 204 148 60 19.4 osh-cpython
29 no-host configure.tcc 48 33 16 19.3 osh-native
37 no-host configure.tcc 49 36 13 19.3 osh-native-souffle
3 no-host configure.util-linux 14,094 8,911 5,662 30.1 bash
11 no-host configure.util-linux 14,989 9,075 6,411 30.1 dash
19 no-host configure.util-linux 32,186 21,490 11,793 30.0 osh-cpython
27 no-host configure.util-linux 14,767 8,987 5,962 30.1 osh-native
35 no-host configure.util-linux 14,344 8,665 5,875 30.1 osh-native-souffle
6 no-host configure.yash 1,828 1,039 798 24.2 bash
14 no-host configure.yash 1,786 983 807 24.4 dash
22 no-host configure.yash 2,560 1,489 1,115 24.2 osh-cpython
30 no-host configure.yash 1,828 1,026 805 24.2 osh-native
38 no-host configure.yash 1,849 1,110 742 24.5 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 58 37 21 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,536 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,671 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,201 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,134 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,395 0 0 0 8 0 1,990 48 bash
9 no-host bin-true 66,433 0 0 0 8 0 1,984 52 dash
17 no-host bin-true 767,680 0 0 0 8 0 1,996 102 osh-cpython
25 no-host bin-true 128,299 0 0 0 16 0 1,994 233 osh-native
33 no-host bin-true 125,211 0 0 0 16 0 1,982 50 osh-native-souffle
2 no-host configure.cpython 2,223,002 0 0 0 32,928 0 14,513 1,156 bash
10 no-host configure.cpython 2,246,739 0 0 0 32,992 0 14,594 918 dash
18 no-host configure.cpython 6,235,341 0 0 0 27,512 0 13,283 1,060 osh-cpython
26 no-host configure.cpython 2,221,040 1 0 0 27,520 0 13,214 949 osh-native
34 no-host configure.cpython 2,214,860 0 0 0 27,520 0 13,272 1,099 osh-native-souffle
4 no-host configure.ocaml 411,120 0 0 0 5,120 0 1,961 175 bash
12 no-host configure.ocaml 390,954 0 0 0 5,112 0 1,872 372 dash
20 no-host configure.ocaml 647,850 0 0 0 5,112 0 1,858 178 osh-cpython
28 no-host configure.ocaml 412,896 0 0 0 5,120 0 1,928 169 osh-native
36 no-host configure.ocaml 412,342 0 0 0 5,120 0 1,936 149 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,118 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,983 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,920 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,098,510 0 0 0 42,408 0 18,513 1,008 bash
11 no-host configure.util-linux 2,263,776 2 0 0 42,592 0 17,515 1,085 dash
19 no-host configure.util-linux 5,398,607 6 0 0 39,112 0 16,964 1,244 osh-cpython
27 no-host configure.util-linux 2,004,197 0 0 0 39,128 0 16,973 975 osh-native
35 no-host configure.util-linux 1,987,423 0 0 0 39,136 0 16,982 972 osh-native-souffle
6 no-host configure.yash 256,519 0 0 0 4,120 0 866 90 bash
14 no-host configure.yash 245,032 0 0 0 3,720 0 864 77 dash
22 no-host configure.yash 388,407 0 0 0 3,728 0 855 82 osh-cpython
30 no-host configure.yash 258,088 0 0 0 3,736 0 846 80 osh-native
38 no-host configure.yash 257,591 0 0 0 3,736 0 850 86 osh-native-souffle
0 no-host hello-world 152 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,940 0 0 0 8 0 7 3 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-35b60c40
dash dash-0ebcf347
osh-cpython osh-485d933d
osh-native osh-f74b5e46
osh-native-souffle osh-81497d74
host label host id
no-host no-host-556df3ee