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 488 25 22 24.87 1.28
bin-true no-host 711 570 2,468 869 852 3.47 1.22
configure.cpython no-host 16,192 16,265 31,840 16,387 16,487 1.97 1.01
configure.ocaml no-host 4,010 3,949 4,950 4,026 4,017 1.23 1.00
configure.tcc no-host 50 44 221 52 50 4.40 1.03
configure.util-linux no-host 15,191 16,068 34,876 15,475 15,435 2.30 1.02
configure.yash no-host 1,934 1,892 2,653 1,953 1,969 1.37 1.01
hello-world no-host 2 1 63 3 3 38.60 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,552 1,108 23,709 3,221 3,099 9.29 1.26
bin-true no-host 103,304 66,477 770,616 128,276 125,274 7.46 1.24
configure.cpython no-host 2,218,510 2,233,627 6,218,822 2,216,490 2,202,122 2.80 1.00
configure.ocaml no-host 410,661 391,513 646,082 412,063 412,198 1.57 1.00
configure.tcc no-host 6,568 5,474 24,069 6,969 6,909 3.66 1.06
configure.util-linux no-host 2,104,607 2,261,198 5,371,959 1,994,369 1,994,809 2.55 0.95
configure.yash no-host 256,261 244,967 388,018 257,937 256,419 1.51 1.01
hello-world no-host 150 84 3,944 343 338 26.29 2.29

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 3.0 1.4 18.2 8.0 7.6 6.05 2.65
configure.cpython no-host 27.3 27.4 27.5 27.5 27.5 1.01 1.01
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.4 30.1 30.1 30.1 30.4 0.99 0.99
configure.yash no-host 24.4 24.4 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.6 1.6 18.4 6.3 5.9 7.00 2.40

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 869 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,387 2 69 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 15,475 4 68 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,026 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,953 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 25 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 852 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,487 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,435 3 66 21.2 30.4 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,017 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 50 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,969 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 22 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 16 5 4.3 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 488 433 57 22.3 osh-cpython
31 no-host abuild-print-help 25 17 9 8.9 osh-native
39 no-host abuild-print-help 22 16 7 8.7 osh-native-souffle
1 no-host bin-true 711 499 231 3.0 bash
9 no-host bin-true 570 419 153 1.4 dash
17 no-host bin-true 2,468 1,596 1,141 18.2 osh-cpython
25 no-host bin-true 869 596 273 8.0 osh-native
33 no-host bin-true 852 567 287 7.6 osh-native-souffle
2 no-host configure.cpython 16,192 9,701 6,873 27.3 bash
10 no-host configure.cpython 16,265 9,717 6,953 27.4 dash
18 no-host configure.cpython 31,840 19,065 14,788 27.5 osh-cpython
26 no-host configure.cpython 16,387 9,463 7,140 27.5 osh-native
34 no-host configure.cpython 16,487 9,559 7,029 27.5 osh-native-souffle
4 no-host configure.ocaml 4,010 1,767 1,276 20.6 bash
12 no-host configure.ocaml 3,949 1,770 1,198 20.6 dash
20 no-host configure.ocaml 4,950 2,397 1,771 20.6 osh-cpython
28 no-host configure.ocaml 4,026 1,693 1,367 20.6 osh-native
36 no-host configure.ocaml 4,017 1,636 1,416 20.6 osh-native-souffle
5 no-host configure.tcc 50 32 19 19.4 bash
13 no-host configure.tcc 44 20 24 19.4 dash
21 no-host configure.tcc 221 164 58 19.3 osh-cpython
29 no-host configure.tcc 52 37 15 19.3 osh-native
37 no-host configure.tcc 50 33 18 19.3 osh-native-souffle
3 no-host configure.util-linux 15,191 9,353 6,260 30.4 bash
11 no-host configure.util-linux 16,068 9,527 6,991 30.1 dash
19 no-host configure.util-linux 34,876 23,098 12,871 30.1 osh-cpython
27 no-host configure.util-linux 15,475 9,257 6,362 30.1 osh-native
35 no-host configure.util-linux 15,435 9,002 6,579 30.4 osh-native-souffle
6 no-host configure.yash 1,934 1,149 792 24.4 bash
14 no-host configure.yash 1,892 1,081 814 24.4 dash
22 no-host configure.yash 2,653 1,611 1,083 24.4 osh-cpython
30 no-host configure.yash 1,953 1,095 856 24.4 osh-native
38 no-host configure.yash 1,969 1,136 830 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.6 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 63 35 27 18.4 osh-cpython
24 no-host hello-world 3 3 0 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,552 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,709 0 0 0 8 0 44 9 osh-cpython
31 no-host abuild-print-help 3,221 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 103,304 0 0 0 8 0 1,987 98 bash
9 no-host bin-true 66,477 0 0 0 8 0 1,989 39 dash
17 no-host bin-true 770,616 0 0 0 8 0 1,996 214 osh-cpython
25 no-host bin-true 128,276 0 0 0 16 0 1,989 55 osh-native
33 no-host bin-true 125,274 0 0 0 16 0 1,987 43 osh-native-souffle
2 no-host configure.cpython 2,218,510 0 0 0 32,928 0 14,534 983 bash
10 no-host configure.cpython 2,233,627 0 0 0 32,992 0 14,654 1,059 dash
18 no-host configure.cpython 6,218,822 1 0 0 27,512 0 13,273 1,107 osh-cpython
26 no-host configure.cpython 2,216,490 0 0 0 27,520 0 13,261 929 osh-native
34 no-host configure.cpython 2,202,122 1 0 0 27,520 0 13,260 864 osh-native-souffle
4 no-host configure.ocaml 410,661 0 0 0 5,120 0 1,950 136 bash
12 no-host configure.ocaml 391,513 0 0 0 5,112 0 1,941 137 dash
20 no-host configure.ocaml 646,082 0 0 0 5,112 0 1,858 182 osh-cpython
28 no-host configure.ocaml 412,063 0 0 0 5,120 0 1,930 146 osh-native
36 no-host configure.ocaml 412,198 0 0 0 5,120 0 1,931 132 osh-native-souffle
5 no-host configure.tcc 6,568 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,069 0 0 0 96 0 52 9 osh-cpython
29 no-host configure.tcc 6,969 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,909 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,104,607 1 0 0 42,400 0 18,600 1,050 bash
11 no-host configure.util-linux 2,261,198 0 0 0 42,592 0 17,512 979 dash
19 no-host configure.util-linux 5,371,959 8 0 0 39,128 0 16,965 1,289 osh-cpython
27 no-host configure.util-linux 1,994,369 0 0 0 39,144 0 16,779 982 osh-native
35 no-host configure.util-linux 1,994,809 1 0 0 39,136 0 16,993 963 osh-native-souffle
6 no-host configure.yash 256,261 0 0 0 4,120 0 871 80 bash
14 no-host configure.yash 244,967 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 388,018 0 0 0 3,728 0 854 90 osh-cpython
30 no-host configure.yash 257,937 0 0 0 3,736 0 851 62 osh-native
38 no-host configure.yash 256,419 0 0 0 3,736 0 850 77 osh-native-souffle
0 no-host hello-world 150 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,944 0 0 0 8 0 6 4 osh-cpython
24 no-host hello-world 343 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-bf1174ac
dash dash-0ebcf347
osh-cpython osh-af6501ae
osh-native osh-05f31433
osh-native-souffle osh-6b06d1e5
host label host id
no-host no-host-556df3ee