big performance gap between native, tart and lima (vz)
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
While testing around I noticed that running `sysbench cpu --threads=4 --time=10 run` will produce big performance gaps between native (m1 pro / m4 pro), lima (ubuntu) and tart(macOS). I tried to find the reason but nothing so far, both tart and lima using `vz`.
macOS native M1 Pro
```
sysbench 1.0.20 (using system LuaJIT 2.1.1727870382)
Running the test with following options:
Number of threads: 4
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 49413246.42
General statistics:
total time: 10.0000s
total number of events: 494150253
Latency (ms):
min: 0.00
avg: 0.00
max: 0.06
95th percentile: 0.00
sum: 14050.67
Threads fairness:
events (avg/stddev): 123537563.2500/12796.10
execution time (avg/stddev): 3.5127/0.01
```
tart macOS
```
sysbench cpu --threads=4 --time=10 run
sysbench 1.0.20 (using system LuaJIT 2.1.1727870382)
Running the test with following options:
Number of threads: 4
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 38228535.19
General statistics:
total time: 10.0001s
total number of events: 382306951
Latency (ms):
min: 0.00
avg: 0.00
max: 5.28
95th percentile: 0.00
sum: 11121.94
Threads fairness:
events (avg/stddev): 95576737.7500/200987.74
execution time (avg/stddev): 2.7805/0.01
```
lima ubuntu vm
```
sysbench cpu --threads=4 --time=10 run
sysbench 1.0.20 (using system LuaJIT 2.1.1744014795)
Running the test with following options:
Number of threads: 4
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 32349.48
General statistics:
total time: 10.0001s
total number of events: 323517
Latency (ms):
min: 0.11
avg: 0.12
max: 2.03
95th percentile: 0.14
sum: 39897.66
Threads fairness:
events (avg/stddev): 80879.2500/81.87
execution time (avg/stddev): 9.9744/0.00
```
not sure its that a lima issue but I would be happy to provide more debug details if needed.
Contributor guide
Assessment
This issue has not been assessed yet.