owned this note
owned this note
Published
Linked with GitHub
---
title: MOPS -- M1 vs Intel
tags: Tarantool, Talk
description: View the slide with "Slide Mode".
slideOptions:
theme: dark
transition: none
backgroundTransition: none
width: 960
height: 540
margin: 0
---
<!-- {{{ -->
<style type="text/css">
* { tab-size: 4; }
/* Resets & overrides */
.reveal dl { display: block; }
.reveal pre { width: auto; box-shadow: none; }
.reveal pre code { width: auto; max-height: initial; }
.reveal blockquote { width: auto; }
.reveal .slides .pdf-page { pointer-events: initial; }
.reveal .slides { text-align: left; }
/* Font style defs */
html, .reveal {
font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.reveal pre code {
font-family: "PTM55F", "Monaco", monospace;
}
/* Color defs */
.reveal pre code {
background: #2d2d2d;
}
/* Backgrounds */
.reveal .slide-background-content {
background-color: #222;
}
.reveal .first .slide-background-content {
background-color: #222;
}
.reveal section {
background-color: #333;
background-size: cover;
background-image: url(https://slides.hb.bizmrg.com/tarantool/dark/page.png);
}
.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3,
.reveal .slides section h4,
.reveal .slides section h5,
.reveal .slides section h6{
background: rgba(0,0,0,0.25);
}
/* Font-sizes */
html {
font-size: 32px;
}
.reveal {
font-size: 1rem;
}
.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3,
.reveal .slides section h4,
.reveal .slides section h5,
.reveal .slides section h6{
font-size: 40px;
}
/*
.reveal .slides section h1 { font-size: 42px }
.reveal .slides section h2 { font-size: 40px }
.reveal .slides section h3 { font-size: 38px }
.reveal .slides section h4 { font-size: 36px }
.reveal .slides section h5 { font-size: 34px }
.reveal .slides section h6 { font-size: 32px }
*/
.reveal pre {
font-size: 18px;
line-height: 1.11;
}
.reveal pre code {
font-size: inherit;
}
.reveal blockquote {
font-size: 28px;
}
/* Paddings */
.reveal .slides section {
width: 960px;
height: 540px;
}
.reveal .slides > section,
.reveal .slides > section > section {
padding: 20px;
}
.reveal .slides > section > section {
margin: 0 -20px;
}
.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3,
.reveal .slides section h4,
.reveal .slides section h5,
.reveal .slides section h6{
margin: -5px -20px 15px -20px;
padding: 5px 20px;
}
.reveal dl { margin: 0; }
.reveal dd { margin-bottom: 0.25em; }
.reveal pre {
margin: 10px -20px 20px -20px;
padding: 0;
}
.reveal pre code {
padding: 10px 20px;
}
.reveal blockquote {
margin: 20px -20px 20px -20px;
padding: 0;
}
.reveal blockquote > p {
margin: 0 0 0 40px;
padding: 0 0 0 5px;
}
/*** Helpers ***/
.reveal .slides section.center.present {
display: grid !important;
align-items: center;
}
.lr {
display:grid;
grid-gap: 0 50px;
grid-template-columns: 1fr 1fr;
}
section.only-code pre {
position: absolute;
top: 10px;
bottom: 10px;
left: 0;
right: 0;
margin: 0;
}
section.only-code pre code {
height: 100%;
}
/*** Modding ***/
.reveal .slides section .fragment.current-only {
opacity: 1;
visibility: visible;
display: none;
}
.reveal .slides section .fragment.current-only.current-fragment {
display: block;
}
.reveal .slides section li.fragment.current-only.current-fragment {
display: list-item;
}
.reveal .slides section span.fragment.current-only.current-fragment {
display: inline;
}
.reveal .slides section .fragment.visible-blurred {
opacity: 1;
visibility: visible;
filter: blur(2px);
}
.reveal .slides section .fragment.visible-blurred.visible {
filter: none;
}
.reveal .slides section .fragment.visible-blurred.visible.current-fragment {
filter: none;
text-shadow: 2px 2px #676767;
}
/*** Stylings ***/
dd { font-style: italic; }
dd * { font-style: initial; }
.reveal pre code { overflow: hidden; }
.reveal blockquote > p { border-left: solid #333 10px; }
.reveal .slides section { overflow: hidden; }
section.first *[data-title] {
position: absolute;
left : 0;
bottom: 0px;
}
.reveal .slides section.first h1 {
margin-top: 25px;
background: none;
}
.reveal .slides section.first h2 {
background: none;
}
section.first .author {
position: absolute;
left : 20px;
bottom: 20px;
}
</style>
<!-- }}} -->
<!-- .slide: class="first" -->
# MOPS -- M1 vs Intel
<address class="author">
Igor Munkin
</address>
---
# The benchmark
We need the workload that...
* ... uses Lua (for application server)
<!-- .element: class="fragment" -->
* ... uses box (for database on its board)
<!-- .element: class="fragment" -->
* ... does not crash (for sanity)
<!-- .element: class="fragment" -->
**Luckily we have [sergos/mops](https://gist.github.com/igormunkin/e956396d8fb3348d3ebbad60588af297) gist.**
<!-- .element: class="fragment" -->
---
# The platforms
* Tarantool's Mac Mini
* Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
* Darwin 19.4.0 x86_64
<!-- .element: class="fragment" -->
* Mons' MBP
* Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
* Darwin 20.5.0 x86_64
<!-- .element: class="fragment" -->
* Igor's MBA
* Apple M1
* Darwin 20.6.0 arm64
<!-- .element: class="fragment" -->
---
# The results (i7-8700B vs M1)
| | MBA | MM | MM/MBA |
|--------|----------|----------|-------------|
| Med | 2.688098 | 4.506926 | 1.676622653 |
| Avg | 2.686026 | 4.530626 | 1.686739443 |
| Min | 2.655635 | 4.407882 | 1.659822227 |
| Max | 2.721459 | 4.869363 | 1.789247238 |
---
# The results (i9-9880H vs M1)
| | MBA | MBP | MBP/MBA |
|--------|----------|----------|-------------|
| Med | 2.688098 | 5.019595 | 1.867340774 |
| Avg | 2.686026 | 5.091352 | 1.895496271 |
| Min | 2.655635 | 4.838994 | 1.822160801 |
| Max | 2.721459 | 5.450562 | 2.002808787 |
---
# Stay tuned
More benchmarks are coming (later).