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 18 10 464 22 21 25.28 1.18
bin-true no-host 651 521 2,269 784 789 3.49 1.21
configure.cpython no-host 14,448 14,521 28,010 14,647 14,576 1.94 1.01
configure.ocaml no-host 3,717 3,658 4,567 3,728 3,721 1.23 1.00
configure.tcc no-host 46 40 202 47 46 4.34 1.01
configure.util-linux no-host 13,474 14,273 30,699 13,772 13,762 2.28 1.02
configure.yash no-host 1,807 1,719 2,427 1,770 1,774 1.34 0.98
hello-world no-host 1 1 55 3 3 41.61 2.09

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,550 1,108 23,649 3,190 3,121 9.27 1.25
bin-true no-host 106,354 67,431 766,652 126,154 125,169 7.21 1.19
configure.cpython no-host 1,995,570 2,028,072 5,976,350 2,000,552 1,986,960 2.99 1.00
configure.ocaml no-host 373,166 354,365 607,659 376,027 375,778 1.63 1.01
configure.tcc no-host 6,080 5,008 23,483 6,509 6,453 3.86 1.07
configure.util-linux no-host 1,902,561 2,071,345 5,165,853 1,801,881 1,798,585 2.72 0.95
configure.yash no-host 233,288 222,183 364,389 235,304 235,456 1.56 1.01
hello-world no-host 147 74 3,958 349 338 26.93 2.37

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.5 8.8 8.7 5.04 1.97
bin-true no-host 2.9 1.4 18.4 8.1 7.6 6.38 2.82
configure.cpython no-host 28.9 29.2 29.2 29.2 29.2 1.01 1.01
configure.ocaml no-host 22.6 22.6 22.5 22.6 22.6 0.99 1.00
configure.tcc no-host 19.8 19.8 19.6 19.6 19.7 0.99 0.99
configure.util-linux no-host 30.1 30.5 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.3 6.0 6.63 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.2 6.3 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 784 1 2 2.6 8.1 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,647 1 61 14.9 29.2 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 13,772 3 60 21.2 30.2 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,728 1 2 2.6 22.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,770 1 2 2.5 26.4 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 6.0 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 789 1 2 2.6 7.6 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,576 1 63 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,762 3 60 21.2 30.3 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,721 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.7 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,774 1 2 2.5 26.3 139,269 7,969 6,631 5,991 67,845 65,433 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,533 54,439 57,326 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 18 10 9 4.5 bash
15 no-host abuild-print-help 10 4 6 3.5 dash
23 no-host abuild-print-help 464 421 46 22.5 osh-cpython
31 no-host abuild-print-help 22 15 7 8.8 osh-native
39 no-host abuild-print-help 21 9 12 8.7 osh-native-souffle
1 no-host bin-true 651 315 369 2.9 bash
9 no-host bin-true 521 277 257 1.4 dash
17 no-host bin-true 2,269 755 1,773 18.4 osh-cpython
25 no-host bin-true 784 292 508 8.1 osh-native
33 no-host bin-true 789 301 505 7.6 osh-native-souffle
2 no-host configure.cpython 14,448 6,608 8,254 28.9 bash
10 no-host configure.cpython 14,521 6,540 8,418 29.2 dash
18 no-host configure.cpython 28,010 14,054 15,796 29.2 osh-cpython
26 no-host configure.cpython 14,647 6,443 8,487 29.2 osh-native
34 no-host configure.cpython 14,576 6,371 8,484 29.2 osh-native-souffle
4 no-host configure.ocaml 3,717 1,286 1,471 22.6 bash
12 no-host configure.ocaml 3,658 1,249 1,432 22.6 dash
20 no-host configure.ocaml 4,567 1,838 1,941 22.5 osh-cpython
28 no-host configure.ocaml 3,728 1,296 1,473 22.6 osh-native
36 no-host configure.ocaml 3,721 1,301 1,459 22.6 osh-native-souffle
5 no-host configure.tcc 46 24 23 19.8 bash
13 no-host configure.tcc 40 17 23 19.8 dash
21 no-host configure.tcc 202 138 68 19.6 osh-cpython
29 no-host configure.tcc 47 22 26 19.6 osh-native
37 no-host configure.tcc 46 26 20 19.7 osh-native-souffle
3 no-host configure.util-linux 13,474 5,781 8,180 30.1 bash
11 no-host configure.util-linux 14,273 5,750 9,045 30.5 dash
19 no-host configure.util-linux 30,699 17,465 14,313 30.2 osh-cpython
27 no-host configure.util-linux 13,772 5,514 8,478 30.2 osh-native
35 no-host configure.util-linux 13,762 5,463 8,526 30.3 osh-native-souffle
6 no-host configure.yash 1,807 912 897 26.3 bash
14 no-host configure.yash 1,719 873 850 26.3 dash
22 no-host configure.yash 2,427 1,325 1,145 26.4 osh-cpython
30 no-host configure.yash 1,770 895 880 26.4 osh-native
38 no-host configure.yash 1,774 868 911 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 41 15 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 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,550 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,108 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,649 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,121 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,354 0 0 0 8 0 1,984 262 bash
9 no-host bin-true 67,431 0 0 0 8 0 1,980 58 dash
17 no-host bin-true 766,652 0 0 0 8 0 1,969 217 osh-cpython
25 no-host bin-true 126,154 0 0 0 16 0 1,974 182 osh-native
33 no-host bin-true 125,169 0 0 0 16 0 1,980 266 osh-native-souffle
2 no-host configure.cpython 1,995,570 0 0 0 32,928 0 14,249 1,304 bash
10 no-host configure.cpython 2,028,072 0 0 0 32,992 0 14,342 1,313 dash
18 no-host configure.cpython 5,976,350 0 0 0 27,512 0 13,066 1,254 osh-cpython
26 no-host configure.cpython 2,000,552 0 0 0 27,520 0 13,060 1,082 osh-native
34 no-host configure.cpython 1,986,960 0 0 0 27,520 0 13,002 1,172 osh-native-souffle
4 no-host configure.ocaml 373,166 0 0 0 5,120 0 1,954 181 bash
12 no-host configure.ocaml 354,365 0 0 0 5,112 0 1,938 195 dash
20 no-host configure.ocaml 607,659 1 0 0 5,112 0 1,855 194 osh-cpython
28 no-host configure.ocaml 376,027 0 0 0 5,120 0 1,926 224 osh-native
36 no-host configure.ocaml 375,778 0 0 0 5,120 0 1,913 206 osh-native-souffle
5 no-host configure.tcc 6,080 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,008 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,483 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,509 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,453 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,902,561 1 0 0 42,400 0 18,457 1,253 bash
11 no-host configure.util-linux 2,071,345 1 0 0 42,592 0 17,305 1,312 dash
19 no-host configure.util-linux 5,165,853 9 0 0 39,112 0 17,026 1,446 osh-cpython
27 no-host configure.util-linux 1,801,881 0 0 0 39,120 0 16,981 1,181 osh-native
35 no-host configure.util-linux 1,798,585 1 0 0 39,136 0 17,085 1,106 osh-native-souffle
6 no-host configure.yash 233,288 0 0 0 4,120 0 882 83 bash
14 no-host configure.yash 222,183 0 0 0 3,720 0 869 110 dash
22 no-host configure.yash 364,389 0 0 0 3,728 0 855 115 osh-cpython
30 no-host configure.yash 235,304 0 0 0 3,736 0 851 90 osh-native
38 no-host configure.yash 235,456 0 0 0 3,736 0 845 90 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 74 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,958 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e8f4f2b6
dash dash-0ebcf347
osh-cpython osh-da1129cf
osh-native osh-50f24e6c
osh-native-souffle osh-1191cf18
host label host id
no-host no-host-e4839999