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 470 22 20 25.08 1.17
bin-true no-host 645 530 2,278 795 805 3.53 1.23
configure.cpython no-host 14,662 14,756 28,646 14,952 14,877 1.95 1.02
configure.ocaml no-host 3,794 3,689 4,599 3,812 3,784 1.21 1.00
configure.tcc no-host 46 41 201 48 47 4.34 1.03
configure.util-linux no-host 13,684 14,573 31,045 14,100 14,011 2.27 1.03
configure.yash no-host 1,814 1,746 2,440 1,817 1,796 1.35 1.00
hello-world no-host 1 1 56 3 3 41.06 2.06

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,525 1,086 23,489 3,195 3,128 9.30 1.27
bin-true no-host 105,406 66,448 757,332 126,141 128,273 7.18 1.20
configure.cpython no-host 2,001,351 2,022,052 5,983,513 1,999,619 1,991,255 2.99 1.00
configure.ocaml no-host 373,091 354,179 605,974 376,194 375,544 1.62 1.01
configure.tcc no-host 6,093 4,997 23,422 6,475 6,432 3.84 1.06
configure.util-linux no-host 1,907,822 2,073,379 5,162,589 1,802,381 1,789,778 2.71 0.94
configure.yash no-host 233,726 221,221 364,112 235,431 234,074 1.56 1.01
hello-world no-host 149 78 3,961 344 338 26.58 2.31

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.4 22.8 9.2 8.5 5.28 2.12
bin-true no-host 2.8 1.3 18.4 8.0 7.7 6.68 2.90
configure.cpython no-host 29.2 29.1 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.5 1.00 0.99
configure.tcc no-host 19.5 19.8 19.7 19.7 19.8 1.01 1.01
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.4 6.0 6.63 2.33

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.4 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 795 1 2 2.6 8.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,952 1 69 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 14,100 3 66 21.2 30.3 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,812 1 2 2.6 22.5 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,817 1 2 2.5 26.3 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 9.2 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 805 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,877 1 66 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 14,011 3 64 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,784 1 2 2.6 22.5 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,796 1 2 2.5 26.4 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.5 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 19 8 12 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 470 416 57 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.5 osh-native-souffle
1 no-host bin-true 645 299 380 2.8 bash
9 no-host bin-true 530 268 273 1.3 dash
17 no-host bin-true 2,278 745 1,794 18.4 osh-cpython
25 no-host bin-true 795 292 519 8.0 osh-native
33 no-host bin-true 805 305 515 7.7 osh-native-souffle
2 no-host configure.cpython 14,662 6,581 8,500 29.2 bash
10 no-host configure.cpython 14,756 6,751 8,438 29.1 dash
18 no-host configure.cpython 28,646 14,226 16,339 29.2 osh-cpython
26 no-host configure.cpython 14,952 6,580 8,651 29.2 osh-native
34 no-host configure.cpython 14,877 6,533 8,624 29.2 osh-native-souffle
4 no-host configure.ocaml 3,794 1,336 1,487 22.6 bash
12 no-host configure.ocaml 3,689 1,263 1,448 22.6 dash
20 no-host configure.ocaml 4,599 1,857 1,955 22.6 osh-cpython
28 no-host configure.ocaml 3,812 1,307 1,547 22.5 osh-native
36 no-host configure.ocaml 3,784 1,362 1,462 22.5 osh-native-souffle
5 no-host configure.tcc 46 20 27 19.5 bash
13 no-host configure.tcc 41 18 23 19.8 dash
21 no-host configure.tcc 201 142 63 19.7 osh-cpython
29 no-host configure.tcc 48 25 23 19.7 osh-native
37 no-host configure.tcc 47 22 26 19.8 osh-native-souffle
3 no-host configure.util-linux 13,684 5,833 8,359 30.3 bash
11 no-host configure.util-linux 14,573 5,955 9,141 30.2 dash
19 no-host configure.util-linux 31,045 17,592 14,569 30.3 osh-cpython
27 no-host configure.util-linux 14,100 5,648 8,673 30.3 osh-native
35 no-host configure.util-linux 14,011 5,644 8,590 30.3 osh-native-souffle
6 no-host configure.yash 1,814 899 925 26.4 bash
14 no-host configure.yash 1,746 888 864 26.4 dash
22 no-host configure.yash 2,440 1,347 1,137 26.4 osh-cpython
30 no-host configure.yash 1,817 906 917 26.3 osh-native
38 no-host configure.yash 1,796 904 897 26.4 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 56 34 22 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 2 1 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,525 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,489 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,195 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,128 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 105,406 0 0 0 8 0 1,987 118 bash
9 no-host bin-true 66,448 0 0 0 8 0 1,980 128 dash
17 no-host bin-true 757,332 0 0 0 8 0 1,986 398 osh-cpython
25 no-host bin-true 126,141 0 0 0 16 0 1,980 240 osh-native
33 no-host bin-true 128,273 0 0 0 16 0 1,969 222 osh-native-souffle
2 no-host configure.cpython 2,001,351 0 0 0 32,928 0 14,223 1,207 bash
10 no-host configure.cpython 2,022,052 0 0 0 32,992 0 14,312 1,145 dash
18 no-host configure.cpython 5,983,513 0 0 0 27,512 0 13,040 1,182 osh-cpython
26 no-host configure.cpython 1,999,619 0 0 0 27,520 0 13,052 1,127 osh-native
34 no-host configure.cpython 1,991,255 0 0 0 27,520 0 13,014 1,111 osh-native-souffle
4 no-host configure.ocaml 373,091 0 0 0 5,120 0 1,958 240 bash
12 no-host configure.ocaml 354,179 0 0 0 5,112 0 1,945 174 dash
20 no-host configure.ocaml 605,974 0 0 0 5,112 0 1,852 185 osh-cpython
28 no-host configure.ocaml 376,194 0 0 0 5,120 0 1,922 201 osh-native
36 no-host configure.ocaml 375,544 0 0 0 5,120 0 1,917 201 osh-native-souffle
5 no-host configure.tcc 6,093 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 4,997 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,422 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,475 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,432 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,907,822 0 0 0 42,400 0 18,430 1,230 bash
11 no-host configure.util-linux 2,073,379 0 0 0 42,584 0 17,300 1,409 dash
19 no-host configure.util-linux 5,162,589 17 0 0 39,120 0 17,028 1,235 osh-cpython
27 no-host configure.util-linux 1,802,381 4 0 0 39,120 0 16,937 1,215 osh-native
35 no-host configure.util-linux 1,789,778 0 0 0 39,136 0 16,986 1,170 osh-native-souffle
6 no-host configure.yash 233,726 0 0 0 4,120 0 869 97 bash
14 no-host configure.yash 221,221 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 364,112 0 0 0 3,728 0 848 94 osh-cpython
30 no-host configure.yash 235,431 0 0 0 3,736 0 848 94 osh-native
38 no-host configure.yash 234,074 0 0 0 3,736 0 848 90 osh-native-souffle
0 no-host hello-world 149 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,961 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 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-cd691e64
dash dash-0ebcf347
osh-cpython osh-0e73035e
osh-native osh-5c1a70ed
osh-native-souffle osh-c071600d
host label host id
no-host no-host-e4839999