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 20 10 480 23 21 24.46 1.18
bin-true no-host 692 561 2,385 830 830 3.45 1.20
configure.cpython no-host 16,126 16,150 31,649 16,330 16,278 1.96 1.01
configure.ocaml no-host 4,012 3,928 4,923 4,027 4,033 1.23 1.00
configure.tcc no-host 49 44 214 52 52 4.34 1.05
configure.util-linux no-host 14,963 15,911 34,405 15,324 15,265 2.30 1.02
configure.yash no-host 1,944 1,879 2,652 1,939 1,949 1.36 1.00
hello-world no-host 2 1 68 3 3 39.05 1.69

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,502 1,117 23,691 3,189 3,072 9.47 1.27
bin-true no-host 107,309 65,431 771,367 127,226 125,305 7.19 1.19
configure.cpython no-host 2,222,244 2,240,656 6,212,563 2,221,114 2,206,028 2.80 1.00
configure.ocaml no-host 410,720 390,990 646,410 412,551 412,292 1.57 1.00
configure.tcc no-host 6,551 5,469 24,075 6,970 6,910 3.68 1.06
configure.util-linux no-host 2,105,224 2,262,797 5,369,216 1,990,704 1,988,311 2.55 0.95
configure.yash no-host 256,572 244,997 387,940 257,453 257,962 1.51 1.00
hello-world no-host 152 80 3,942 343 333 25.93 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.3 8.9 8.7 5.15 2.06
bin-true no-host 2.9 1.6 18.2 8.3 7.5 6.32 2.86
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.6 18.4 6.2 5.9 6.67 2.24

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 830 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 16,330 2 70 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,324 3 68 21.2 30.3 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,027 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 52 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,939 1 2 2.5 24.2 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 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 830 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 16,278 1 67 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 15,265 3 67 21.2 30.0 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 4,033 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 52 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,949 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 20 19 1 4.3 bash
15 no-host abuild-print-help 10 5 6 3.5 dash
23 no-host abuild-print-help 480 432 52 22.3 osh-cpython
31 no-host abuild-print-help 23 11 13 8.9 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 692 510 213 2.9 bash
9 no-host bin-true 561 428 143 1.6 dash
17 no-host bin-true 2,385 1,526 1,128 18.2 osh-cpython
25 no-host bin-true 830 592 251 8.3 osh-native
33 no-host bin-true 830 578 267 7.5 osh-native-souffle
2 no-host configure.cpython 16,126 9,544 6,989 27.5 bash
10 no-host configure.cpython 16,150 9,632 6,951 27.4 dash
18 no-host configure.cpython 31,649 19,310 14,404 27.4 osh-cpython
26 no-host configure.cpython 16,330 9,658 6,944 27.4 osh-native
34 no-host configure.cpython 16,278 9,345 7,069 27.5 osh-native-souffle
4 no-host configure.ocaml 4,012 1,725 1,329 20.6 bash
12 no-host configure.ocaml 3,928 1,610 1,339 20.4 dash
20 no-host configure.ocaml 4,923 2,335 1,815 20.4 osh-cpython
28 no-host configure.ocaml 4,027 1,677 1,389 20.6 osh-native
36 no-host configure.ocaml 4,033 1,701 1,369 20.6 osh-native-souffle
5 no-host configure.tcc 49 31 19 19.3 bash
13 no-host configure.tcc 44 33 11 19.3 dash
21 no-host configure.tcc 214 160 58 19.3 osh-cpython
29 no-host configure.tcc 52 30 22 19.3 osh-native
37 no-host configure.tcc 52 27 26 19.3 osh-native-souffle
3 no-host configure.util-linux 14,963 9,214 6,238 30.3 bash
11 no-host configure.util-linux 15,911 9,494 6,915 30.1 dash
19 no-host configure.util-linux 34,405 22,823 12,756 30.3 osh-cpython
27 no-host configure.util-linux 15,324 9,157 6,362 30.3 osh-native
35 no-host configure.util-linux 15,265 9,022 6,428 30.0 osh-native-souffle
6 no-host configure.yash 1,944 1,135 816 24.4 bash
14 no-host configure.yash 1,879 1,105 778 24.2 dash
22 no-host configure.yash 2,652 1,613 1,083 24.4 osh-cpython
30 no-host configure.yash 1,939 1,133 811 24.2 osh-native
38 no-host configure.yash 1,949 1,082 870 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 68 48 20 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,502 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,117 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,691 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,072 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,309 0 0 0 8 0 1,988 39 bash
9 no-host bin-true 65,431 0 0 0 8 0 1,983 42 dash
17 no-host bin-true 771,367 0 0 0 8 0 1,996 132 osh-cpython
25 no-host bin-true 127,226 0 0 0 16 0 1,990 49 osh-native
33 no-host bin-true 125,305 0 0 0 16 0 1,991 133 osh-native-souffle
2 no-host configure.cpython 2,222,244 0 0 0 32,928 0 14,540 1,125 bash
10 no-host configure.cpython 2,240,656 1 0 0 32,992 0 14,582 993 dash
18 no-host configure.cpython 6,212,563 0 0 0 27,512 0 13,239 1,125 osh-cpython
26 no-host configure.cpython 2,221,114 0 0 0 27,520 0 13,282 941 osh-native
34 no-host configure.cpython 2,206,028 1 0 0 27,520 0 13,226 908 osh-native-souffle
4 no-host configure.ocaml 410,720 0 0 0 5,120 0 1,943 140 bash
12 no-host configure.ocaml 390,990 0 0 0 5,112 0 1,874 148 dash
20 no-host configure.ocaml 646,410 1 0 0 5,112 0 1,856 191 osh-cpython
28 no-host configure.ocaml 412,551 0 0 0 5,120 0 1,927 150 osh-native
36 no-host configure.ocaml 412,292 0 0 0 5,120 0 1,930 150 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,075 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,910 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,105,224 0 0 0 42,408 0 18,574 1,010 bash
11 no-host configure.util-linux 2,262,797 0 0 0 42,592 0 17,472 1,182 dash
19 no-host configure.util-linux 5,369,216 5 0 0 39,120 0 16,953 1,193 osh-cpython
27 no-host configure.util-linux 1,990,704 4 0 0 39,144 0 16,996 1,003 osh-native
35 no-host configure.util-linux 1,988,311 1 0 0 39,136 0 16,949 942 osh-native-souffle
6 no-host configure.yash 256,572 0 0 0 4,120 0 871 82 bash
14 no-host configure.yash 244,997 0 0 0 3,720 0 868 72 dash
22 no-host configure.yash 387,940 1 0 0 3,728 0 855 94 osh-cpython
30 no-host configure.yash 257,453 0 0 0 3,736 0 847 62 osh-native
38 no-host configure.yash 257,962 0 0 0 3,736 0 844 89 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 0 1 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,942 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 333 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-51a97602
dash dash-0ebcf347
osh-cpython osh-8ead736c
osh-native osh-d02d949d
osh-native-souffle osh-5c6429cf
host label host id
no-host no-host-556df3ee