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 465 22 21 23.90 1.15
bin-true no-host 674 542 2,394 817 806 3.55 1.21
configure.cpython no-host 15,325 15,349 29,118 15,519 15,590 1.90 1.01
configure.ocaml no-host 3,859 3,771 4,694 3,849 3,870 1.22 1.00
configure.tcc no-host 49 42 204 49 49 4.13 0.99
configure.util-linux no-host 14,143 15,044 31,932 14,536 14,525 2.26 1.03
configure.yash no-host 1,870 1,797 2,505 1,857 1,856 1.34 0.99
hello-world no-host 1 1 59 3 3 39.75 2.03

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,542 1,107 23,684 3,211 3,041 9.32 1.26
bin-true no-host 107,397 66,441 774,610 129,282 124,210 7.21 1.20
configure.cpython no-host 2,223,426 2,246,966 6,205,510 2,217,737 2,205,790 2.79 1.00
configure.ocaml no-host 410,633 391,722 646,449 412,499 412,311 1.57 1.00
configure.tcc no-host 6,548 5,500 23,993 6,947 6,910 3.66 1.06
configure.util-linux no-host 2,100,565 2,258,850 5,381,162 1,991,284 1,997,843 2.56 0.95
configure.yash no-host 255,629 245,263 388,157 257,304 258,020 1.52 1.01
hello-world no-host 153 83 3,947 340 340 25.80 2.22

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.7 9.2 8.4 5.25 2.12
bin-true no-host 3.0 1.4 18.2 8.0 7.7 6.05 2.65
configure.cpython no-host 27.4 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.1 19.4 19.4 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.5 24.4 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 817 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,519 1 65 14.9 27.4 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,536 3 65 21.2 30.0 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,849 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,857 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.2 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 806 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,590 1 63 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,525 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,870 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 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,856 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 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 14 6 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 465 416 53 22.7 osh-cpython
31 no-host abuild-print-help 22 17 6 9.2 osh-native
39 no-host abuild-print-help 21 21 0 8.4 osh-native-souffle
1 no-host bin-true 674 519 187 3.0 bash
9 no-host bin-true 542 414 138 1.4 dash
17 no-host bin-true 2,394 1,527 1,138 18.2 osh-cpython
25 no-host bin-true 817 589 244 8.0 osh-native
33 no-host bin-true 806 605 218 7.7 osh-native-souffle
2 no-host configure.cpython 15,325 9,367 6,334 27.4 bash
10 no-host configure.cpython 15,349 9,155 6,611 27.4 dash
18 no-host configure.cpython 29,118 17,647 13,346 27.5 osh-cpython
26 no-host configure.cpython 15,519 9,519 6,257 27.4 osh-native
34 no-host configure.cpython 15,590 9,188 6,456 27.4 osh-native-souffle
4 no-host configure.ocaml 3,859 1,624 1,273 20.4 bash
12 no-host configure.ocaml 3,771 1,603 1,187 20.6 dash
20 no-host configure.ocaml 4,694 2,268 1,639 20.6 osh-cpython
28 no-host configure.ocaml 3,849 1,712 1,174 20.6 osh-native
36 no-host configure.ocaml 3,870 1,729 1,175 20.6 osh-native-souffle
5 no-host configure.tcc 49 39 11 19.1 bash
13 no-host configure.tcc 42 27 15 19.4 dash
21 no-host configure.tcc 204 153 54 19.4 osh-cpython
29 no-host configure.tcc 49 27 23 19.3 osh-native
37 no-host configure.tcc 49 32 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,143 8,884 5,716 30.1 bash
11 no-host configure.util-linux 15,044 9,129 6,395 30.0 dash
19 no-host configure.util-linux 31,932 20,996 12,033 30.1 osh-cpython
27 no-host configure.util-linux 14,536 8,750 5,967 30.0 osh-native
35 no-host configure.util-linux 14,525 8,862 5,848 30.3 osh-native-souffle
6 no-host configure.yash 1,870 1,081 797 24.2 bash
14 no-host configure.yash 1,797 1,030 770 24.2 dash
22 no-host configure.yash 2,505 1,534 1,009 24.4 osh-cpython
30 no-host configure.yash 1,857 1,155 705 24.5 osh-native
38 no-host configure.yash 1,856 1,064 797 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 59 36 23 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,542 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,684 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,211 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,041 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,397 0 0 0 8 0 1,997 93 bash
9 no-host bin-true 66,441 0 0 0 8 0 1,984 37 dash
17 no-host bin-true 774,610 0 0 0 8 0 2,002 603 osh-cpython
25 no-host bin-true 129,282 0 0 0 16 0 1,988 77 osh-native
33 no-host bin-true 124,210 0 0 0 16 0 1,996 69 osh-native-souffle
2 no-host configure.cpython 2,223,426 0 0 0 32,952 0 14,487 1,041 bash
10 no-host configure.cpython 2,246,966 0 0 0 32,992 0 14,587 1,158 dash
18 no-host configure.cpython 6,205,510 1 0 0 27,512 0 13,247 1,230 osh-cpython
26 no-host configure.cpython 2,217,737 0 0 0 27,520 0 13,188 1,023 osh-native
34 no-host configure.cpython 2,205,790 0 0 0 27,520 0 13,217 1,040 osh-native-souffle
4 no-host configure.ocaml 410,633 0 0 0 5,120 0 1,948 147 bash
12 no-host configure.ocaml 391,722 0 0 0 5,112 0 1,887 152 dash
20 no-host configure.ocaml 646,449 0 0 0 5,112 0 1,862 163 osh-cpython
28 no-host configure.ocaml 412,499 0 0 0 5,120 0 1,936 167 osh-native
36 no-host configure.ocaml 412,311 0 0 0 5,120 0 1,929 166 osh-native-souffle
5 no-host configure.tcc 6,548 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,500 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,993 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,947 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,910 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,100,565 1 0 0 42,400 0 18,541 1,029 bash
11 no-host configure.util-linux 2,258,850 3 0 0 42,584 0 17,460 999 dash
19 no-host configure.util-linux 5,381,162 9 0 0 39,112 0 16,982 1,220 osh-cpython
27 no-host configure.util-linux 1,991,284 1 0 0 39,120 0 17,002 973 osh-native
35 no-host configure.util-linux 1,997,843 0 0 0 39,136 0 16,986 990 osh-native-souffle
6 no-host configure.yash 255,629 0 0 0 4,120 0 871 96 bash
14 no-host configure.yash 245,263 0 0 0 3,720 0 871 75 dash
22 no-host configure.yash 388,157 0 0 0 3,728 0 847 196 osh-cpython
30 no-host configure.yash 257,304 0 0 0 3,736 0 849 83 osh-native
38 no-host configure.yash 258,020 0 0 0 3,736 0 851 68 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,947 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 340 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 340 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1da749c9
dash dash-0ebcf347
osh-cpython osh-686054ad
osh-native osh-b0d98fd2
osh-native-souffle osh-387a5293
host label host id
no-host no-host-556df3ee