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 460 22 21 23.92 1.14
bin-true no-host 675 542 2,242 822 820 3.32 1.22
configure.cpython no-host 15,012 15,145 28,661 15,395 15,490 1.91 1.03
configure.ocaml no-host 3,795 3,733 4,689 3,837 3,831 1.24 1.01
configure.tcc no-host 56 42 199 49 48 3.57 0.88
configure.util-linux no-host 14,029 14,856 31,265 14,380 14,355 2.23 1.03
configure.yash no-host 1,825 1,768 2,492 1,837 1,836 1.37 1.01
hello-world no-host 2 1 48 3 3 29.91 1.80

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,529 1,091 23,133 3,195 3,095 9.15 1.26
bin-true no-host 105,354 65,430 760,909 125,054 127,128 7.22 1.19
configure.cpython no-host 2,221,205 2,245,967 6,197,338 2,237,883 2,227,992 2.79 1.01
configure.ocaml no-host 410,439 391,038 644,045 413,455 412,622 1.57 1.01
configure.tcc no-host 6,566 5,475 23,481 7,006 6,919 3.58 1.07
configure.util-linux no-host 2,108,167 2,257,587 5,328,517 1,995,745 1,987,222 2.53 0.95
configure.yash no-host 256,122 244,050 385,876 256,894 256,793 1.51 1.00
hello-world no-host 153 80 3,727 352 343 24.36 2.30

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.0 9.0 8.5 5.09 2.09
bin-true no-host 2.9 1.4 17.6 8.1 7.6 6.09 2.82
configure.cpython no-host 27.4 27.4 27.7 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.3 5.9 6.09 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,710 3,710 0 691 1,832 1,187 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.1 154,675 12,909 2,811 9,741 78,301 66,633 3,008 3 50,000 0
configure.cpython no-host 15,395 1 62 14.9 27.5 1,772,657 49,101 28,521 86,394 908,053 778,210 22,694 60 50,000 0
configure.util-linux no-host 14,380 3 60 21.3 30.0 2,703,393 42,738 65,825 109,656 1,320,551 1,273,186 27,391 41 131,650 1
configure.ocaml no-host 3,837 1 2 2.6 20.6 150,027 10,986 5,156 7,526 71,589 70,912 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,516 30,516 0 1,517 14,756 14,243 226 0 50,000 0
configure.yash no-host 1,837 1 2 2.6 24.4 139,684 7,954 6,613 6,333 70,261 63,090 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,259 64,464 42,674 4,568 54,501 57,190 270 3 85,348 1
hello-world no-host 3 0 0 0.2 5.9 3,709 3,709 0 692 1,832 1,185 2 0 50,000 0
bin-true no-host 820 1 2 2.6 7.6 154,674 12,774 2,749 9,742 78,301 66,631 3,008 3 50,000 0
configure.cpython no-host 15,490 1 62 15.0 27.4 1,772,656 44,553 28,459 86,395 908,053 778,208 22,694 60 50,000 0
configure.util-linux no-host 14,355 3 61 21.3 30.1 2,703,393 44,639 65,762 109,658 1,320,551 1,273,184 27,391 41 131,524 1
configure.ocaml no-host 3,831 1 2 2.6 20.6 150,027 10,923 5,093 7,528 71,589 70,910 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,516 30,516 0 1,519 14,756 14,241 226 0 50,000 0
configure.yash no-host 1,836 1 2 2.6 24.2 139,684 7,892 6,551 6,335 70,261 63,088 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,258 64,402 42,612 4,569 54,501 57,188 270 3 85,224 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 13 7 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 460 404 59 22.0 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 21 19 3 8.5 osh-native-souffle
1 no-host bin-true 675 502 203 2.9 bash
9 no-host bin-true 542 416 135 1.4 dash
17 no-host bin-true 2,242 1,468 1,030 17.6 osh-cpython
25 no-host bin-true 822 595 239 8.1 osh-native
33 no-host bin-true 820 591 245 7.6 osh-native-souffle
2 no-host configure.cpython 15,012 8,948 6,474 27.4 bash
10 no-host configure.cpython 15,145 9,133 6,440 27.4 dash
18 no-host configure.cpython 28,661 17,377 13,139 27.7 osh-cpython
26 no-host configure.cpython 15,395 9,037 6,633 27.5 osh-native
34 no-host configure.cpython 15,490 9,205 6,478 27.4 osh-native-souffle
4 no-host configure.ocaml 3,795 1,611 1,226 20.6 bash
12 no-host configure.ocaml 3,733 1,548 1,203 20.6 dash
20 no-host configure.ocaml 4,689 2,293 1,608 20.6 osh-cpython
28 no-host configure.ocaml 3,837 1,636 1,239 20.6 osh-native
36 no-host configure.ocaml 3,831 1,647 1,222 20.6 osh-native-souffle
5 no-host configure.tcc 56 32 23 19.4 bash
13 no-host configure.tcc 42 31 11 19.4 dash
21 no-host configure.tcc 199 136 66 19.3 osh-cpython
29 no-host configure.tcc 49 32 18 19.3 osh-native
37 no-host configure.tcc 48 23 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,029 8,686 5,817 30.1 bash
11 no-host configure.util-linux 14,856 9,236 6,118 30.0 dash
19 no-host configure.util-linux 31,265 21,087 11,254 30.3 osh-cpython
27 no-host configure.util-linux 14,380 8,784 5,786 30.0 osh-native
35 no-host configure.util-linux 14,355 8,595 5,958 30.1 osh-native-souffle
6 no-host configure.yash 1,825 1,122 711 24.4 bash
14 no-host configure.yash 1,768 967 804 24.4 dash
22 no-host configure.yash 2,492 1,590 946 24.4 osh-cpython
30 no-host configure.yash 1,837 1,061 779 24.4 osh-native
38 no-host configure.yash 1,836 1,084 756 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 48 32 16 17.6 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,529 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,133 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,095 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,354 0 0 0 8 0 1,992 89 bash
9 no-host bin-true 65,430 0 0 0 8 0 1,993 85 dash
17 no-host bin-true 760,909 0 0 0 8 0 1,993 118 osh-cpython
25 no-host bin-true 125,054 0 0 0 16 0 1,996 56 osh-native
33 no-host bin-true 127,128 0 0 0 16 0 1,990 172 osh-native-souffle
2 no-host configure.cpython 2,221,205 0 0 0 32,928 0 14,381 1,092 bash
10 no-host configure.cpython 2,245,967 0 0 0 32,992 0 14,659 1,179 dash
18 no-host configure.cpython 6,197,338 0 0 0 27,512 0 13,296 1,311 osh-cpython
26 no-host configure.cpython 2,237,883 0 0 0 27,520 0 13,204 1,051 osh-native
34 no-host configure.cpython 2,227,992 0 0 0 27,520 0 13,271 993 osh-native-souffle
4 no-host configure.ocaml 410,439 0 0 0 5,120 0 1,934 189 bash
12 no-host configure.ocaml 391,038 0 0 0 5,112 0 1,881 169 dash
20 no-host configure.ocaml 644,045 0 0 0 5,112 0 1,860 191 osh-cpython
28 no-host configure.ocaml 413,455 0 0 0 5,120 0 1,925 189 osh-native
36 no-host configure.ocaml 412,622 0 0 0 5,120 0 1,925 181 osh-native-souffle
5 no-host configure.tcc 6,566 0 0 0 104 0 51 5 bash
13 no-host configure.tcc 5,475 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,481 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 47 11 osh-native
37 no-host configure.tcc 6,919 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,108,167 0 0 0 42,400 0 18,557 1,009 bash
11 no-host configure.util-linux 2,257,587 0 0 0 42,584 0 17,445 1,087 dash
19 no-host configure.util-linux 5,328,517 13 0 0 39,112 0 16,973 1,252 osh-cpython
27 no-host configure.util-linux 1,995,745 0 0 0 39,120 0 16,982 1,148 osh-native
35 no-host configure.util-linux 1,987,222 1 0 0 39,128 0 16,994 1,076 osh-native-souffle
6 no-host configure.yash 256,122 0 0 0 4,120 0 870 66 bash
14 no-host configure.yash 244,050 0 0 0 3,720 0 868 93 dash
22 no-host configure.yash 385,876 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 256,894 0 0 0 3,736 0 849 109 osh-native
38 no-host configure.yash 256,793 0 0 0 3,736 0 852 82 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,727 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2f0038ff
dash dash-0ebcf347
osh-cpython osh-2d28795b
osh-native osh-0b9bb2a3
osh-native-souffle osh-f94c1ce4
host label host id
no-host no-host-556df3ee