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 461 22 21 24.04 1.15
bin-true no-host 674 538 2,295 814 801 3.41 1.21
configure.cpython no-host 14,990 15,051 28,761 15,192 15,287 1.92 1.01
configure.ocaml no-host 3,818 3,728 4,647 3,852 3,805 1.22 1.01
configure.tcc no-host 47 41 210 49 49 4.47 1.04
configure.util-linux no-host 13,978 14,898 31,242 14,291 14,331 2.24 1.02
configure.yash no-host 1,825 1,766 2,458 1,810 1,819 1.35 0.99
hello-world no-host 2 1 56 3 3 36.56 1.82

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,541 1,127 23,770 3,205 3,111 9.35 1.26
bin-true no-host 106,287 66,489 769,387 127,304 124,247 7.24 1.20
configure.cpython no-host 2,216,705 2,242,175 6,198,759 2,222,972 2,202,803 2.80 1.00
configure.ocaml no-host 410,901 390,240 645,933 413,531 412,726 1.57 1.01
configure.tcc no-host 6,532 5,480 24,059 6,970 6,917 3.68 1.07
configure.util-linux no-host 2,099,083 2,264,687 5,394,410 2,002,226 1,995,220 2.57 0.95
configure.yash no-host 256,422 244,143 388,550 257,254 257,853 1.52 1.00
hello-world no-host 151 84 3,940 344 338 26.09 2.28

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.2 8.7 5.06 2.06
bin-true no-host 3.0 1.6 18.4 7.9 7.5 6.09 2.61
configure.cpython no-host 27.3 27.1 27.4 27.5 27.5 1.00 1.01
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.1 19.3 19.4 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.0 30.3 30.1 30.4 30.0 1.00 1.01
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.6 18.1 6.3 6.0 6.28 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 814 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,192 1 62 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,291 2 59 21.2 30.4 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,852 0 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,810 1 2 2.5 24.4 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 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 801 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,287 1 61 14.9 27.5 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,331 3 59 21.2 30.0 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,805 1 2 2.6 20.4 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.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,819 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.7 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 18 2 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 461 409 56 22.6 osh-cpython
31 no-host abuild-print-help 22 13 10 9.2 osh-native
39 no-host abuild-print-help 21 18 3 8.7 osh-native-souffle
1 no-host bin-true 674 491 211 3.0 bash
9 no-host bin-true 538 407 140 1.6 dash
17 no-host bin-true 2,295 1,551 998 18.4 osh-cpython
25 no-host bin-true 814 576 254 7.9 osh-native
33 no-host bin-true 801 574 243 7.5 osh-native-souffle
2 no-host configure.cpython 14,990 9,031 6,367 27.3 bash
10 no-host configure.cpython 15,051 9,160 6,321 27.1 dash
18 no-host configure.cpython 28,761 17,467 13,134 27.4 osh-cpython
26 no-host configure.cpython 15,192 9,052 6,412 27.5 osh-native
34 no-host configure.cpython 15,287 8,929 6,480 27.5 osh-native-souffle
4 no-host configure.ocaml 3,818 1,661 1,188 20.6 bash
12 no-host configure.ocaml 3,728 1,606 1,142 20.6 dash
20 no-host configure.ocaml 4,647 2,193 1,662 20.4 osh-cpython
28 no-host configure.ocaml 3,852 1,630 1,262 20.6 osh-native
36 no-host configure.ocaml 3,805 1,647 1,195 20.4 osh-native-souffle
5 no-host configure.tcc 47 31 16 19.1 bash
13 no-host configure.tcc 41 20 22 19.3 dash
21 no-host configure.tcc 210 148 66 19.4 osh-cpython
29 no-host configure.tcc 49 37 12 19.3 osh-native
37 no-host configure.tcc 49 29 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,978 8,864 5,586 30.0 bash
11 no-host configure.util-linux 14,898 9,138 6,264 30.3 dash
19 no-host configure.util-linux 31,242 20,660 11,649 30.1 osh-cpython
27 no-host configure.util-linux 14,291 8,590 5,895 30.4 osh-native
35 no-host configure.util-linux 14,331 8,485 6,040 30.0 osh-native-souffle
6 no-host configure.yash 1,825 1,047 785 24.4 bash
14 no-host configure.yash 1,766 980 790 24.2 dash
22 no-host configure.yash 2,458 1,461 1,038 24.4 osh-cpython
30 no-host configure.yash 1,810 1,029 785 24.4 osh-native
38 no-host configure.yash 1,819 1,032 789 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 32 24 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,541 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,770 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,205 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,111 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,287 0 0 0 8 0 1,991 54 bash
9 no-host bin-true 66,489 0 0 0 8 0 1,988 39 dash
17 no-host bin-true 769,387 0 0 0 8 0 2,001 194 osh-cpython
25 no-host bin-true 127,304 0 0 0 16 0 1,994 57 osh-native
33 no-host bin-true 124,247 0 0 0 16 0 1,985 81 osh-native-souffle
2 no-host configure.cpython 2,216,705 0 0 0 32,928 0 14,533 977 bash
10 no-host configure.cpython 2,242,175 0 0 0 32,992 0 14,662 921 dash
18 no-host configure.cpython 6,198,759 0 0 0 27,512 0 13,245 1,239 osh-cpython
26 no-host configure.cpython 2,222,972 0 0 0 27,520 0 13,274 962 osh-native
34 no-host configure.cpython 2,202,803 0 0 0 27,520 0 13,267 911 osh-native-souffle
4 no-host configure.ocaml 410,901 0 0 0 5,120 0 1,949 162 bash
12 no-host configure.ocaml 390,240 0 0 0 5,112 0 1,878 149 dash
20 no-host configure.ocaml 645,933 0 0 0 5,112 0 1,851 341 osh-cpython
28 no-host configure.ocaml 413,531 0 0 0 5,120 0 1,931 176 osh-native
36 no-host configure.ocaml 412,726 0 0 0 5,120 0 1,920 155 osh-native-souffle
5 no-host configure.tcc 6,532 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,059 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,917 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,099,083 1 0 0 42,400 0 18,558 997 bash
11 no-host configure.util-linux 2,264,687 1 0 0 42,584 0 17,441 1,067 dash
19 no-host configure.util-linux 5,394,410 11 0 0 39,128 0 16,973 1,198 osh-cpython
27 no-host configure.util-linux 2,002,226 2 0 0 39,128 0 16,954 956 osh-native
35 no-host configure.util-linux 1,995,220 2 0 0 39,136 0 16,966 1,154 osh-native-souffle
6 no-host configure.yash 256,422 0 0 0 4,120 0 870 97 bash
14 no-host configure.yash 244,143 0 0 0 3,720 0 871 72 dash
22 no-host configure.yash 388,550 0 0 0 3,728 0 852 82 osh-cpython
30 no-host configure.yash 257,254 0 0 0 3,736 0 848 78 osh-native
38 no-host configure.yash 257,853 0 0 0 3,736 0 851 77 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 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 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b77540f3
dash dash-0ebcf347
osh-cpython osh-63b366ca
osh-native osh-3f138dd1
osh-native-souffle osh-dd9ccc97
host label host id
no-host no-host-556df3ee