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 482 22 21 24.78 1.15
bin-true no-host 678 549 2,302 814 805 3.40 1.20
configure.cpython no-host 15,212 15,229 29,207 15,415 15,536 1.92 1.01
configure.ocaml no-host 3,808 3,759 4,714 3,851 3,854 1.24 1.01
configure.tcc no-host 48 42 206 49 49 4.30 1.03
configure.util-linux no-host 14,152 15,000 31,914 14,490 14,460 2.26 1.02
configure.yash no-host 1,843 1,789 2,496 1,848 1,854 1.35 1.00
hello-world no-host 1 1 57 3 3 39.20 1.93

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,534 1,106 23,955 3,213 3,092 9.45 1.27
bin-true no-host 107,381 66,461 771,656 125,236 125,194 7.19 1.17
configure.cpython no-host 2,219,977 2,240,836 6,237,663 2,220,590 2,215,492 2.81 1.00
configure.ocaml no-host 410,527 391,464 649,599 412,609 412,505 1.58 1.01
configure.tcc no-host 6,573 5,488 24,131 6,941 6,888 3.67 1.06
configure.util-linux no-host 2,092,594 2,258,646 5,387,019 1,995,355 1,990,960 2.57 0.95
configure.yash no-host 256,130 244,129 388,879 257,638 257,575 1.52 1.01
hello-world no-host 151 83 3,955 340 338 26.19 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.5 3.4 22.7 8.9 8.7 5.09 2.00
bin-true no-host 3.0 1.4 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.5 27.1 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.6 24.2 1.00 1.01
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 814 1 2 2.6 8.0 153,747 12,268 2,888 8,743 76,323 68,681 3,008 3 50,000 0
configure.cpython no-host 15,415 1 65 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,490 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,851 1 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 49 0 0 1.3 19.4 30,587 30,587 0 1,518 14,642 14,427 271 0 50,000 0
configure.yash no-host 1,848 1 2 2.5 24.6 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 8.9 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 805 1 2 2.6 7.6 153,746 12,112 2,826 8,744 76,323 68,679 3,008 3 50,000 0
configure.cpython no-host 15,536 1 63 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,460 3 61 21.2 30.3 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,854 1 2 2.6 20.4 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.4 30,587 30,587 0 1,520 14,642 14,425 271 0 50,000 0
configure.yash no-host 1,854 1 2 2.5 24.2 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.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 12 8 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 482 446 40 22.7 osh-cpython
31 no-host abuild-print-help 22 20 3 8.9 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 678 509 201 3.0 bash
9 no-host bin-true 549 423 138 1.4 dash
17 no-host bin-true 2,302 1,487 1,074 18.4 osh-cpython
25 no-host bin-true 814 574 253 8.0 osh-native
33 no-host bin-true 805 573 246 7.6 osh-native-souffle
2 no-host configure.cpython 15,212 9,166 6,441 27.5 bash
10 no-host configure.cpython 15,229 9,181 6,483 27.1 dash
18 no-host configure.cpython 29,207 17,928 13,187 27.4 osh-cpython
26 no-host configure.cpython 15,415 9,168 6,524 27.4 osh-native
34 no-host configure.cpython 15,536 9,031 6,647 27.4 osh-native-souffle
4 no-host configure.ocaml 3,808 1,655 1,192 20.6 bash
12 no-host configure.ocaml 3,759 1,578 1,203 20.6 dash
20 no-host configure.ocaml 4,714 2,231 1,700 20.6 osh-cpython
28 no-host configure.ocaml 3,851 1,683 1,206 20.6 osh-native
36 no-host configure.ocaml 3,854 1,600 1,291 20.4 osh-native-souffle
5 no-host configure.tcc 48 31 17 19.3 bash
13 no-host configure.tcc 42 28 15 19.3 dash
21 no-host configure.tcc 206 163 46 19.4 osh-cpython
29 no-host configure.tcc 49 31 18 19.4 osh-native
37 no-host configure.tcc 49 36 14 19.4 osh-native-souffle
3 no-host configure.util-linux 14,152 8,876 5,753 30.3 bash
11 no-host configure.util-linux 15,000 9,299 6,203 30.0 dash
19 no-host configure.util-linux 31,914 21,531 11,506 30.1 osh-cpython
27 no-host configure.util-linux 14,490 8,619 6,073 30.1 osh-native
35 no-host configure.util-linux 14,460 8,741 5,921 30.3 osh-native-souffle
6 no-host configure.yash 1,843 1,096 755 24.4 bash
14 no-host configure.yash 1,789 1,067 721 24.2 dash
22 no-host configure.yash 2,496 1,511 1,027 24.4 osh-cpython
30 no-host configure.yash 1,848 1,054 799 24.6 osh-native
38 no-host configure.yash 1,854 1,098 760 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 49 8 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 0 3 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,955 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,092 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 107,381 0 0 0 8 0 1,992 94 bash
9 no-host bin-true 66,461 0 0 0 8 0 1,987 41 dash
17 no-host bin-true 771,656 0 0 0 8 0 1,996 218 osh-cpython
25 no-host bin-true 125,236 0 0 0 16 0 1,992 82 osh-native
33 no-host bin-true 125,194 0 0 0 16 0 1,982 80 osh-native-souffle
2 no-host configure.cpython 2,219,977 0 0 0 32,952 0 14,497 977 bash
10 no-host configure.cpython 2,240,836 0 0 0 32,992 0 14,652 1,040 dash
18 no-host configure.cpython 6,237,663 2 0 0 27,512 0 13,215 1,187 osh-cpython
26 no-host configure.cpython 2,220,590 0 0 0 27,520 0 13,228 1,043 osh-native
34 no-host configure.cpython 2,215,492 0 0 0 27,520 0 13,301 941 osh-native-souffle
4 no-host configure.ocaml 410,527 0 0 0 5,120 0 1,946 124 bash
12 no-host configure.ocaml 391,464 0 0 0 5,112 0 1,940 145 dash
20 no-host configure.ocaml 649,599 0 0 0 5,112 0 1,843 170 osh-cpython
28 no-host configure.ocaml 412,609 0 0 0 5,120 0 1,919 175 osh-native
36 no-host configure.ocaml 412,505 0 0 0 5,120 0 1,929 157 osh-native-souffle
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,131 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,941 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,888 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,092,594 0 0 0 42,400 0 18,571 1,205 bash
11 no-host configure.util-linux 2,258,646 2 0 0 42,584 0 17,415 1,082 dash
19 no-host configure.util-linux 5,387,019 7 0 0 39,112 0 17,048 1,115 osh-cpython
27 no-host configure.util-linux 1,995,355 0 0 0 39,128 0 16,985 962 osh-native
35 no-host configure.util-linux 1,990,960 2 0 0 39,136 0 16,954 1,004 osh-native-souffle
6 no-host configure.yash 256,130 0 0 0 4,120 0 867 73 bash
14 no-host configure.yash 244,129 0 0 0 3,720 0 863 84 dash
22 no-host configure.yash 388,879 0 0 0 3,728 0 847 113 osh-cpython
30 no-host configure.yash 257,638 0 0 0 3,736 0 847 71 osh-native
38 no-host configure.yash 257,575 0 0 0 3,736 0 853 67 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,955 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-37cb54d1
dash dash-0ebcf347
osh-cpython osh-c83fff6f
osh-native osh-929378dd
osh-native-souffle osh-e5111f78
host label host id
no-host no-host-556df3ee