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 21 10 472 23 22 23.02 1.12
bin-true no-host 698 564 2,417 855 837 3.46 1.22
configure.cpython no-host 15,892 16,198 31,103 16,308 16,416 1.96 1.03
configure.ocaml no-host 4,016 3,966 4,969 4,004 3,983 1.24 1.00
configure.tcc no-host 50 45 214 51 52 4.28 1.01
configure.util-linux no-host 14,807 16,007 33,572 15,398 15,221 2.27 1.04
configure.yash no-host 1,932 1,922 2,638 1,916 1,925 1.37 0.99
hello-world no-host 2 1 58 3 3 37.02 1.92

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,539 1,102 23,809 3,131 3,089 9.38 1.23
bin-true no-host 103,340 66,468 768,522 126,283 125,267 7.44 1.22
configure.cpython no-host 2,225,296 2,238,043 6,237,959 2,222,208 2,209,319 2.80 1.00
configure.ocaml no-host 411,360 391,334 647,611 412,793 412,698 1.57 1.00
configure.tcc no-host 6,559 5,490 24,115 6,955 6,906 3.68 1.06
configure.util-linux no-host 2,097,823 2,263,947 5,391,911 1,992,805 1,993,613 2.57 0.95
configure.yash no-host 256,700 245,083 389,144 257,317 257,824 1.52 1.00
hello-world no-host 153 79 3,938 341 334 25.74 2.23

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.6 9.0 8.8 5.21 2.09
bin-true no-host 3.0 1.4 18.2 8.0 7.6 6.05 2.65
configure.cpython no-host 27.5 27.3 27.3 27.4 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.4 30.1 30.3 30.1 30.2 1.00 0.99
configure.yash no-host 24.2 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.4 18.0 6.3 5.8 6.54 2.29

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 855 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 16,308 2 76 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 15,398 3 75 21.2 30.1 2,702,622 53,766 65,691 108,721 1,290,676 1,303,225 32,242 41 131,382 1
configure.ocaml no-host 4,004 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 51 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,916 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 23 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 837 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 16,416 2 75 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 15,221 3 72 21.2 30.2 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,983 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 52 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,925 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 22 1 2 2.8 8.8 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 21 19 2 4.3 bash
15 no-host abuild-print-help 10 4 6 3.4 dash
23 no-host abuild-print-help 472 433 43 22.6 osh-cpython
31 no-host abuild-print-help 23 17 7 9.0 osh-native
39 no-host abuild-print-help 22 14 8 8.8 osh-native-souffle
1 no-host bin-true 698 499 232 3.0 bash
9 no-host bin-true 564 447 126 1.4 dash
17 no-host bin-true 2,417 1,539 1,153 18.2 osh-cpython
25 no-host bin-true 855 593 275 8.0 osh-native
33 no-host bin-true 837 567 285 7.6 osh-native-souffle
2 no-host configure.cpython 15,892 9,382 6,923 27.5 bash
10 no-host configure.cpython 16,198 9,719 6,924 27.3 dash
18 no-host configure.cpython 31,103 18,513 14,618 27.3 osh-cpython
26 no-host configure.cpython 16,308 9,708 6,895 27.4 osh-native
34 no-host configure.cpython 16,416 9,618 6,955 27.4 osh-native-souffle
4 no-host configure.ocaml 4,016 1,743 1,310 20.6 bash
12 no-host configure.ocaml 3,966 1,711 1,276 20.6 dash
20 no-host configure.ocaml 4,969 2,411 1,785 20.6 osh-cpython
28 no-host configure.ocaml 4,004 1,720 1,328 20.6 osh-native
36 no-host configure.ocaml 3,983 1,679 1,345 20.4 osh-native-souffle
5 no-host configure.tcc 50 19 32 19.4 bash
13 no-host configure.tcc 45 28 17 19.3 dash
21 no-host configure.tcc 214 151 67 19.4 osh-cpython
29 no-host configure.tcc 51 31 21 19.3 osh-native
37 no-host configure.tcc 52 28 25 19.4 osh-native-souffle
3 no-host configure.util-linux 14,807 9,398 5,909 30.4 bash
11 no-host configure.util-linux 16,007 9,687 6,844 30.1 dash
19 no-host configure.util-linux 33,572 22,243 12,514 30.3 osh-cpython
27 no-host configure.util-linux 15,398 9,375 6,233 30.1 osh-native
35 no-host configure.util-linux 15,221 9,085 6,338 30.2 osh-native-souffle
6 no-host configure.yash 1,932 1,115 825 24.2 bash
14 no-host configure.yash 1,922 1,078 847 24.2 dash
22 no-host configure.yash 2,638 1,585 1,098 24.4 osh-cpython
30 no-host configure.yash 1,916 1,074 846 24.4 osh-native
38 no-host configure.yash 1,925 1,090 839 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 46 12 18.0 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.8 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,539 0 0 0 16 0 40 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,809 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,131 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,089 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 103,340 0 0 0 8 0 1,994 117 bash
9 no-host bin-true 66,468 0 0 0 8 0 1,991 85 dash
17 no-host bin-true 768,522 0 0 0 8 0 1,995 251 osh-cpython
25 no-host bin-true 126,283 0 0 0 16 0 1,987 62 osh-native
33 no-host bin-true 125,267 0 0 0 16 0 1,992 83 osh-native-souffle
2 no-host configure.cpython 2,225,296 0 0 0 32,928 0 14,529 1,014 bash
10 no-host configure.cpython 2,238,043 0 0 0 32,992 0 14,663 1,077 dash
18 no-host configure.cpython 6,237,959 0 0 0 27,512 0 13,235 1,160 osh-cpython
26 no-host configure.cpython 2,222,208 0 0 0 27,520 0 13,405 939 osh-native
34 no-host configure.cpython 2,209,319 0 0 0 27,520 0 13,390 909 osh-native-souffle
4 no-host configure.ocaml 411,360 0 0 0 5,120 0 1,959 158 bash
12 no-host configure.ocaml 391,334 0 0 0 5,112 0 1,940 131 dash
20 no-host configure.ocaml 647,611 1 0 0 5,112 0 1,871 172 osh-cpython
28 no-host configure.ocaml 412,793 0 0 0 5,120 0 1,932 269 osh-native
36 no-host configure.ocaml 412,698 0 0 0 5,120 0 1,929 171 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,115 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 46 4 osh-native
37 no-host configure.tcc 6,906 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,097,823 0 0 0 42,400 0 18,650 1,045 bash
11 no-host configure.util-linux 2,263,947 0 0 0 42,584 0 17,464 1,247 dash
19 no-host configure.util-linux 5,391,911 12 0 0 39,136 0 17,019 1,337 osh-cpython
27 no-host configure.util-linux 1,992,805 1 0 0 39,144 0 17,009 960 osh-native
35 no-host configure.util-linux 1,993,613 1 0 0 39,136 0 16,972 945 osh-native-souffle
6 no-host configure.yash 256,700 0 0 0 4,120 0 870 91 bash
14 no-host configure.yash 245,083 0 0 0 3,720 0 871 74 dash
22 no-host configure.yash 389,144 0 0 0 3,728 0 854 108 osh-cpython
30 no-host configure.yash 257,317 0 0 0 3,736 0 848 73 osh-native
38 no-host configure.yash 257,824 0 0 0 3,736 0 847 81 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 334 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c11427cb
dash dash-0ebcf347
osh-cpython osh-4891a0d4
osh-native osh-46200c38
osh-native-souffle osh-fea89492
host label host id
no-host no-host-556df3ee