Note: "Forked" from Latency Numbers Every Programmer Should Know
| Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
|---|---|---|---|---|
| L1 cache reference | 0.5 | - | - | - |
| Branch mispredict | 5.0 | - | - | - |
| L2 cache reference | 7.0 | - | - | 14x L1 cache |
| Mutex lock/unlock | 25.0 | - | - | - |
Note: "Forked" from Latency Numbers Every Programmer Should Know
| Event | Nanoseconds | Microseconds | Milliseconds | Comparison |
|---|---|---|---|---|
| L1 cache reference | 0.5 | - | - | - |
| Branch mispredict | 5.0 | - | - | - |
| L2 cache reference | 7.0 | - | - | 14x L1 cache |
| Mutex lock/unlock | 25.0 | - | - | - |
Introduction to 3D Game Programming with DirectX 11 (Frank D. Luna)
Mathematics for 3D Game Programming and Computer Graphics (Eric Lengyel)
3D Game Engine Programming (Stefan Zerbst, Oliver Duvel)
Black Art of 3D Game Programming: Writing Your Own High-Speed 3D Polygon Video Games in C (Andre LaMothe)
| using System; | |
| using System.ComponentModel; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Web.Http; | |
| using System.Web.Http.Controllers; | |
| using System.Web.Http.Metadata; |
| #!/usr/bin/env bash | |
| # Usage: | |
| # timeout 10 docker_iptables.sh | |
| # | |
| # Use the builtin shell timeout utility to prevent infinite loop (see below) | |
| if [ ! -x /usr/bin/docker ]; then | |
| exit | |
| fi |
| package timers | |
| import ( | |
| "sync" | |
| "time" | |
| ) | |
| var timerPool sync.Pool | |
| // AcquireTimer from pool. |
The set lines
set -euxo pipefail is short for:set -e
set -u
| MIT License | |
| Copyright (c) [2021] [hxsf] | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |