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 9 475 22 21 25.24 1.16
bin-true no-host 659 532 2,326 804 793 3.53 1.22
configure.cpython no-host 14,852 14,903 28,983 15,112 15,076 1.95 1.02
configure.ocaml no-host 3,807 3,753 4,716 3,819 3,809 1.24 1.00
configure.tcc no-host 47 42 210 48 47 4.48 1.03
configure.util-linux no-host 13,776 14,642 31,701 14,197 14,119 2.30 1.03
configure.yash no-host 1,821 1,778 2,508 1,821 1,826 1.38 1.00
hello-world no-host 1 1 59 3 3 42.91 2.04

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,563 1,105 24,002 3,191 3,108 9.36 1.25
bin-true no-host 107,284 67,487 779,726 128,162 127,255 7.27 1.19
configure.cpython no-host 1,994,860 2,019,977 6,050,501 1,990,398 1,992,190 3.03 1.00
configure.ocaml no-host 373,780 353,506 611,801 375,617 375,000 1.64 1.00
configure.tcc no-host 6,061 5,046 23,773 6,474 6,415 3.92 1.07
configure.util-linux no-host 1,904,840 2,067,099 5,237,876 1,809,792 1,797,791 2.75 0.95
configure.yash no-host 233,309 221,817 366,930 235,129 235,084 1.57 1.01
hello-world no-host 146 77 4,008 343 335 27.45 2.35

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.5 3.5 22.7 9.0 8.7 5.10 2.03
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.38 2.82
configure.cpython no-host 29.1 28.9 28.9 29.3 29.2 1.00 1.01
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.5 1.00 1.00
configure.tcc no-host 19.5 19.5 19.6 19.5 19.7 1.00 1.00
configure.util-linux no-host 30.3 30.5 30.3 30.1 30.3 1.00 0.99
configure.yash no-host 26.3 26.4 26.3 26.3 26.4 1.00 1.00
hello-world no-host 2.9 1.6 18.3 6.3 5.9 6.34 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 804 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 15,112 1 66 14.9 29.3 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 14,197 3 64 21.2 30.1 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,819 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,821 1 2 2.5 26.3 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 793 1 2 2.6 7.6 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 15,076 2 68 14.9 29.2 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 14,119 3 65 21.2 30.3 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,809 1 2 2.6 22.5 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,826 1 2 2.5 26.4 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 9 10 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 475 422 56 22.7 osh-cpython
31 no-host abuild-print-help 22 10 12 9.0 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 659 308 386 2.9 bash
9 no-host bin-true 532 284 260 1.4 dash
17 no-host bin-true 2,326 807 1,789 18.4 osh-cpython
25 no-host bin-true 804 297 523 8.1 osh-native
33 no-host bin-true 793 288 522 7.6 osh-native-souffle
2 no-host configure.cpython 14,852 6,742 8,516 29.1 bash
10 no-host configure.cpython 14,903 6,740 8,599 28.9 dash
18 no-host configure.cpython 28,983 14,362 16,568 28.9 osh-cpython
26 no-host configure.cpython 15,112 6,638 8,746 29.3 osh-native
34 no-host configure.cpython 15,076 6,644 8,676 29.2 osh-native-souffle
4 no-host configure.ocaml 3,807 1,330 1,515 22.6 bash
12 no-host configure.ocaml 3,753 1,262 1,507 22.6 dash
20 no-host configure.ocaml 4,716 1,897 2,047 22.6 osh-cpython
28 no-host configure.ocaml 3,819 1,306 1,551 22.6 osh-native
36 no-host configure.ocaml 3,809 1,336 1,510 22.5 osh-native-souffle
5 no-host configure.tcc 47 20 28 19.5 bash
13 no-host configure.tcc 42 18 24 19.5 dash
21 no-host configure.tcc 210 144 70 19.6 osh-cpython
29 no-host configure.tcc 48 26 23 19.5 osh-native
37 no-host configure.tcc 47 25 23 19.7 osh-native-souffle
3 no-host configure.util-linux 13,776 6,010 8,268 30.3 bash
11 no-host configure.util-linux 14,642 5,942 9,225 30.5 dash
19 no-host configure.util-linux 31,701 17,934 14,877 30.3 osh-cpython
27 no-host configure.util-linux 14,197 5,711 8,699 30.1 osh-native
35 no-host configure.util-linux 14,119 5,639 8,696 30.3 osh-native-souffle
6 no-host configure.yash 1,821 918 912 26.3 bash
14 no-host configure.yash 1,778 895 888 26.4 dash
22 no-host configure.yash 2,508 1,334 1,219 26.3 osh-cpython
30 no-host configure.yash 1,821 908 918 26.3 osh-native
38 no-host configure.yash 1,826 893 938 26.4 osh-native-souffle
0 no-host hello-world 1 1 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 59 37 22 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,563 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,002 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,191 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,108 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,284 0 0 0 8 0 1,983 156 bash
9 no-host bin-true 67,487 0 0 0 8 0 1,982 81 dash
17 no-host bin-true 779,726 0 0 0 8 0 1,992 264 osh-cpython
25 no-host bin-true 128,162 0 0 0 16 0 1,975 106 osh-native
33 no-host bin-true 127,255 0 0 0 16 0 1,985 132 osh-native-souffle
2 no-host configure.cpython 1,994,860 0 0 0 32,928 0 14,249 1,175 bash
10 no-host configure.cpython 2,019,977 0 0 0 32,992 0 14,334 1,126 dash
18 no-host configure.cpython 6,050,501 0 0 0 27,512 0 13,123 1,181 osh-cpython
26 no-host configure.cpython 1,990,398 1 0 0 27,520 0 13,124 1,204 osh-native
34 no-host configure.cpython 1,992,190 0 0 0 27,520 0 13,006 951 osh-native-souffle
4 no-host configure.ocaml 373,780 0 0 0 5,120 0 1,949 163 bash
12 no-host configure.ocaml 353,506 0 0 0 5,112 0 1,925 189 dash
20 no-host configure.ocaml 611,801 0 0 0 5,112 0 1,847 194 osh-cpython
28 no-host configure.ocaml 375,617 0 0 0 5,120 0 1,925 178 osh-native
36 no-host configure.ocaml 375,000 0 0 0 5,120 0 1,923 187 osh-native-souffle
5 no-host configure.tcc 6,061 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,046 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,773 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,474 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,415 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,904,840 1 0 0 42,400 0 18,432 1,140 bash
11 no-host configure.util-linux 2,067,099 0 0 0 42,584 0 17,361 1,309 dash
19 no-host configure.util-linux 5,237,876 14 0 0 39,136 0 17,047 1,263 osh-cpython
27 no-host configure.util-linux 1,809,792 2 0 0 39,120 0 16,997 1,175 osh-native
35 no-host configure.util-linux 1,797,791 2 0 0 39,128 0 16,978 1,169 osh-native-souffle
6 no-host configure.yash 233,309 0 0 0 4,120 0 877 79 bash
14 no-host configure.yash 221,817 0 0 0 3,720 0 869 82 dash
22 no-host configure.yash 366,930 0 0 0 3,728 0 855 102 osh-cpython
30 no-host configure.yash 235,129 0 0 0 3,736 0 849 83 osh-native
38 no-host configure.yash 235,084 0 0 0 3,736 0 848 77 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,008 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-620b47f8
dash dash-0ebcf347
osh-cpython osh-3159699c
osh-native osh-d9e35f8f
osh-native-souffle osh-306d934f
host label host id
no-host no-host-e4839999