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 466 22 21 24.75 1.15
bin-true no-host 674 543 2,283 803 805 3.39 1.19
configure.cpython no-host 15,062 15,109 28,835 15,304 15,377 1.91 1.02
configure.ocaml no-host 3,800 3,740 4,675 3,813 3,828 1.23 1.00
configure.tcc no-host 48 43 203 49 49 4.27 1.03
configure.util-linux no-host 14,040 14,866 31,297 14,484 14,378 2.23 1.03
configure.yash no-host 1,818 1,774 2,456 1,837 1,827 1.35 1.01
hello-world no-host 2 1 57 3 3 37.91 1.88

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,548 1,101 23,701 3,160 3,071 9.30 1.24
bin-true no-host 107,368 66,455 770,350 124,206 125,185 7.17 1.16
configure.cpython no-host 2,225,014 2,242,787 6,217,202 2,212,699 2,198,020 2.79 0.99
configure.ocaml no-host 410,394 391,432 645,738 412,630 412,597 1.57 1.01
configure.tcc no-host 6,552 5,471 24,060 6,959 6,901 3.67 1.06
configure.util-linux no-host 2,103,047 2,258,210 5,372,957 1,998,780 1,989,040 2.55 0.95
configure.yash no-host 255,675 244,506 387,209 258,116 257,102 1.51 1.01
hello-world no-host 151 82 3,946 341 338 26.13 2.26

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.5 22.7 8.9 8.7 5.25 2.06
bin-true no-host 3.0 1.6 18.4 8.0 7.6 6.09 2.65
configure.cpython no-host 27.4 27.4 27.5 27.3 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.3 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.2 1.01 1.01
hello-world no-host 2.8 1.4 18.2 6.4 6.0 6.62 2.33

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 803 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,304 1 62 14.9 27.3 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,484 3 62 21.2 30.1 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,813 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.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,837 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 8.9 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 805 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,377 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,378 3 61 21.2 30.3 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,828 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,827 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 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 6 13 4.3 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 466 417 52 22.7 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 674 501 206 3.0 bash
9 no-host bin-true 543 416 135 1.6 dash
17 no-host bin-true 2,283 1,443 1,098 18.4 osh-cpython
25 no-host bin-true 803 580 238 8.0 osh-native
33 no-host bin-true 805 595 226 7.6 osh-native-souffle
2 no-host configure.cpython 15,062 9,242 6,217 27.4 bash
10 no-host configure.cpython 15,109 9,114 6,420 27.4 dash
18 no-host configure.cpython 28,835 17,517 13,175 27.5 osh-cpython
26 no-host configure.cpython 15,304 9,055 6,508 27.3 osh-native
34 no-host configure.cpython 15,377 9,089 6,417 27.4 osh-native-souffle
4 no-host configure.ocaml 3,800 1,645 1,192 20.6 bash
12 no-host configure.ocaml 3,740 1,616 1,143 20.6 dash
20 no-host configure.ocaml 4,675 2,267 1,618 20.3 osh-cpython
28 no-host configure.ocaml 3,813 1,636 1,216 20.6 osh-native
36 no-host configure.ocaml 3,828 1,721 1,143 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.3 bash
13 no-host configure.tcc 43 18 25 19.3 dash
21 no-host configure.tcc 203 153 54 19.3 osh-cpython
29 no-host configure.tcc 49 38 12 19.4 osh-native
37 no-host configure.tcc 49 27 22 19.3 osh-native-souffle
3 no-host configure.util-linux 14,040 8,859 5,655 30.1 bash
11 no-host configure.util-linux 14,866 9,148 6,207 30.3 dash
19 no-host configure.util-linux 31,297 21,001 11,328 30.3 osh-cpython
27 no-host configure.util-linux 14,484 8,669 6,011 30.1 osh-native
35 no-host configure.util-linux 14,378 8,495 6,071 30.3 osh-native-souffle
6 no-host configure.yash 1,818 1,033 792 24.2 bash
14 no-host configure.yash 1,774 1,037 740 24.4 dash
22 no-host configure.yash 2,456 1,525 972 24.4 osh-cpython
30 no-host configure.yash 1,837 1,071 769 24.4 osh-native
38 no-host configure.yash 1,827 1,083 748 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 37 20 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,548 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,101 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,701 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,071 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,368 0 0 0 8 0 1,990 44 bash
9 no-host bin-true 66,455 0 0 0 8 0 1,990 117 dash
17 no-host bin-true 770,350 0 0 0 8 0 1,994 154 osh-cpython
25 no-host bin-true 124,206 0 0 0 16 0 1,996 53 osh-native
33 no-host bin-true 125,185 0 0 0 16 0 1,992 43 osh-native-souffle
2 no-host configure.cpython 2,225,014 0 0 0 32,928 0 14,524 1,052 bash
10 no-host configure.cpython 2,242,787 0 0 0 32,992 0 14,603 1,024 dash
18 no-host configure.cpython 6,217,202 0 0 0 27,512 0 13,239 1,135 osh-cpython
26 no-host configure.cpython 2,212,699 0 0 0 27,520 0 13,218 919 osh-native
34 no-host configure.cpython 2,198,020 0 0 0 27,520 0 13,250 1,086 osh-native-souffle
4 no-host configure.ocaml 410,394 0 0 0 5,120 0 1,947 177 bash
12 no-host configure.ocaml 391,432 0 0 0 5,112 0 1,937 133 dash
20 no-host configure.ocaml 645,738 0 0 0 5,112 0 1,860 173 osh-cpython
28 no-host configure.ocaml 412,630 0 0 0 5,120 0 1,920 174 osh-native
36 no-host configure.ocaml 412,597 0 0 0 5,120 0 1,927 172 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 45 5 dash
21 no-host configure.tcc 24,060 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,959 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,103,047 1 0 0 42,400 0 18,618 943 bash
11 no-host configure.util-linux 2,258,210 0 0 0 42,584 0 17,445 1,257 dash
19 no-host configure.util-linux 5,372,957 12 0 0 39,128 0 16,990 1,173 osh-cpython
27 no-host configure.util-linux 1,998,780 0 0 0 39,120 0 17,010 937 osh-native
35 no-host configure.util-linux 1,989,040 1 0 0 39,128 0 16,991 910 osh-native-souffle
6 no-host configure.yash 255,675 0 0 0 4,120 0 870 84 bash
14 no-host configure.yash 244,506 0 0 0 3,720 0 868 77 dash
22 no-host configure.yash 387,209 0 0 0 3,728 0 851 107 osh-cpython
30 no-host configure.yash 258,116 0 0 0 3,736 0 849 194 osh-native
38 no-host configure.yash 257,102 0 0 0 3,736 0 848 82 osh-native-souffle
0 no-host hello-world 151 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,946 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 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-4e092cbf
dash dash-0ebcf347
osh-cpython osh-636b11c2
osh-native osh-7d217566
osh-native-souffle osh-65b5cd48
host label host id
no-host no-host-556df3ee