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 479 22 20 25.10 1.17
bin-true no-host 653 526 2,356 797 801 3.61 1.22
configure.cpython no-host 14,911 15,010 29,225 15,245 14,894 1.96 1.02
configure.ocaml no-host 3,838 3,712 4,806 3,754 3,744 1.25 0.98
configure.tcc no-host 47 41 210 48 47 4.47 1.03
configure.util-linux no-host 13,915 14,826 32,922 14,531 13,801 2.37 1.04
configure.yash no-host 1,824 1,756 2,530 1,846 1,774 1.39 1.01
hello-world no-host 1 1 57 3 3 38.29 1.91

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,565 1,129 24,164 3,224 3,108 9.42 1.26
bin-true no-host 106,348 67,365 799,320 128,184 128,245 7.52 1.21
configure.cpython no-host 1,994,421 2,017,613 6,096,047 2,007,840 2,003,348 3.06 1.01
configure.ocaml no-host 373,313 353,740 615,471 376,804 376,600 1.65 1.01
configure.tcc no-host 6,073 5,010 24,006 6,498 6,466 3.95 1.07
configure.util-linux no-host 1,910,031 2,076,214 5,306,999 1,824,298 1,812,600 2.78 0.96
configure.yash no-host 233,627 222,295 368,723 235,620 235,249 1.58 1.01
hello-world no-host 146 77 3,971 344 343 27.20 2.36

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.4 22.9 9.2 8.7 5.13 2.06
bin-true no-host 2.9 1.4 18.4 8.3 7.6 6.38 2.86
configure.cpython no-host 29.2 29.2 29.2 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.5 22.6 22.5 0.99 1.00
configure.tcc no-host 19.7 19.7 19.7 19.5 19.6 1.00 0.99
configure.util-linux no-host 30.2 30.3 30.4 30.2 30.2 1.00 1.00
configure.yash no-host 26.3 26.4 26.4 26.4 26.4 1.00 1.00
hello-world no-host 2.8 1.6 18.5 6.3 5.9 6.74 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.3 6.3 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.3 156,772 15,414 2,901 8,752 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,245 2 73 15.5 29.3 1,785,013 30,559 28,526 91,505 887,089 806,419 25,736 61 50,000 0
configure.util-linux no-host 14,531 3 69 21.6 30.2 2,709,214 53,761 65,705 114,372 1,296,230 1,298,612 32,241 41 131,410 1
configure.ocaml no-host 3,754 1 2 2.6 22.6 149,859 11,178 5,221 7,733 70,879 71,247 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,575 30,575 0 1,542 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.6 26.4 139,881 8,045 6,700 6,397 68,350 65,134 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,337 64,419 42,627 4,544 54,462 57,331 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 801 1 2 2.6 7.6 156,771 15,409 2,896 8,753 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 14,894 1 70 15.4 29.3 1,785,012 30,546 28,521 91,506 887,089 806,417 25,736 61 50,000 0
configure.util-linux no-host 13,801 3 63 21.6 30.2 2,709,214 53,738 65,720 114,374 1,296,230 1,298,610 32,241 41 131,440 1
configure.ocaml no-host 3,744 1 2 2.6 22.5 149,859 11,173 5,216 7,735 70,879 71,245 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,575 30,575 0 1,544 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,774 1 2 2.6 26.4 139,881 8,034 6,689 6,399 68,350 65,132 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,336 64,414 42,622 4,545 54,462 57,329 277 3 85,244 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 12 8 4.5 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 479 423 60 22.9 osh-cpython
31 no-host abuild-print-help 22 11 12 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 653 309 378 2.9 bash
9 no-host bin-true 526 271 268 1.4 dash
17 no-host bin-true 2,356 797 1,815 18.4 osh-cpython
25 no-host bin-true 797 293 519 8.3 osh-native
33 no-host bin-true 801 290 528 7.6 osh-native-souffle
2 no-host configure.cpython 14,911 6,772 8,561 29.2 bash
10 no-host configure.cpython 15,010 6,773 8,667 29.2 dash
18 no-host configure.cpython 29,225 14,440 16,735 29.2 osh-cpython
26 no-host configure.cpython 15,245 6,613 8,924 29.3 osh-native
34 no-host configure.cpython 14,894 6,560 8,619 29.3 osh-native-souffle
4 no-host configure.ocaml 3,838 1,323 1,537 22.6 bash
12 no-host configure.ocaml 3,712 1,273 1,461 22.5 dash
20 no-host configure.ocaml 4,806 1,946 2,086 22.5 osh-cpython
28 no-host configure.ocaml 3,754 1,304 1,492 22.6 osh-native
36 no-host configure.ocaml 3,744 1,268 1,515 22.5 osh-native-souffle
5 no-host configure.tcc 47 20 28 19.7 bash
13 no-host configure.tcc 41 22 19 19.7 dash
21 no-host configure.tcc 210 140 74 19.7 osh-cpython
29 no-host configure.tcc 48 22 27 19.5 osh-native
37 no-host configure.tcc 47 18 29 19.6 osh-native-souffle
3 no-host configure.util-linux 13,915 5,956 8,455 30.2 bash
11 no-host configure.util-linux 14,826 5,932 9,407 30.3 dash
19 no-host configure.util-linux 32,922 18,548 15,546 30.4 osh-cpython
27 no-host configure.util-linux 14,531 5,747 9,015 30.2 osh-native
35 no-host configure.util-linux 13,801 5,417 8,605 30.2 osh-native-souffle
6 no-host configure.yash 1,824 907 927 26.3 bash
14 no-host configure.yash 1,756 906 855 26.4 dash
22 no-host configure.yash 2,530 1,371 1,204 26.4 osh-cpython
30 no-host configure.yash 1,846 898 953 26.4 osh-native
38 no-host configure.yash 1,774 884 894 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 32 25 18.5 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 1 2 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,565 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,164 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,108 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,348 0 0 0 8 0 1,987 101 bash
9 no-host bin-true 67,365 0 0 0 8 0 1,975 87 dash
17 no-host bin-true 799,320 0 0 0 8 0 1,983 377 osh-cpython
25 no-host bin-true 128,184 0 0 0 16 0 1,969 157 osh-native
33 no-host bin-true 128,245 0 0 0 16 0 1,981 225 osh-native-souffle
2 no-host configure.cpython 1,994,421 0 0 0 32,928 0 14,203 1,133 bash
10 no-host configure.cpython 2,017,613 0 0 0 32,992 0 14,334 1,246 dash
18 no-host configure.cpython 6,096,047 0 0 0 27,512 0 13,066 1,059 osh-cpython
26 no-host configure.cpython 2,007,840 0 0 0 27,520 0 13,034 1,073 osh-native
34 no-host configure.cpython 2,003,348 0 0 0 27,520 0 13,060 1,047 osh-native-souffle
4 no-host configure.ocaml 373,313 0 0 0 5,120 0 1,962 175 bash
12 no-host configure.ocaml 353,740 0 0 0 5,112 0 1,934 184 dash
20 no-host configure.ocaml 615,471 0 0 0 5,112 0 1,851 187 osh-cpython
28 no-host configure.ocaml 376,804 0 0 0 5,120 0 1,935 193 osh-native
36 no-host configure.ocaml 376,600 0 0 0 5,120 0 1,937 218 osh-native-souffle
5 no-host configure.tcc 6,073 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,010 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,006 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,498 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,466 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,910,031 0 0 0 42,400 0 18,402 1,229 bash
11 no-host configure.util-linux 2,076,214 0 0 0 42,584 0 17,346 1,417 dash
19 no-host configure.util-linux 5,306,999 2 0 0 39,120 0 17,003 1,191 osh-cpython
27 no-host configure.util-linux 1,824,298 1 0 0 39,128 0 17,028 1,210 osh-native
35 no-host configure.util-linux 1,812,600 0 0 0 39,136 0 17,016 1,146 osh-native-souffle
6 no-host configure.yash 233,627 0 0 0 4,120 0 868 92 bash
14 no-host configure.yash 222,295 0 0 0 3,720 0 872 84 dash
22 no-host configure.yash 368,723 0 0 0 3,728 0 853 75 osh-cpython
30 no-host configure.yash 235,620 0 0 0 3,736 0 850 75 osh-native
38 no-host configure.yash 235,249 0 0 0 3,736 0 846 92 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 3,971 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 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-4cbea41c
dash dash-0ebcf347
osh-cpython osh-f89d3be1
osh-native osh-3bb7e235
osh-native-souffle osh-03e2bc11
host label host id
no-host no-host-e4839999