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 474 22 22 24.44 1.15
bin-true no-host 681 551 2,284 825 814 3.35 1.21
configure.cpython no-host 15,519 15,521 29,307 15,575 15,523 1.89 1.00
configure.ocaml no-host 3,881 3,787 4,815 3,871 3,861 1.24 1.00
configure.tcc no-host 47 42 206 49 50 4.34 1.04
configure.util-linux no-host 14,382 15,254 31,938 14,687 14,556 2.22 1.02
configure.yash no-host 1,880 1,807 2,509 1,866 1,876 1.33 0.99
hello-world no-host 2 1 57 3 3 33.79 1.72

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,511 1,096 23,850 3,215 3,120 9.50 1.28
bin-true no-host 102,394 66,414 768,590 129,266 125,208 7.51 1.26
configure.cpython no-host 2,223,102 2,240,873 6,238,659 2,219,969 2,200,680 2.81 1.00
configure.ocaml no-host 410,675 391,101 647,363 413,055 412,502 1.58 1.01
configure.tcc no-host 6,546 5,506 24,115 6,965 6,917 3.68 1.06
configure.util-linux no-host 2,098,928 2,262,039 5,390,835 1,992,446 1,988,215 2.57 0.95
configure.yash no-host 255,593 244,502 388,926 258,143 258,079 1.52 1.01
hello-world no-host 153 83 3,944 342 338 25.78 2.24

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.2 3.5 22.7 9.0 8.5 5.41 2.16
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.09 2.65
configure.cpython no-host 27.1 27.5 27.4 27.5 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.0 30.1 30.3 30.4 30.3 1.01 1.01
configure.yash no-host 24.2 24.4 24.4 24.5 24.2 1.01 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,575 1 64 14.9 27.5 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,687 3 63 21.2 30.4 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,871 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,866 1 2 2.5 24.5 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,523 1 62 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,556 3 63 21.2 30.3 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,861 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,876 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 10 10 4.2 bash
15 no-host abuild-print-help 10 10 0 3.5 dash
23 no-host abuild-print-help 474 439 38 22.7 osh-cpython
31 no-host abuild-print-help 22 10 13 9.0 osh-native
39 no-host abuild-print-help 22 14 8 8.5 osh-native-souffle
1 no-host bin-true 681 489 222 3.0 bash
9 no-host bin-true 551 422 139 1.4 dash
17 no-host bin-true 2,284 1,449 1,100 18.4 osh-cpython
25 no-host bin-true 825 595 243 8.0 osh-native
33 no-host bin-true 814 554 274 7.7 osh-native-souffle
2 no-host configure.cpython 15,519 9,434 6,484 27.1 bash
10 no-host configure.cpython 15,521 9,270 6,685 27.5 dash
18 no-host configure.cpython 29,307 17,780 13,441 27.4 osh-cpython
26 no-host configure.cpython 15,575 9,286 6,561 27.5 osh-native
34 no-host configure.cpython 15,523 9,068 6,586 27.4 osh-native-souffle
4 no-host configure.ocaml 3,881 1,702 1,216 20.6 bash
12 no-host configure.ocaml 3,787 1,593 1,212 20.4 dash
20 no-host configure.ocaml 4,815 2,337 1,703 20.4 osh-cpython
28 no-host configure.ocaml 3,871 1,714 1,197 20.6 osh-native
36 no-host configure.ocaml 3,861 1,659 1,236 20.6 osh-native-souffle
5 no-host configure.tcc 47 31 17 19.4 bash
13 no-host configure.tcc 42 22 20 19.4 dash
21 no-host configure.tcc 206 154 55 19.3 osh-cpython
29 no-host configure.tcc 49 35 15 19.3 osh-native
37 no-host configure.tcc 50 22 29 19.4 osh-native-souffle
3 no-host configure.util-linux 14,382 9,117 5,738 30.0 bash
11 no-host configure.util-linux 15,254 9,310 6,430 30.1 dash
19 no-host configure.util-linux 31,938 21,545 11,509 30.3 osh-cpython
27 no-host configure.util-linux 14,687 8,817 6,068 30.4 osh-native
35 no-host configure.util-linux 14,556 8,616 6,139 30.3 osh-native-souffle
6 no-host configure.yash 1,880 1,132 757 24.2 bash
14 no-host configure.yash 1,807 1,003 807 24.4 dash
22 no-host configure.yash 2,509 1,522 1,031 24.4 osh-cpython
30 no-host configure.yash 1,866 1,084 785 24.5 osh-native
38 no-host configure.yash 1,876 1,076 804 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 40 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 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,511 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,850 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,215 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,120 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 102,394 0 0 0 8 0 1,989 113 bash
9 no-host bin-true 66,414 0 0 0 8 0 1,987 31 dash
17 no-host bin-true 768,590 0 0 0 8 0 1,999 124 osh-cpython
25 no-host bin-true 129,266 0 0 0 16 0 1,984 55 osh-native
33 no-host bin-true 125,208 0 0 0 16 0 1,986 50 osh-native-souffle
2 no-host configure.cpython 2,223,102 0 0 0 32,928 0 14,522 1,135 bash
10 no-host configure.cpython 2,240,873 0 0 0 32,992 0 14,608 964 dash
18 no-host configure.cpython 6,238,659 0 0 0 27,512 0 13,271 1,162 osh-cpython
26 no-host configure.cpython 2,219,969 0 0 0 27,520 0 13,180 978 osh-native
34 no-host configure.cpython 2,200,680 0 0 0 27,520 0 13,252 917 osh-native-souffle
4 no-host configure.ocaml 410,675 0 0 0 5,120 0 1,948 141 bash
12 no-host configure.ocaml 391,101 0 0 0 5,112 0 1,868 155 dash
20 no-host configure.ocaml 647,363 1 0 0 5,112 0 1,856 173 osh-cpython
28 no-host configure.ocaml 413,055 0 0 0 5,120 0 1,924 189 osh-native
36 no-host configure.ocaml 412,502 0 0 0 5,120 0 1,933 173 osh-native-souffle
5 no-host configure.tcc 6,546 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,506 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,115 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,965 0 0 0 104 0 45 4 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,098,928 0 0 0 42,400 0 18,508 991 bash
11 no-host configure.util-linux 2,262,039 1 0 0 42,584 0 17,265 1,259 dash
19 no-host configure.util-linux 5,390,835 12 0 0 39,112 0 16,961 1,290 osh-cpython
27 no-host configure.util-linux 1,992,446 1 0 0 39,128 0 16,975 900 osh-native
35 no-host configure.util-linux 1,988,215 0 0 0 39,136 0 17,105 939 osh-native-souffle
6 no-host configure.yash 255,593 0 0 0 4,120 0 873 82 bash
14 no-host configure.yash 244,502 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 388,926 0 0 0 3,728 0 850 88 osh-cpython
30 no-host configure.yash 258,143 0 0 0 3,736 0 848 170 osh-native
38 no-host configure.yash 258,079 0 0 0 3,736 0 849 73 osh-native-souffle
0 no-host hello-world 153 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,944 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 342 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-fa593070
dash dash-0ebcf347
osh-cpython osh-73902e7b
osh-native osh-8748cead
osh-native-souffle osh-a358edc2
host label host id
no-host no-host-556df3ee