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 471 21 20 25.32 1.16
bin-true no-host 644 514 2,346 793 789 3.64 1.23
configure.cpython no-host 14,326 14,383 28,098 14,555 14,536 1.96 1.02
configure.ocaml no-host 3,680 3,628 4,529 3,709 3,709 1.23 1.01
configure.tcc no-host 46 40 201 47 46 4.36 1.03
configure.util-linux no-host 13,379 14,180 30,717 13,712 13,640 2.30 1.02
configure.yash no-host 1,772 1,699 2,397 1,758 1,761 1.35 0.99
hello-world no-host 1 1 57 3 3 44.26 2.17

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,535 1,099 25,155 3,192 3,105 9.92 1.26
bin-true no-host 102,357 66,365 799,959 129,230 127,189 7.82 1.26
configure.cpython no-host 1,997,848 2,025,540 6,098,352 2,009,916 2,008,143 3.05 1.01
configure.ocaml no-host 373,145 354,226 615,383 376,750 376,347 1.65 1.01
configure.tcc no-host 6,081 4,993 23,939 6,514 6,463 3.94 1.07
configure.util-linux no-host 1,916,604 2,076,764 5,292,646 1,821,624 1,816,657 2.76 0.95
configure.yash no-host 232,735 221,696 369,103 234,717 235,508 1.59 1.01
hello-world no-host 150 78 3,968 349 338 26.45 2.33

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.9 9.2 8.5 5.29 2.12
bin-true no-host 3.0 1.4 18.5 8.1 7.6 6.15 2.70
configure.cpython no-host 29.3 29.1 29.2 29.3 29.3 1.00 1.00
configure.ocaml no-host 22.4 22.5 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.7 19.5 19.7 19.6 19.7 1.00 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.4 30.3 1.00 1.00
configure.yash no-host 26.4 26.1 26.4 26.3 26.5 1.00 0.99
hello-world no-host 2.8 1.4 18.4 6.3 5.9 6.69 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,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 793 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 14,555 1 64 15.5 29.3 1,785,018 30,561 28,528 91,507 886,576 806,935 25,736 61 50,000 0
configure.util-linux no-host 13,712 3 60 21.6 30.4 2,709,219 53,763 65,727 114,374 1,295,039 1,299,806 32,241 41 131,454 1
configure.ocaml no-host 3,709 1 2 2.6 22.6 149,864 11,180 5,223 7,735 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,580 30,580 0 1,544 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,758 1 2 2.6 26.3 139,886 8,047 6,702 6,399 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,342 64,421 42,629 4,546 54,464 57,332 277 3 85,258 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,872 1,234 2 0 50,000 0
bin-true no-host 789 1 2 2.6 7.6 156,776 15,411 2,898 8,755 77,339 70,682 3,008 3 50,000 0
configure.cpython no-host 14,536 1 63 15.5 29.3 1,785,017 30,548 28,523 91,508 886,576 806,933 25,736 61 50,000 0
configure.util-linux no-host 13,640 3 60 21.6 30.3 2,709,219 53,740 65,722 114,376 1,295,039 1,299,804 32,241 41 131,444 1
configure.ocaml no-host 3,709 0 2 2.6 22.6 149,864 11,175 5,218 7,737 70,876 71,251 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.7 30,580 30,580 0 1,546 14,638 14,396 271 0 50,000 0
configure.yash no-host 1,761 1 2 2.6 26.5 139,886 8,036 6,691 6,401 68,341 65,144 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.5 116,341 64,416 42,624 4,547 54,464 57,330 277 3 85,248 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 8 11 4.3 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 471 411 63 22.9 osh-cpython
31 no-host abuild-print-help 21 12 10 9.2 osh-native
39 no-host abuild-print-help 20 12 9 8.5 osh-native-souffle
1 no-host bin-true 644 299 377 3.0 bash
9 no-host bin-true 514 277 247 1.4 dash
17 no-host bin-true 2,346 797 1,803 18.5 osh-cpython
25 no-host bin-true 793 288 521 8.1 osh-native
33 no-host bin-true 789 298 507 7.6 osh-native-souffle
2 no-host configure.cpython 14,326 6,469 8,266 29.3 bash
10 no-host configure.cpython 14,383 6,480 8,334 29.1 dash
18 no-host configure.cpython 28,098 13,899 16,064 29.2 osh-cpython
26 no-host configure.cpython 14,555 6,309 8,533 29.3 osh-native
34 no-host configure.cpython 14,536 6,387 8,432 29.3 osh-native-souffle
4 no-host configure.ocaml 3,680 1,265 1,456 22.4 bash
12 no-host configure.ocaml 3,628 1,272 1,377 22.5 dash
20 no-host configure.ocaml 4,529 1,854 1,886 22.6 osh-cpython
28 no-host configure.ocaml 3,709 1,263 1,487 22.6 osh-native
36 no-host configure.ocaml 3,709 1,284 1,465 22.6 osh-native-souffle
5 no-host configure.tcc 46 18 28 19.7 bash
13 no-host configure.tcc 40 26 15 19.5 dash
21 no-host configure.tcc 201 139 66 19.7 osh-cpython
29 no-host configure.tcc 47 28 20 19.6 osh-native
37 no-host configure.tcc 46 22 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,379 5,676 8,208 30.3 bash
11 no-host configure.util-linux 14,180 5,764 8,937 30.3 dash
19 no-host configure.util-linux 30,717 17,482 14,301 30.3 osh-cpython
27 no-host configure.util-linux 13,712 5,546 8,386 30.4 osh-native
35 no-host configure.util-linux 13,640 5,484 8,379 30.3 osh-native-souffle
6 no-host configure.yash 1,772 924 856 26.4 bash
14 no-host configure.yash 1,699 858 846 26.1 dash
22 no-host configure.yash 2,397 1,334 1,104 26.4 osh-cpython
30 no-host configure.yash 1,758 858 905 26.3 osh-native
38 no-host configure.yash 1,761 866 900 26.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 35 22 18.4 osh-cpython
24 no-host hello-world 3 0 3 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,535 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,155 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,105 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 102,357 0 0 0 8 0 1,969 179 bash
9 no-host bin-true 66,365 0 0 0 8 0 1,984 62 dash
17 no-host bin-true 799,959 0 0 0 8 0 1,974 334 osh-cpython
25 no-host bin-true 129,230 0 0 0 16 0 1,972 130 osh-native
33 no-host bin-true 127,189 0 0 0 16 0 1,969 230 osh-native-souffle
2 no-host configure.cpython 1,997,848 0 0 0 32,928 0 14,219 1,388 bash
10 no-host configure.cpython 2,025,540 0 0 0 32,992 0 14,327 1,197 dash
18 no-host configure.cpython 6,098,352 0 0 0 27,512 0 13,052 1,241 osh-cpython
26 no-host configure.cpython 2,009,916 0 0 0 27,520 0 13,166 1,189 osh-native
34 no-host configure.cpython 2,008,143 0 0 0 27,520 0 13,053 1,219 osh-native-souffle
4 no-host configure.ocaml 373,145 0 0 0 5,120 0 1,952 186 bash
12 no-host configure.ocaml 354,226 0 0 0 5,112 0 1,944 176 dash
20 no-host configure.ocaml 615,383 0 0 0 5,112 0 1,851 184 osh-cpython
28 no-host configure.ocaml 376,750 0 0 0 5,120 0 1,934 210 osh-native
36 no-host configure.ocaml 376,347 0 0 0 5,120 0 1,921 225 osh-native-souffle
5 no-host configure.tcc 6,081 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,993 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,939 0 0 0 96 0 52 13 osh-cpython
29 no-host configure.tcc 6,514 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,463 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,916,604 0 0 0 42,400 0 18,545 1,243 bash
11 no-host configure.util-linux 2,076,764 1 0 0 42,592 0 17,313 1,401 dash
19 no-host configure.util-linux 5,292,646 8 0 0 39,112 0 16,980 1,270 osh-cpython
27 no-host configure.util-linux 1,821,624 0 0 0 39,128 0 17,032 1,239 osh-native
35 no-host configure.util-linux 1,816,657 0 0 0 39,136 0 16,962 1,279 osh-native-souffle
6 no-host configure.yash 232,735 0 0 0 4,120 0 876 90 bash
14 no-host configure.yash 221,696 0 0 0 3,720 0 867 93 dash
22 no-host configure.yash 369,103 0 0 0 3,728 0 850 93 osh-cpython
30 no-host configure.yash 234,717 0 0 0 3,736 0 851 91 osh-native
38 no-host configure.yash 235,508 0 0 0 3,736 0 850 89 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,968 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5ea9a94e
dash dash-0ebcf347
osh-cpython osh-5121b4f0
osh-native osh-84a10f03
osh-native-souffle osh-e2f8055b
host label host id
no-host no-host-e4839999